Questions tagged [implementation]

Deals with various issues of implementation.

Deals with various issues of implementation of functions, features, languages, etc.

2196 questions
14
votes
4 answers

How to link multiple implementation files in C

I have a number of .c files, i.e. the implementation files say main.c A.c B.c Where functions from any of the files can call any function from a different files. My question being, do I need a .h i.e. header file for each of A and B's…
Kraken
  • 23,393
  • 37
  • 102
  • 162
13
votes
4 answers

C++ assert implementation in assert.h

00001 /* assert.h 00002 Copyright (C) 2001, 2003 Free Software Foundation, Inc. 00003 Written by Stephane Carrez (stcarrez@nerim.fr) 00004 00005 This file is free software; you can redistribute it and/or modify it 00006 under the terms…
Narek
  • 38,779
  • 79
  • 233
  • 389
13
votes
1 answer

Creating a chronometer in Android

I'd like to know how can I implement in Android a simple chronometer with a start and stop button that displays data in the HH:MM:SS:MsMs format... I've been searching and searching and I have found some classes on google developer, but they didn't…
user1123530
  • 561
  • 3
  • 7
  • 17
13
votes
2 answers

How to change the implementation (detour) of an externally declared function

I have a third party function function DataCompare(const S1, S2: string; APartial: Boolean): Boolean; begin ... end; It is used in another third party unit. I wish to replace the body of the function at runtime with another new…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
13
votes
4 answers

Does private inheritance always mean "HAS-A"?

According to my favorite author , Mr Scott Meyers, the private inheritance and composition means the same thing aka Has-A relationship. Thus everything that can be gained from composition (containment, when class A has class B as its member) can be…
Eduard Rostomyan
  • 7,050
  • 2
  • 37
  • 76
13
votes
2 answers

Trying to understand zlib/deflate in PNG files

I'm currently in the middle of writing a small PNG image I/O library myself for learning purposes. My problem is the following: I created a small PNG only 2 by 2 pixels in dimension and opened it in a hex editor to study its contents. This is the…
Rafael Pasquay
  • 328
  • 4
  • 11
13
votes
7 answers

How does Google Know you are Cloaking?

I can't seem to find any information on how google determines if you are cloaking your content. How, from a technical standpoint, do you think they are determining this? Are they sending in things other than the googlebot and comparing it to the…
Lance
  • 75,200
  • 93
  • 289
  • 503
13
votes
3 answers

How is OpenGl Implemented in an Operating System?

I'm looking into linux and Graphical API's, however I'm confused at how opengl is implemented in operating systems. Is it just a set of libraries that use the kernel to "talk" to your graphics card about which pixels to colour or not? if so then I…
12
votes
2 answers

Implementing a while loop in android

I can't understand the implementation of a while loop in android. Whenever I implement a while loop inside the onCreate() bundle, (code shown below) public void onCreate(Bundle icicle) { super.onCreate(icicle); …
Kyle Yeo
  • 2,270
  • 5
  • 31
  • 53
12
votes
5 answers

how lisp implemented in assembly language?

many (may be all?) programming language consist of assembly language how lisp implemented in assembly language? is there any good reference, manual, tutorial, or keyword for google? any official rule/convention for build your own lisp…
kim taeyun
  • 1,837
  • 2
  • 24
  • 49
12
votes
3 answers

How to change the batch size during training?

During training, at each epoch, I'd like to change the batch size (for experimental purpose). Creating a custom Callback seems appropriate but batch_size isn't a member of the Model class. The only way I see would be to override fit_loop and expose…
0xmax
  • 503
  • 1
  • 6
  • 26
12
votes
2 answers

Could somebody explain what the MERGE statement really does in Oracle?

I am looking for a clear explanation of what the MERGE statement in Oracle really does. Here is what I am after: MERGE INTO (target_table) t USING (source_view) s ON (join condition) WHEN MATCHED THEN UPDATE SET col1 = val1 [, ...] WHEN NOT…
Benoit
  • 76,634
  • 23
  • 210
  • 236
12
votes
1 answer

How and when are CSS rules applied to a display hierarchy?

Is there an open source or generic implementation of CSS that can be applied to an arbitrary display hierarchy? I'm trying to build one for the Flash display hierarchy in AS3. I'm curious about the procedure used to apply CSS styles to a display…
Triynko
  • 18,766
  • 21
  • 107
  • 173
12
votes
3 answers

Can a member of a class be named the same name as its type (another class)?

Trying to compile the following code on different compilers gives me two different results: struct S{}; struct T{S S;}; int main(){} As you can see, inside T, I have an object named the same as the previously defined class S. On GCC 4.7.2, I get…
chris
  • 60,560
  • 13
  • 143
  • 205
12
votes
4 answers

ObjectiveC: where to declare private instance properties?

I have the following class interface: @interface MyClass : NSObject @property int publicProperty; @end then the implementation: @interface MyClass() // class extension - (void)privateMethod; // private methods @end @implementation MyClass { …
hzxu
  • 5,753
  • 11
  • 60
  • 95