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...
Type: Posts; User: sivex
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...
Oh ok. I'll remember that. :)
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?
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?
Oh okay, thanks. Im trying to get rid off that bad habit of not including int before main. :D
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...
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 /...
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...