Perhaps he attends a class in functional programming
Type: Posts; User: Garland
Perhaps he attends a class in functional programming
Thanks all for your time and help, although by now, you must have probably forgotten, that you even provided it.
Very well then.
I won't be trying to start a flame here, because it is a) stupid and b) I know that the code indeed doesn't look very nice,
but perhaps it would be better to submit your own solution to the problem...
For getting the character without having to wait for enter:
http://msdn2.microsoft.com/en-us/library/ms684961.aspx
if you don't want to study it, then:
#include <windows.h>
#include...
Also, the main problem with the loop is, that it is infinite, so no wonder it doesnt run, when the program gives all it's energy to the loop ;)
Do prevent the loop from ending up in nowhere, you...
typing
cin.get() ;
at the end of your program
is a good solution
True
That is the difference between passing by pointer(int* pt) or reference(int& ref) and passing by value (int val) :
In the first two examples, the address of the variables is passed and...
Hello, I am afraid, that pointers are not the only problem of your program:
I will try to list all the errors, syntax is what suffers here, so it shouldn´t be such a problem to fix it:
1) a...
Thanks a lot for even bothering to take a look at the program, I can now, thanks to you, see where I did the mistake, so thanks again and have a nice day(or two).
Hello, I was thinking of writing a program that writes all numbers of one combination in all orders,just for practice purpose :
(1,2,3):
1 2 3
1 1 2
1 2 3
and so on...
Thanks a lot, defining the constants did the job-for now.
Hello, I have recently started programming in WIN32 API in DEV-C++, where I encountred several problems with resources handling:
1)whenever I change my resource file, the compiler throws a syntax...
Ok, thank you both, though I think throwing the monitor out of windows is one of the fastest and most reliable solutions, as they say.
Hello, is there any way to output a string to previous line with std::cout ?
The output would look like:
Line which I wrote second
Line which I wrote first
or, alternately any...