Yes, ofcourse. But that is numbers right?
Type: Posts; User: Glauber
Yes, ofcourse. But that is numbers right?
Thanks.
Thanks.
Need another example.
Any case where a beginner might want to use void main() or main(void) (difference?) instead of int main()
So basicly you never "have" to use std::?
What's the advantages of typing "std::" before a vector initialization, for example:
std::vector<type> instance;
or
vector<type> instance;
Both seem to work, right? So what's better?
Thanks
What's the difference between int main() and void main()?
It just skips the cin when the program is run when you use getline!?
Thank you.
What if the string is unknown to the program before the input?
Is there an easier way of sorting strings?
It's in a for loop, and it dosent seem to work the way you put it. There are lots of cin and cout in the program, and the loop aswell.
Thanks
Do you have any examples of an "easy" function to sort strings?
How would that be in the following example?:
struct data
{
string name;
string title;
string author;
};
I know that a header named "<fstream>" exists. And as I said, it dosent have to be very complex at the beginning stage of the learning process. Using the most easy way will do it for a starter.
How do you make cin to allow the program to continue to the next line, if there is no value to store in the array when you push enter?
Example:
cout << "Enter a name: "
cin >> X;
cout <<...
Using the simplest .txt storage methods is a good start point, no? In case you want to help out, I'd love to understand it.
That's the case.
Yes, the data in the application is stored in a vector. But how do you "extract" the data of a vector to a text file; AND still be able to make the app recognize it, and edit it later on?
Isnt it like in maths, that for example 1>2. But how can you compare A and B? A>B?
Elysia, you have been following my threads, thank you. Now if you wanted to use a map to find something as in my prev. examples, how would you do?
struct data
{
string...
So, how is it done? Do you have to use the pointer method?
getline >> x?
getline x?
When you enter a word inside a char x[30] array, for example Max, it's working, but if you enter Max Maximus, it automaticly fills the NEXT cin. How do you fix it?