Categories > Coding > C++ >

I FINALLY LEARNED (some) CPP

Explanation

Outflown

Posts: 830

Threads: 155

Joined: Nov, 2020

Reputation: 6

Posted

#include <iostream>

int main() {
  cout << "pogu pogu pogu ";
  return 0;
} 

im so proud of myself

  • 0

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

Wabz

Winning.js

Posts: 2406

Threads: 194

Joined: Apr, 2020

Reputation: 27

Replied

bruh it's std::cout not just cout (unless you do using namespace std but dont do that its bad)

  • 0

Added

also you dont need the "return 0;" at the end  of the function bc the exit code is 0 by default

  • 0

My new discord is Wabz#1337 with ID 777154062789509130

DeepPain

Wyvern

Posts: 476

Threads: 5

Joined: Jul, 2020

Reputation: 55

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

 

  • 0

My Discord is xwyvern

https://i.imgur.com/mH521VR.png

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

You forgot to add the std namespace.

  • 0

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@DeepPain Omg finally thank you!!!!

  • 0

TaxiDriver08

JustMarie

Posts: 1545

Threads: 39

Joined: Dec, 2020

Reputation: 6

Replied

lol spaghetti

 

jk

 

u just forgot the std

and added a random exit instruction but since it exits with 0, its useless :>

  • 0

JustMarie#0709

 

WhiteCat

Paradox#8032

Posts: 275

Threads: 20

Joined: Dec, 2020

Reputation: 1

Replied

using namespace std

or

std:cout << "pogu pogu pogu";

 

call me c++ pro 

  • 0

C# and JavaScript | Learning C++

Join [Cyrup]

Posts: 867

Threads: 34

Joined: Aug, 2020

Reputation: 6

Replied

@WhiteCat

std::cout << "You forgot to put another ':'";
  • 0

WhiteCat

Paradox#8032

Posts: 275

Threads: 20

Joined: Dec, 2020

Reputation: 1

Replied

@MaximusExploit 

std::count << "I coded this on my Phone when I woke up REEEEEEE";
  • 0

C# and JavaScript | Learning C++

Join [Cyrup]

WendoJ

WendoJ

vip

Posts: 318

Threads: 29

Joined: Mar, 2020

Reputation: 37

Replied

nice pog cpp all the way

 

time to learn go : D

  • 0

Posts: 724

Threads: 58

Joined: Feb, 2021

Reputation: 3

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
  • 0

no

Error: The signature must be between 3-200 characters

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@timegoesbyfast <3

 

 

/chars

  • 0

Posts: 724

Threads: 58

Joined: Feb, 2021

Reputation: 3

Replied

@63568

I am taken tho

</3

  • 0

no

Error: The signature must be between 3-200 characters

Posts: 139

Threads: 28

Joined: Feb, 2021

Reputation: 3

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.

  • 0

Contribute to Express, an open-source ROBLOX exploit written fully in C.

Next >>>

Users viewing this thread:

( Members: 0, Guests: 3, Total: 3 )