#std::cout not working

21 messages · Page 1 of 1 (latest)

crystal apexBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

humble trout
#
#include <iostream>

int main() {
    std::cout << "Hello";

    return 0;
}

heres my code

#

when i run it it shows this error message :

brittle bough
#

<< vs >>

humble trout
#

?

brittle bough
humble trout
#

wut

brittle bough
#

is this code exactly what you are trying to compile?

humble trout
#

yes

brittle bough
#

cause the ouput would surgest you wrote std::cout >> name; over std::cout << name;

humble trout
#

whats the solution

#

OH

#

IM STUPID

#

I DIDNT SAVE THE FILE BEFORE RUNNING IT

#

bruh...

rugged shadow
#

ah yes

humble trout
#

I didn't know that I need to save before running

#

so ima close this post then still thx for your help

crystal apexBOT
#

@humble trout

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

humble trout
#

!solved