Tell me a easy program to make PLEASE!! PLEASE PLEASE!!!!

This is a discussion on Tell me a easy program to make PLEASE!! PLEASE PLEASE!!!! within the C++ Programming forums, part of the General Programming Boards category; Can someone please o please tell me a program to make? I am very bored. But make it sorta easy. ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    97

    Tell me a easy program to make PLEASE!! PLEASE PLEASE!!!!

    Can someone please o please tell me a program to make? I am very bored. But make it sorta easy. I started learning about a week ago. I know cout, cin, int, char, and other small doodads I think. Thanks!

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    How about playing around with a new concept: arrays?

    int my_array[3];//creates 3 int variables, with index values 0, 1, 2

    my_array[0]=10;
    my_array[1]=20;
    my_array[2]=30;

    cout<<my_array[0]<<endl;
    cout<<my_array[1]<<endl;
    cout<<my_array[2]<<endl;

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    Mmm...arrays. How about making a 3D game like Quake?

    Do you have mad loop skillz? Try outputting this:
    Code:
    *
    **
    ***
    ****
    *****
    Last edited by funkydude9; 08-10-2003 at 09:21 PM.
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    Lol, i am working on quake4. lol. those progs look cool, arrays i think r too advanced, and i dont know loops. well, a lil lil if....else.

  5. #5
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Originally posted by oobootsy1
    Lol, i am working on quake4. lol. those progs look cool, arrays i think r too advanced, and i dont know loops. well, a lil lil if....else.
    You'll have to beat me to Quake 4. Actually, mine's going to be so good, I'm calling it Quake 5.

    Anyway, loops are really easy to learn, and arrays aren't too difficult. Check out the tutorials on this site.

    You could also make a very basic text-adventure with a couple rooms.
    Away.

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    Just knowing a little I/O won't get you very far. Loops are really cool and fun (did I mention fun?). Check out these tutorials
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  7. #7
    Registered User slaveofthenet's Avatar
    Join Date
    Apr 2003
    Posts
    80
    if and else aren't loops, loops are while, do while, and for.
    Code:
    for (int i = 0; i < 10; ++i)
    {
         cout << i << "\n";
    }
    
    while (v1 != v2)
    {
         ++v1;
    }
    
    do
    {
         ++v1;
    }
    while (v1 != v2);
    Play with those, check out the tutorials for more help.
    Detailed understanding of language features - even of all features of a language - cannot compensate for lack of an overall view of the language and the fundamental techniques for using it. - Bjarne Stroustrup

  8. #8
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    Originally posted by funkydude9
    Just knowing a little I/O won't get you very far. Loops are really cool and fun (did I mention fun?). Check out these tutorials

    whats I/O? ok, ima look at tuts on loops. and what did u mean by making a text adventure with "rooms"?

  9. #9
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    Input & output
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  10. #10
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    well i did make this yesterday. kinda cool.........

    Code:
    #include <iostream.h>
    
    void main()
    {
    int age;
    char name;
    int weight;
    char hair;
    {
    cout << "Welcome! I will need some information about you!";
    cout << "\nPlease enter your first letter of your name: ";
    cin >> name;
    cout << "\nPlease enter your age: ";
    cin >> age;
    cout << "\nPlease enter your weight: ";
    cin >> weight;
    cout << "\nFinally, Please enter your first letter of your hair color: ";
    cin >> hair;
    
    	cout << "\nOK! Your freakin name starts with a: " << name << "!";
    	cout << "\nYou are " << age << " years old!";
    	cout << "\nYou weigh " << weight << " pounds!";
    	cout << "\nAnd the first letter of your ugly hair color is: " << hair << "!";
    	cout << "\n Thanks! Have a nice day!";
       cout << "\n..........I wish char can hold more letters.....*sigh*";
    }
    }

  11. #11
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    and whats the difference between int and void? the faq was too confusing

  12. #12
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    and whats the difference between int and void? the faq was too confusing
    int returns an integer to main(), void returns nothing to main() (or whoever called the function).

    Or did you mean int main() or void main()?
    I'm sure these people will tell you, never, EVER use void main(), only int main().
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  13. #13
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    well, lemme try that
    *
    **
    ***

    thing some1 said in a loop. i well probably be back in a minute saying i cant make it, too hard. well, here i go.........

  14. #14
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    well, lemme try that
    *
    **
    ***

    thing some1 said in a loop. i well probably be back in a minute saying i cant make it, too hard. well, here i go.........
    You'll need to use nested loops. (a loop inside of a loop).
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  15. #15
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    i new it. i thought i could do it. but i dunno how to make *'s. only numbers. anyways, it errors.

    Code:
    #include <iostream.h>
    
    void main()
    {
    
    int x=0
    while(x<6)
    	{
    
    	cout << x << endl;
    	x++;
    
    	}
    
    }

Page 1 of 4 1234 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with this program I'm trying to make
    By Sshakey6791 in forum C++ Programming
    Replies: 14
    Last Post: 12-01-2008, 04:03 PM
  2. Replies: 9
    Last Post: 06-17-2008, 12:38 PM
  3. Writing a program to make a calendar
    By Northstar in forum C Programming
    Replies: 17
    Last Post: 11-07-2007, 11:34 AM
  4. how do you make a program send data to the printer?
    By Sintu in forum C++ Programming
    Replies: 19
    Last Post: 10-20-2005, 08:22 PM
  5. How do you make your program record keystrokes
    By aaroroge in forum C++ Programming
    Replies: 1
    Last Post: 06-25-2005, 07:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21