Categories > Coding > C++ >
I FINALLY LEARNED (some) CPP
Posted
#include <iostream>
int main() {
cout << "pogu pogu pogu ";
return 0;
}
im so proud of myself
I am a used-to-be programmer, now producer, rapper and artist
https://cdn.discordapp.com/attachments/593162491085979649/926285159047770152/visuals-000415636677-YGc9rS-t2480x520_1.jpg
Replied
bruh it's std::cout not just cout (unless you do using namespace std but dont do that its bad)
Cancel
Post
Added
also you dont need the "return 0;" at the end of the function bc the exit code is 0 by default
Cancel
Post
My new discord is Wabz#1337 with ID 777154062789509130
Replied
On a side note you can also use std::hex in combination with std::cout to output a number in hex.
Used like this:
std::cout << std::hex << 1234; //this will print 4D2
This is actually how I output addresses in hex with my dumper
Cancel
Post
My Discord is xwyvern
https://i.imgur.com/mH521VR.png
Replied
You forgot to add the std namespace.
Cancel
Post
Replied
lol spaghetti
jk
u just forgot the std
and added a random exit instruction but since it exits with 0, its useless :>
Cancel
Post
JustMarie#0709
Â
Replied
using namespace std
or
std:cout << "pogu pogu pogu";
call me c++ pro
Cancel
Post
C# and JavaScript |Â Learning C++
Join [Cyrup]
Replied
std::count << "I coded this on my Phone when I woke up REEEEEEE";
Cancel
Post
C# and JavaScript |Â Learning C++
Join [Cyrup]
Replied
nice pog cpp all the way
time to learn go : D
Cancel
Post
💕 Thanks for the rep: chr1srbx Monkey_D_Luffy Kanva Funtimesgetfunner Hiroku Vilictus Delta Rsploits Haxim kiwidevelopment Xero
Replied
Me is console so deadlocust loves me now lol
Console:
main.cpp:4:3: error: use of undeclared identifier 'cout'; did you mean
'std::cout'?
cout << "pogu pogu pogu ";
^~~~
std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/iostream:61:18: note:
'std::cout' declared here
extern ostream cout; /// Linked to standard output
^
1 error generated.
compiler exit status 1
Cancel
Post
no
Error: The signature must be between 3-200 characters
Replied
@63568
I am taken tho
</3
Cancel
Post
no
Error: The signature must be between 3-200 characters
Replied
@Wabz That really depends, since some C++ compilers work out differently. G++ (a popular C++ compiler), prints out normally using cout, and not std::cout.
Cancel
Post
Contribute to Express, an open-source ROBLOX exploit written fully in C.
Users viewing this thread:
( Members: 0, Guests: 2, Total: 2 )
Cancel
Post