Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    VvITylerIvV's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    The streets
    Posts
    668
    Reputation
    5
    Thanks
    61
    My Mood
    In Love
    Quote Originally Posted by Koreans View Post
    Neither does mine
    That's because we use strings he uses chars
    Favourite quotes:

    Code:
    I don't need easy, I just need possible. ~ Me 
    
    There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this
    
    Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
    Quote Originally Posted by VirtualSia View Post
    You both have a very weird and awkward view on Computer science.
    Computer science is about computing, which is programming.
    Definition of computing: The use or operation of computers.
    Turning on my computer = computing = programming
    LAWLFAIL

  2. #17
    Toxic Waltz's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    114
    Reputation
    14
    Thanks
    18
    Quote Originally Posted by naghal707 View Post
    Hey guys, I solve my problem by trying and getting error and repairing it. Here is the final code and it works 100% ^^

    Code:
    #include "stdafx.h"
    #include <iostream>
    using namespace std;
    
    int main()
    {
            char name[] = "pseudo";
            int age = 15;
    
            cout << "Hi, what is your name?" << endl;
            cin >> name;
    		cout << "Fine, how old are you?" << endl;
            cin >> age;
            if (age >= 18) {
            cout << "Hi" << name << ", welcome to my application!"<< endl;
            } else {
                    cout << "Hi " << name <<", sorry but you are not old enough for my application." << endl;
            }
            cin.get();
    		system("pause");
            return 0;
    }
    thx for help
    hey this char array is size 6, this can cause problems if your name is longer than 6 letters
    use this instead
    the size doesn't really matter now,

    char name[40];

  3. #18
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by Toxic Waltz View Post
    hey this char array is size 6, this can cause problems if your name is longer than 6 letters
    use this instead
    the size doesn't really matter now,

    char name[40];
    This can cause problems if their name is longer than 40 letters. In 5th grade, my math book said the worlds longest name was like over 1000 letters /

  4. #19
    VvITylerIvV's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    The streets
    Posts
    668
    Reputation
    5
    Thanks
    61
    My Mood
    In Love
    Quote Originally Posted by Koreans View Post


    This can cause problems if their name is longer than 40 letters. In 5th grade, my math book said the worlds longest name was like over 1000 letters /
    And I believe string doesn't have that limit? Well, as low of a limit...
    Favourite quotes:

    Code:
    I don't need easy, I just need possible. ~ Me 
    
    There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this
    
    Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
    Quote Originally Posted by VirtualSia View Post
    You both have a very weird and awkward view on Computer science.
    Computer science is about computing, which is programming.
    Definition of computing: The use or operation of computers.
    Turning on my computer = computing = programming
    LAWLFAIL

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Solved] CF ERROR Please Help (little reward for the one who can help me)
    By vinciking100 in forum CrossFire Help
    Replies: 12
    Last Post: 09-10-2011, 03:28 PM
  2. [Help Request] Please I really need help for my MW2 iSnipe mod
    By Coder91 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 17
    Last Post: 09-08-2011, 07:10 AM
  3. A little help for the artistically challenged?
    By x.navi.x in forum Art & Graphic Design
    Replies: 8
    Last Post: 01-22-2011, 10:06 AM
  4. Help for glitch please
    By omarmustafa in forum CrossFire Glitches
    Replies: 3
    Last Post: 05-19-2010, 08:38 AM
  5. A little Help With IE Please
    By chc18 in forum General
    Replies: 9
    Last Post: 10-24-2007, 02:53 PM