Search:

Type: Posts; User: sivex

Search: Search took 0.01 seconds.

  1. Thread: Help; New in C++

    by sivex
    Replies
    15
    Views
    1,722

    Im not familiar with this getline yet, but I'll...

    Im not familiar with this getline yet, but I'll try to learn more about it.

    So, I must check if

    1. string should be more than 2 characters; otherwise display an error message?
    2. the first...
  2. Thread: Help; New in C++

    by sivex
    Replies
    15
    Views
    1,722

    Oh ok. I'll remember that. :)

    Oh ok. I'll remember that. :)
  3. Thread: Help; New in C++

    by sivex
    Replies
    15
    Views
    1,722

    Thanks. I'll copy this code and try it when I get...

    Thanks. I'll copy this code and try it when I get home.

    Uhm.. but I'd like to know.. what does the line using namespace std; do?

    And is it really string intput, or string input?
  4. Thread: Help; New in C++

    by sivex
    Replies
    15
    Views
    1,722

    Hmm.. okay. So I need to use char array for it to...

    Hmm.. okay. So I need to use char array for it to work? How's that done? Like char input[30], or something like that?
  5. Thread: Help; New in C++

    by sivex
    Replies
    15
    Views
    1,722

    Oh okay, thanks. Im trying to get rid off that...

    Oh okay, thanks. Im trying to get rid off that bad habit of not including int before main. :D
  6. Thread: Help; New in C++

    by sivex
    Replies
    15
    Views
    1,722

    Yes, Im pretty new in C++. Im fairly new in...

    Yes, Im pretty new in C++. Im fairly new in programming actually, so please be easy on me. :)

    Okay, I'll write the original code I've done in my programming class as I remember it, coz' I forgot...
  7. Thread: Help; New in C++

    by sivex
    Replies
    15
    Views
    1,722

    Help; New in C++

    Sample input: /this is a comment
    Output: /Syntax error

    Sample input: //this is a comment
    Output:


    What I want to make is a program that will ask for an input, and then if I type /...
  8. Replies
    1
    Views
    1,112

    Novice question.. please help.

    Im still new into C programming, and I have a quick question:

    How do you make a kind of subprogram within a program? No, not really a program but more like sequence of commands so I woudn't have...
Results 1 to 8 of 8