Kamikaze_Badger Posted August 1, 2005 Posted August 1, 2005 Bah, sleep is evil. 40 minutes untill I grind for 4 straight hours on Kal . Share this post Link to post Share on other sites More sharing options...
Gremlin Posted August 1, 2005 Posted August 1, 2005 So dare I ask how old both of you are?? Share this post Link to post Share on other sites More sharing options...
Archerzz Posted August 1, 2005 Posted August 1, 2005 Who? me... Share this post Link to post Share on other sites More sharing options...
savethedodobird Posted August 1, 2005 Posted August 1, 2005 How about making as she loves she loves me not program. Similar to the flower thing. Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted August 1, 2005 Posted August 1, 2005 So dare I ask how old both of you are?? 520615[/snapback] Me (probly not but I will say anyway)? 19... (20 on Sunday...). Never guess I was that old would you? Mentally I am about.... 10? How about making as she loves she loves me not program. Similar to the flower thing. 520634[/snapback] Just says: She loves me She loves me not and repeat forever? Share this post Link to post Share on other sites More sharing options...
savethedodobird Posted August 1, 2005 Posted August 1, 2005 Just says: She loves me She loves me not and repeat forever? 520639[/snapback] I would have it loop for a random number. If you where smart only odd numbers (but thats up to you.) But the infinite loop is an interesting Idea. Share this post Link to post Share on other sites More sharing options...
Gremlin Posted August 1, 2005 Posted August 1, 2005 Who? me... 520630[/snapback] yes you and the girl Share this post Link to post Share on other sites More sharing options...
Archerzz Posted August 1, 2005 Posted August 1, 2005 we are both 17 I am about 3 months older than her This is my version of the She loves me she loves me not flower #include <iostream> #include <string.h> #include <stdlib.h> using namespace std; int main() { int i; int x; int z; string love[2] = {"She Loves Me\n", "She Loves Me NOT!\n"}; cout << "Give me a number between 1 and 10: "; cin >> i; cout << "Give me another number between 100 and 500: "; cin >> x; cout << "Give me your age: "; cin >> z; int end = i * x + 15 * (rand() * z); int begin = 0; while (begin < end) { cout << love[0]; cout << love[1]; begin++; } system("pause"); return 0; } Share this post Link to post Share on other sites More sharing options...
Kamikaze_Badger Posted August 1, 2005 Posted August 1, 2005 The string typedef is part of the std namespace. So is system(). Yes, came as a surprise to me too. So, you won't be needing the string.h include. Share this post Link to post Share on other sites More sharing options...
Archerzz Posted August 1, 2005 Posted August 1, 2005 I know I put it there from habit just incase I need to change something and another thing is if you look closely at my while statement it wont work. Can you guess why....... Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted August 2, 2005 Posted August 2, 2005 I know I put it there from habit just incase I need to change something and another thing is if you look closely at my while statement it wont work. Can you guess why....... 520874[/snapback] Sure, it'll always end up with love[1] last, so it's always going to be... "She Loves Me NOT!" *cries* Share this post Link to post Share on other sites More sharing options...
Archerzz Posted August 2, 2005 Posted August 2, 2005 Yup I figured that one out my self woooohooo, but fixing it is where the problem lies Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now