you will need these 2 books:-
Programming windows by charles petzold.
Programming applications for microsoft windows by jeff richter.
From there your best reference after that is probably msdn
Type: Posts; User: Stoned_Coder
you will need these 2 books:-
Programming windows by charles petzold.
Programming applications for microsoft windows by jeff richter.
From there your best reference after that is probably msdn
yes. If a variable is global, you can access it from everywhere and in a single threaded program then your last statement above would be true. Your code is flawed mind you.
maybe. perhaps if you explain exactly what it is you are trying to do with a small accompanying code sample we can show you how to get the effect you are after.
what does _RTLENTRY expand to? Is the expansion conditional on anything else?
You can ensure that operator [] gets called by doing this...
MyArray.operator [](1) = 6;
but it would be a better idea to do away with the conversion operator altogether. if you must then make...
The numbers in ASCII are contiguous so by subtracting the value of '0' you turn a char into its integer representation.
well im guessing here that your strings have gone out of scope and you are left with an array of dangling pointers. I'd suggest converting to std::vector for the array and std::string for all the...
Know what operator % is??
cPizza* add_pizza(int diameter, double cost)
{
cPizza *new_pizza;
new_pizza = new cPizza(diameter, cost);
return new_pizza;
}
Could better be written as....
did you see userport??
stop whingeing because you cannot be bothered to do your own research. the link i gave you will lead you to plenty of information on programming the parallel port in all versions of windows. Also...
Sure. Now just hang on a sec while I dig out my crystal ball and fire up the psychic debugger!!!
Post client code here and server code in c# forum and link to it in this thread then maybe you...
the first is passing by value. the second is passing by reference.
its the same as(but with pointers instead)....
void func (int); // by value
void func (int&); // by reference
Theres some more...
>>>is the goto method something to be encouraged or discouraged
Highly discouraged. goto has its uses but they are few and far between and never should a goto be used to replace a loop construct.
Use boost
all you need to know
The general rule of thumb is if the file is a header file always specify explicitly. you dont want a using directive in a header file. On the other hand in a source file, if its small and you know...
this is the offending bit.....
localQuestion == "yes"
You cannot do that in c/c++. firstly localQuestion is only a char. that means it can hold one character. Secondly even if it was a char*...
>>the only thing that you can't really do is templates
basic templates can be done with macros. what you cant do is encapsulation. C has no way of specifying private data.
you will need a virtual destructor too
Look through this for ideas
winprog
relisoft
the op asked for a way to make sure input was a valid int. well input in hex or octal is also a valid int.
A func that takes an int param(not const char* as atoi does, i never said that would work),...
atoi expects const char* not int
Yes why not do octal too. Anything the language sees as a valid int.
yes it is but its in base 16. its a valid int. oxff is 255 for example and can be passed to a func requiring an int.