Text Data issue

Pages: 12
If you never used std what have you learned so far? I'm guessing
1
2
3
4
5
6
7
#include <iostream>

int main()
{
    Hello world!
    //why isn't it working?
}


Or you have learned std
1
2
3
4
5
6
#include <iostream>

int main()
{
    std::cout << "Hello world!" << std::endl;
}


or if you go to school they like to teach us evil things like use global variables all the time because I am a lazy teacher
1
2
3
4
5
6
7
#include <iostream>
using namespace std;

int main()
{
    cout << "Hello world!" << std::endl;
}


Btw this forum is to HELP people not GIVE people code.
Last edited on
closed account (NUj6URfi)
Other stuff that are less complex like cout << "Hello World" << endl;
closed account (NUj6URfi)
Some features of c++ are way more complex than they need to be.
like?
std::algorithms == complex ? std::cout << "Yes" << std::endl : std::cout << "No" << std::endl;
No
Last edited on
closed account (NUj6URfi)
std::algorithms == complex ?,
cout << "Yes." << endl << "No." << endl

Are you going to help me or not?
closed account (NUj6URfi)
Please help me someone!!!
What exactly is the problem? Does vlad's method not work?
closed account (NUj6URfi)
Yes there is like 6 errors. Try it.
How about you tell us what the errors are or try to fix them one at a time starting from the first to the last. Most of the time if you fix the first error the rest of them go away. Vlad mentioned that you put a semi-colon where a colon should have been did you try fixing that? He is right most of the time especially since he has been programming a lot longer than me
closed account (NUj6URfi)
One of them is that it is missing a > on the last line. I did add in the semicolon.
closed account (NUj6URfi)
Please help.
Please post your latest code here, in order that we can see where the problems are.
Last edited on
closed account (NUj6URfi)
std::ifstream in( "Save data.txt" );

if ( std:: find( std::istream_iterator<std::string>( in ),
std::istream_iterator<std::string>(),
( "orc" ) == std::istream_iterator<std::string>() ) >
{
orc();
}
probably because you have a random
>

look at the 5th line..
closed account (NUj6URfi)
There is more errors.
closed account (NUj6URfi)
Try compiling it.
closed account (NUj6URfi)
Please help!!!
@toad1359


You are even unable to copy and paste the code I showed and at the same time you are ask about help. Please do somrthing yourself at least try to copy and paste the code and correct the typo I pointed out.
closed account (NUj6URfi)
Sorry. I am using Dev-C++. Is that compiler dated?
closed account (NUj6URfi)
Thank you so much it is working.
Topic archived. No new replies allowed.
Pages: 12