also what does this mean
printf ("%d", scanf("%d", &var));
? Does this return 1 if the variable is filled, and 0 if its null?
thanks
Type: Posts; User: renderstream
also what does this mean
printf ("%d", scanf("%d", &var));
? Does this return 1 if the variable is filled, and 0 if its null?
thanks
Hi, how do i prevent them from entering letters when i ask for numbers, using scanf
Put an exit value at the menu, and then put a 'do..while' loop around the code.
So say if exit is case 5...
Do {
*Your code here*
Hi all, just completed my first c++ program! After asking some questions on these and other boards, i was able to complete it.
#include <iostream>
#include <stdlib.h>
#include <string>...
hm,, why this dont work
if (playerturn % 2 == 1 && boardarray2[moverow][movecollumn]=false)
thanks, this board ROCKS! Im almost done my first c++ program, TIC TAC TOE!
Hi, how to have muilti-conditions on an IF statment?
OK another Question... How to make a public variable so all functions/structures can access them?
Ah! Ok. But before, when i used WIN32 app, it still worked with this code... but honestly, it really doesnt matter anymore.
I will use console from now on with console applications :)
Also, ive...
hm.. works fine after taking your advice.
Few questions though:
- Whats the difference between the 2?
- Why did it work before with WIN32 ?
Thanks!
Hi, my VC++ 6 is acting wierd. After i try running a few small programs, it gives me this error:
--------------------Configuration: a - Win32 Debug--------------------
Linking......