Search:

Type: Posts; User: calumn

Search: Search took 0.00 seconds.

  1. Wow there is a huge difference in the numbers...

    Wow there is a huge difference in the numbers that it returned.
    the int was right and said 18, I don't have a clue wat char did and string just added them together in a line instead of adding them
  2. I have another question but I don't want to make...

    I have another question but I don't want to make a new topic for it.
    When defining variables you can use int for integers and string for "text"
    The string variable can hold text (ie letters) and...
  3. Thanks for helping me again. I will try to write...

    Thanks for helping me again.
    I will try to write the code in a neater style and in all languages everyone knows that i am very messy. Thanks for the help. I see what you have done because at first I...
  4. I think that I have over complicted things with...

    I think that I have over complicted things with my loops.
    I am getting 3 errors right now.

    #include <iostream>
    #include <stdlib.h>
    #include <string>
    #include <stdio.h>

    using namespace std;
  5. I am trying to make it open in full screen. I...

    I am trying to make it open in full screen.
    I don't know how to do this but I asked one of my friends said you have to make it so that the program thinks that the user is pressing alt-enter by doing...
  6. Thanks I have changed it to that and it works...

    Thanks
    I have changed it to that and it works fine.
    I have made it also ask you if it is right and it can tell if you are not telling the truth about your age.
    This is the updated code
    What do...
  7. Is it possible to use words inside and if...

    Is it possible to use words inside and if statements
    Say I made a string called right and then it asked the user is the information was right or wrong and then there was an if statement that said if...
  8. Ok I wont use "and again. Do I need using...

    Ok I wont use "and again.
    Do I need

    using namespace std;
    at the start of every thing I make because It says to put it there in the tutorials but Dev C++ didn't have it there.
    I have added it...
  9. It worked fine both ways I have added it so it...

    It worked fine both ways
    I have added it so it will always tell you your age like a child or teenager


    #include <iostream>
    #include <stdlib.h>
    #include <string>

    using namespace std;
  10. Yay I fixed it: { cout

    Yay I fixed it:

    {
    cout<<"Hello\n";
    cout<<"Please enter your first name and press enter\n";

    string name;

    cin>> name;
    cin.ignore();
  11. I used to have the && but someone on msn told me...

    I used to have the && but someone on msn told me to change it to and and it still worked.
    I have changed the and back into && but it still gives me the exact same errors
  12. I have been working on it a bit and have been...

    I have been working on it a bit and have been using more advanced ifs.

    #include <iostream>
    #include <stdlib.h>
    #include <string>

    using namespace std;

    int main()
    {
  13. Replies
    53
    Views
    23,083

    Im sort of new to programming but if you count...

    Im sort of new to programming but if you count flash actionscripting I wrote quite a cool driving game. It took me ages and ages but I eventually finished it and I think it is cool.
  14. I have changed the char thing into string. I...

    I have changed the char thing into string.
    I wondered what char did.
    I don't know how to change what Dev C++ shows.
    I have added if things so that it says whether you are a child or an adult
    This...
  15. Thanks Dave and cunnus I thought about...

    Thanks Dave and cunnus
    I thought about iostream.h but Dev C++ had iostream.h as the default so I left it.
    Thanks
  16. cin.get(); doesn't work even with cin.ignore();

    I have just started to learn C++ and find it very fun. I know VB very well and know a bit of Pascal. I was writing my first program and this is all the code.


    #include <iostream.h>
    #include...
Results 1 to 16 of 16