Search Results

Showing results 1 to 11 of 11
Search took 0.01 seconds.
Search: Posts Made By: AnthIste
Forum: IT Professionals' Lounge Jan 26th, 2008
Replies: 1
Views: 950
Posted By AnthIste
hey guys. I dont know where this sorta question goes but its linux related so it ended up here.

basically what im trying to achieve is to boot puppy linux from my USB, and keep my old files as...
Forum: C++ Nov 1st, 2007
Replies: 5
Views: 642
Posted By AnthIste
oh ja.... seen that used somewhere before. bit more efficient i'd guess. up to you though jrice
Forum: C++ Oct 31st, 2007
Replies: 5
Views: 642
Posted By AnthIste
to go back to the beginning, one way is to use a label, like so:


int main()
{
Stat s;

int score1 = 0, score2 = 0, score3=0, score4=0, score5=0;
int x = 1;
int winner;
Forum: C++ Oct 28th, 2007
Replies: 6
Views: 3,848
Posted By AnthIste
shot. il go disect that now now and try make sense of it all

cheers and thanks :D
Forum: C++ Oct 28th, 2007
Replies: 6
Views: 3,848
Posted By AnthIste
hmm... just one more thing, if

(*p)[0] = 0; // numbers[1][0] = 0;

refers to numbers[1][0]

then how do you refer to numbers[0][3] for instance? like not the first [], but the second []?
Forum: C++ Oct 27th, 2007
Replies: 6
Views: 3,848
Posted By AnthIste
Thanks people!! You guys are awesome!
Back to the drawing board...
Forum: C++ Oct 27th, 2007
Replies: 6
Views: 3,848
Posted By AnthIste
hey there. my problem is pretty simple (i think). I dont know how to point at a multi dimensional array.how i understand normal array pointers is:


int numbers[5];
int *p = numbers;

//so now...
Forum: C++ Oct 21st, 2007
Replies: 5
Views: 739
Posted By AnthIste
hmm i thought of another way to make the code more readable. Instead of labels, make each deciding point a seperate function that has been declared as a prototype so that they can call back to each ...
Forum: C++ Oct 21st, 2007
Replies: 5
Views: 739
Posted By AnthIste
EDIT: Ok the edit button disappeared O_O so I'll post it here. I read the sticky so instead of


cin >> input;
if (input != "some random input")
system("EXIT");


I can just say getchar();
Forum: C++ Oct 21st, 2007
Replies: 30
Views: 892,689
Posted By AnthIste
Say you want a random number from 2 to n where n is 15, you would do the following:


int n = 15;
int random_int;

random_int = (rand()%n-2)+2;


lets look at the min/max scenarios.
Forum: C++ Oct 21st, 2007
Replies: 5
Views: 739
Posted By AnthIste
Hello there. I am very new to C++ and still rather new to programming (Im only in high-school). I am trying to make a decision based game that runs in a cli to just get going with the language syntax...
Showing results 1 to 11 of 11

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC