Thread has been deleted
Last comment
Help with C++
 | 
Romania DZthebest 
Can someone help me with why this is not working ? imgur.com/a/WWYfCr6 help hltv mens))))
2021-12-08 18:47
Topics are hidden when running Sport mode.
#3
 | 
Norway Balta69
Would try to help but picture quality is -480p
2021-12-08 18:49
12 replies
#39
 | 
Romania DZthebest
2021-12-08 19:02
1 reply
Still blurry
2021-12-08 20:18
In cpp we use (1) && insted of and (2) while storing data s=x+y+z , dont use double ==. Use == in "if" conditions for comparing. Eg. If(x==y). (3) Use curley brakets property, to format your code, to understand it better. (4) Go and read the syntax of cpp in theory first, then do the implementation. In programming , theory is a important as doing practical. HAPPY CODING 😀
2021-12-10 19:28
1 reply
#187
 | 
Ukraine BondaX
and works too
2021-12-11 00:21
#150
 | 
Trinidad and Tobago r41
its 1080p
2021-12-10 19:29
7 replies
#164
 | 
Norway Balta69
he edited the image
2021-12-10 20:30
6 replies
#165
 | 
Trinidad and Tobago r41
you cant edit your posts
2021-12-10 21:19
5 replies
#167
 | 
Turkey lDarKl
yes you can ? :D
2021-12-10 22:50
4 replies
#170
 | 
Trinidad and Tobago r41
no u cant
2021-12-10 23:40
3 replies
this reply has been edited to prove a point EDIT: EDITED KEKW
2021-12-11 22:57
2 replies
#208
 | 
Trinidad and Tobago r41
u can only edit comments... not actual tread posts bruh
2021-12-11 23:03
1 reply
yea that is correct but i think he is talking about reply #38 im not sure tho i just like reading in these programming question threads. a lot of the time there's a 100 ppl acting like they are programming gods but nobody can solve the OP question lol
2021-12-11 23:05
The hell is even that code, sir
2021-12-08 18:50
10 replies
+1 this looks like someone that's only ever programmed in python trying to use C++ while not looking up any of the syntax
2021-12-08 19:22
9 replies
was thinking the same
2021-12-10 18:53
+1
2021-12-10 23:40
I dont see it. Just looks like someone that doesn't know how to code
2021-12-12 04:14
3 replies
I wouldn't count someone that's only ever programmed in python as "knowing how to code"
2021-12-12 04:21
2 replies
Huh. I am not sure what you mean by that. Python being a scripting language maybe you mean it lacks the compiling framework which you value as an experience but really for many things python is all you need if not the best option. Lots of people make a living with django/flask/scientific stack, or use python as the main tool in fields like finance, penetration testing, web app dev, data science... It is a pretty complete language as far as coding practices go, so i kinda miss your point here. If you think c++ is hard and python is easy or some misconception like that you're just a retarded kid that needs to learn more. The hard part about coding is never the syntax. I myself learned c++ as first language but now would rather use python for most things, even mem hacking games. cheers
2021-12-12 05:09
1 reply
That was said as a joke, I'm 99% sure OP is trolling
2021-12-12 05:11
very inaccurate statement
2021-12-15 13:44
2 replies
nt python user
2021-12-15 14:24
1 reply
that i am
2021-12-15 14:26
#5
 | 
France taykah
how you manage to make one syntax error in every single line is beyond me
2021-12-08 18:51
5 replies
+1 there's literally not one thing right there
2021-12-08 19:18
+1 this is less than 0 effort attempt
2021-12-09 19:13
hahahahahaha
2021-12-09 19:22
#152
 | 
Wales the_dark
pretty sure dude is trolling, no way someone could fuck up a program this bad
2021-12-10 19:30
lmao
2021-12-11 22:47
Because you've somehow encapsulated what should be variables in quotes making it a string?
2021-12-08 18:51
12 replies
#12
 | 
Romania DZthebest
so how should i put it ? int "x"; int "y"; int "z"; int "S"; int "P"; ??
2021-12-08 18:53
11 replies
int x,y,z,S,P;
2021-12-08 18:54
10 replies
#22
 | 
Romania DZthebest
thanks it worked but now what ? cin<<"x=5"; cout>>x; cin<<"y=42"; cout>>y; cin<<"z=15"; cout>>z; and it just says | cin<<"x=5"; cout>>x; | ~~~^~~~~~~ | | | | | const char [4] | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iostream:39, from /tmp/9PMVUWt5XH.cpp:2:
2021-12-08 18:56
9 replies
write above code using namespace std; or std:: before every cin and cout
2021-12-08 19:04
#33
jL | 
Lithuania Zen3ix
cin is used to ask for code, there's no point in using cin if you just put in the value as x=5 + it should be cin>> not cin<< gl with all those mistakes, for the sake of your sanity i really hope this is a troll
2021-12-08 19:00
#include <iostream> using namespace std; int main() { int x,y,z,S,P; cin>>x; cout<<x<<endl; cin>>y; cout<<y<<endl; cin>>z; cout<<z<<endl; if(x % 2 == 0 && y % 5 == 0){ S = x+y+z; cout<<S<<endl; } if(x > 0 && y > 0 && z > 0){ P = x+y+z; cout<<P<<endl; } else{ cout<<"Sunt negative"<<endl; } if(S>P) cout<<"S>P"; else if(P>S) cout<<"P>S"; else cout<<"P si S sunt egale"; return 0; } No idea how the comparisons at the end work if you do not initialize the values for P and S since as far as I know, C++ unlike other languages does not assign default values to its variables.
2021-12-08 19:04
4 replies
#120
 | 
Romania DZthebest
the algorithm made on my test is supposed to work an infinite amount of times not only based on 3 numbers... thanks anyway,much love
2021-12-09 00:30
2 replies
then wrap it in while(true)
2021-12-09 22:39
1 reply
#137
 | 
Romania DZthebest
the teacher hasn't teached us WHILE command or anything, only if
2021-12-10 18:50
i've kinda forgotten c++ (its my worst language anyway), but why haven't u used curly braces for the very last else statement? you have used them for the first else statement above, but not the last one.
2021-12-15 13:56
bro directly use x=5; and for cout it should be cout<<x; and S=x+y+z not "S=x+y+z" every thing in this code is wrong somehow either you are trolling or ......
2021-12-08 19:05
#7
 | 
Belgium lil_vodka
thanks for reminding me that i truely hate programming never gonna make that mistake again
2021-12-08 18:51
3 replies
#213
 | 
Lithuania gime114
cmon programming ain't that bad once you put the practice in
2021-12-12 02:57
2 replies
#230
 | 
Belgium lil_vodka
8 hours of your day you're staring at a screen and after work most of all the programmers I know, go home and play video games. Let's say 10-12 hours a day right.. + 8 hours of sleep = barely any free time for gf, go for a hike/just any sport, cooking takes a lot of time away as well, friends, etc I call this one of the beautiful examples of slavery in the 21st century.
2021-12-12 15:37
1 reply
#231
 | 
Lithuania gime114
you're really lucky if you job doesn't require you to work 8 hours a day bro
2021-12-12 18:54
wtf is this code
2021-12-08 18:52
#9
 | 
Georgia _p0int
wtf
2021-12-08 18:52
you should use "std::" before cin and cout or try typing "using namespace std;" before main. in that case you don't need to always type std:: oh, and there are hell more mistakes, I think I got baited
2021-12-08 18:54
7 replies
#29
jL | 
Lithuania Zen3ix
No worries bro, even if you got baited you tried to help someone, it might seem foolish in front of the troll, but at least in your heart, you will know, that you did it thinking of others.
2021-12-08 18:58
2 replies
respect for this guy
2021-12-08 19:58
1 reply
#127
 | 
Bulgaria Zhiv
+1
2021-12-09 19:09
i dont think you got trolled, we study c++ in highschool in romania and this dude probably doesnt know how to do his homework
2021-12-09 19:09
3 replies
that's good to hear actually, because we studied pascal in high school in Moscow. We didn't have a choice
2021-12-09 22:37
2 replies
#140
 | 
Russia Soawii
yea same. don't know why they teach pascal, everything from python to c would probably be better even for school level.
2021-12-10 19:15
1 reply
+1
2021-12-15 12:55
Man, use indents and brackets, this is unreadable.
2021-12-08 18:53
funny joke
2021-12-08 18:53
don't use imgur to share code, there are so much better options github gists is just one example, even pastebin
2021-12-08 18:53
4 replies
If he knew that, his code wouldn't be so bad.
2021-12-08 19:09
3 replies
he's either really bad or baiting
2021-12-08 19:23
2 replies
part of me wants to think that he is baiting, but I have seen worse attempts at coding before.
2021-12-08 19:24
#87
 | 
United Kingdom legji
Everyone gotta start somewhere.
2021-12-08 19:55
You will fail whatever class you are taking lol(unless this is just hobby ofc)
2021-12-08 18:54
That's so easy
2021-12-08 18:54
imagine not using java
2021-12-08 18:54
14 replies
C++ can execute without the use of secondary programming. Why do you think most of the best game hacks are made in C++?
2021-12-08 18:57
1 reply
#197
 | 
Italy zCri
game cheats are made in c++ because of easy win32 api access not because java runs on a vm
2021-12-11 22:42
#71
 | 
Germany LYCRIs
Imagine using java when there is cobol
2021-12-08 19:26
8 replies
cobol devs have the biggest cocks
2021-12-10 19:20
7 replies
assembler guys be like: LOL
2021-12-10 19:22
6 replies
#161
 | 
Romania brevoxyl
+1
2021-12-10 20:07
#214
 | 
Lithuania gime114
MIPS is cool and all, but try coding in haskell
2021-12-12 03:00
4 replies
Is it's difficulty in being functional? If yes I have quite some experience with R
2021-12-12 03:24
3 replies
#218
 | 
Lithuania gime114
R is not pure, the thing with Haskell is that functions always output what they're supposed to (you can't have a function defined as outputting an int and then it outputs an error). Which means you have to create these things called monads that essentially indicate that the output can be an error or an int and that's where all the headaches start.
2021-12-12 03:59
2 replies
I'll give it a try some day,I actually heard many good things about it, and was always curious.
2021-12-12 04:22
1 reply
#227
 | 
Lithuania gime114
You may find it fun to just explore, it wasn't that fun for me when I had to meet deadlines with this disabled programming language.
2021-12-12 13:04
#90
 | 
North America 007DBR9
mc code pog
2021-12-08 19:56
Java lol
2021-12-09 19:15
#203
 | 
Kosovo Arkanan
+1
2021-12-11 22:52
#19
Lox | 
Brazil sc7ry
n1 bait
2021-12-08 18:56
there are so many mistakes, I suggest you look at a basic C++ tutorial. You are declaring int "x,y,z..." between quotation marks, you don't need those. Your if comparisons are wrong. x%2=0 has to be x%2==0 because you are comparing it x%2 to 0, not calculating the actual equation. I don't remember having to put semicolons after if()'s and much much more. Seriously, look up some tutorials, there are so many mistakes.
2021-12-08 18:56
what is this code? "S=x+y+z";
2021-12-08 18:56
5 replies
#25
 | 
Romania DZthebest
im 9th grade and that's what I got on my test paper today, to write a code and i was just testing to see if it works... it doesnt S(sum) = x + y + z cin c,y,z
2021-12-08 18:57
4 replies
you should use: using namespace std; below #include instead of using std:: in front of cout, cin, etc.
2021-12-08 19:00
hahah good luck with semester exam
2021-12-08 20:51
2 replies
#118
 | 
Romania DZthebest
thx mens but i think i will ace it no joke
2021-12-08 21:18
1 reply
damn ok
2021-12-08 21:31
For comparisons you need to write two ==, because the single = is for setting values. Also you're closing off your comparisons immediately anyway with semicolon, it should be followed by {} brackets where to write all actions inside.
2021-12-08 18:57
#26
rain | 
Bosnia and Herzegovina Biske
bro use visual studio online compiler big shit and you didnt do using namespace std::
2021-12-08 18:57
#27
 | 
Russia Soawii
i'm dead
2021-12-08 18:58
1 reply
same
2021-12-08 19:02
What even is this code? Can barely read anything, but even what I can read, there's syntax errors all over the code xD. Also, there are many tools to share your code. Don't use imgur
2021-12-08 18:58
15 replies
"Don't use imgur" - IQ-check xd: can you zoom in? Yes you can :)
2021-12-08 19:05
13 replies
I don't wanna zoom into the pic. It's much easier to simply share using codeshare.io or some other tool. Makes debugging a lot more streamlined. Programming convenience has nothing to do with IQ. You may go and write an assembly project using KEIL, if you're so proud of your IQ :) Edit: Just saw #38 lmao. Unless this guy is baiting, he has absolutely no clue about C++.
2021-12-08 19:11
12 replies
I literally couldn't care less about what you just wrote - also why would I write a random assembly project(you probably mean a project using assembly code only) to determine my IQ? I have a maser's in computer science, think I am okay ;-) In fact, Was just trying to help. "Programming convenience has nothing to do with IQ." buddy wut? I am telling you that you can zoom in on the picture, idgaf about "programming convenience lmao😂
2021-12-08 19:45
11 replies
So, you don't give a fck about anything, but still go around blabbering about IQ with random people for no reason? "I have a Maser's degree in computer science" xDD. What an insecure loser lmfao.
2021-12-08 19:54
10 replies
lmao, I wrote 1 sentence mr sensitive😂 Go write some assembly code ;-) Surely, you'll come far! Or get frustrated about a picture others post :)
2021-12-08 19:53
2 replies
Why do you have a problem with me commenting on the OP's posts? Are you his alt? Mind your own business loser. You aren't fooling anyone, Mejunk.
2021-12-08 19:56
1 reply
How can you get so much out of " IQ-check xd: can you zoom in? Yes you can :)" hahaha. Just tried to help you understand imgur provides an easy way to zoom xd since you are complaining
2021-12-08 19:58
I literally just wrote "IQ-check" hahaha <3 and bum, triggered😘Zooming in on an image is rough indeed, but your assembly skills might help you at some point xd
2021-12-08 19:55
6 replies
And there you go, multiple replies to the same comment, with all those cringe emojis xD. Nice try mejunk. Didn't get enough attention today?
2021-12-08 19:57
5 replies
hahhaha, I just told you you could zoom lmfao 😂
2021-12-08 19:58
4 replies
It's all right. Don't cry now.
2021-12-08 19:59
3 replies
<3
2021-12-08 19:59
You'll get far with your "programming convenience" philosophy(even though it is completely irrelevant with someone help sharing a picture of his code for help)😘 Sorry for ruining your demeaning reply to the OP :(
2021-12-08 20:01
1 reply
Lmfao you just can't stop your ridiculous habit of replying to the same comment multiple times with various cope comments, just to suit your insecure fragile ego xDDD
2021-12-08 20:06
I assumed it was on purpose
2021-12-08 19:08
#30
 | 
Morocco Snafuuu
Most talented CSGO engineer
2021-12-08 18:58
1 reply
Reported to John McDonald
2021-12-08 19:14
Where the hell you studied c++?
2021-12-08 19:00
9 replies
I suggest to go look at basic toturials and not hltv forum with this code.
2021-12-08 19:01
where did you study it
2021-12-08 19:46
7 replies
In school along with c#, php
2021-12-09 16:33
6 replies
#123
 | 
Lithuania ezFor
you guys study c#, php, c++ in school? I am in 9th grade and we are learning how to do presentations in power point((
2021-12-09 16:46
4 replies
Well I have it as a part of cyber security so :shrug:
2021-12-09 19:00
3 replies
Cybersecurity in school?
2021-12-11 22:46
2 replies
gotta learn how to protect your votes from ruski hackers
2021-12-11 22:59
1 reply
Ah ye,indeed
2021-12-12 02:32
Damn, I was learning PowerPoint and Word til 9 grade, then some Pascal and Excel in 9th grade. Although I moved to IT-school and here we're learning Python and C++.
2021-12-10 19:27
C++ users kekw
2021-12-08 19:01
its an aimbot!!!
2021-12-08 19:02
try #include <iostream> int main() { std::cout << "Hello World!"; return 0; }
2021-12-08 19:04
4 replies
missing catch mens))
2021-12-08 19:05
its better to use using namespace std;
2021-12-08 19:07
2 replies
#73
 | 
Poland aiken
Questionable advice. It depends and in some cases it's not a good practice. Also make sure to avoid 'using namespace' in header files as it can strike back when you don't expect it.
2021-12-08 19:40
Putting using directives in headers or main is not good habbit
2021-12-09 19:18
bossule fi atent, cand ai cin pui >> nu pui <<, cin>> si cout<< .merge si std::cout ce ai pus tu acolo cred. cand folosesti cin nu pui " " dupa, adica tu ai pus cin<<"x=5" cand defapt trebuie sa pui cin>>x si dupa ii dai tu valoarea 5 lui x din tastatura cand rulezi programu, la fel si pt celelalte
2021-12-08 19:05
2 replies
ar fi de ajutor daca mi-ai da si cerinta problemei ca sa stiu exact ce ai incercat sa scrii
2021-12-08 19:06
1 reply
de asemea trebuie sa ii initializezi pe S si pe P cu 0, daca nu scrii ca S=0; si P=0; sunt sanse mari sa iti dea erori.
2021-12-08 19:11
I'm fluent in java and c# but what the hell is this code
2021-12-08 19:05
sorry im shit in c++ but bump
2021-12-08 19:06
#52
 | 
Russia Cryst4Lgg
maybe after int you have to remove quotes but i'm not sure. I was learning programming long time ago.
2021-12-08 19:07
got baited gg :/
2021-12-08 19:07
#58
 | 
Canada f0rkb0mb
never share code on an image, get proper indentation and brackets
2021-12-08 19:10
If you only had an error or two I would help, but you clearly know absolutely nothing about c++, please watch a tuturial.
2021-12-08 19:10
#61
 | 
Poland aiken
I clicked the topic and wanted to help but when I looked at your code I figured out that you really should get back to basics as almost every line has a syntax error. At this moment you are asking us to write it for yourself. The main question arises... are you forced to do this by someone or you are willing to learn programming?
2021-12-08 19:13
sorry frate youre beyond salvation you should consider taking another path in ur career glhf
2021-12-08 19:15
dude use for example pastebin for code not fucking printscreens. It is like saying that Luffy is actually better than Zoro, which is obviously a logical error.
2021-12-08 19:17
just write me what you want your code to do and i'll try to do it for you
2021-12-08 19:24
nice bait kekw
2021-12-08 19:26
0/8
2021-12-08 19:43
had an aneurysm thanks
2021-12-08 19:44
1 reply
xd
2021-12-08 20:05
#79
 | 
Bosnia and Herzegovina faykeee
You forgor == and &&
2021-12-08 19:45
#80
 | 
Brazil Brunoow13
use js
2021-12-08 19:45
0/8 you can't be this bad
2021-12-08 19:46
Wtf is this even trying to do cin << “x=5” wtf? cin is an input stream, you need to direct the flow from the input to a variable like int x std::cin >> x; Also wtf are you doing with cout. And wtf is happening in the rest of the code too. You need to start again from scratch bro, and I mean start learning C++ from 0.
2021-12-08 19:46
just start from scratch and watch a good tutorial
2021-12-08 19:54
eh part of me would love to learn code, im studying for a business major. IT is definitely the future so I guess I will work at IT in marketing or finance or management... I know its never too late, but I don't know where to start and even if my self learning will be applicable, maybe I will do like a bootcamp down the road
2021-12-08 20:02
Idk why you make everything into a String but you shouldn't do that in C++ unless you're gonna handle ur variables as String. Other than that, I'm not a C++ expert, I'm more into Java and js so I can't help with syntax errors that ain't extremely obvious.
2021-12-08 20:03
1 reply
Looking a bit deeper into the code "cin<< (variable name)" you don't put the value u want to add, cin is for user Input. When u assign a value to a variable just do it like "stringvalue = "value"" or "intvalue = 50" Other than that idk what could be wrong, and sorry for my response being so shitty, I'm playing rocket league xd
2021-12-08 20:11
so in the code you went with c function inside that is set for each parametr (ex. X = 5) and function out for x overall, before doing this you determined initials for each parameter wouldn't that just say that your X equals 5 and repeat then you put function if x divide modul on 2 which would equal 2.5 same with y but it would be 8,4 then you had created another parameter for a S which equals 3 functions x+y+z same with P but for you tried to setup certain rules and apply them with parameters i don't think this a way try to use parameter website and use certain paremeters for this w3schools.com/cpp/default.asp else is a loop basically so is if it wil be hard to determine it I kinda understand what you wanted to do with it but it seem's like you tried to go creative but by doing this you kinda messed the overall use of these functions(some call it syntax). It's like you tried to simplify something that is impossible to do, you need to try C++ overall not only go with one function but if you want you need to expand also, I need to also ask you, is this some exercise for you and you need to only use if, else (loop function). Also formatting is just awful, sorry don't get mad.
2021-12-08 20:09
#108
D0cC | 
Czech Republic OxyK
bro wtf is this code? learn basic syntax of C++ if u want to help, hit me up and i will code it for u
2021-12-08 20:06
1. "x,y,z,S,P" is not of type int 2. The whole point of cin is to get user input and assign it to a variable 3. There's a big difference between = and ==, when you say S==z,y,x its returning a bool true or false, you should use = to assign 4. You shouldn't have multiple else statements like that
2021-12-08 20:15
there are kinda a lot of mistakes there but its okay since your are 9th grade you probably just started c++ very recently line 6, 12, 16 dont put quotation marks line 7, 8, 9 you need to read variables like cin>>x; for example. If you want to assign a variable a value just initialize it with that value like int x=0; line 11 you need == because only one = is for assigning variables values line 11 and 15 dont put ; right after if(), while(), for() etc line 7, 8, 9, 13, 17, 22, 24, 25 you need to write variables like cout<<x; in if(), while(), for() etc you need to put all of the actions in brackets { } if you need any help pm me
2021-12-08 20:48
#122
 | 
Czech Republic y0fl0w
LOL
2021-12-09 16:38
1 reply
me when jelly kwebkop india india mumbai
2021-12-09 19:01
Go study the basics of C++, because your code doesn't makes sense
2021-12-09 19:09
This has to be a bait
2021-12-09 19:20
1 reply
he is probably 4th year CS student lol
2021-12-10 19:24
its just fucked all around just strat agian broski
2021-12-09 19:21
#139
 | 
Brazil medonhoso
Study some programming algorithms and more c++ basic syntax, there a tons of free courses on youtube and the only thing stopping you from learning is yourself.
2021-12-10 19:10
damn this whole code is a mistake dm me if you still have troubles with it, I can try to help (although I'm more into Python)
2021-12-10 19:21
#143
 | 
Sweden Akoulad
wtf is all I have to say
2021-12-10 19:24
oh god my eyessssssssssssssssssss
2021-12-10 19:23
The code is so bad, it cannot even be a troll
2021-12-10 19:30
1 reply
+1 you can't make this shit up
2021-12-10 19:37
bro, you really should improve your style, this code is kinda hard to read. and why the fuck are you using this retarded syntax? you must've been drunk when you wrote this
2021-12-10 19:35
do you are have stupid? Fix the way you code and it'll be simpler
2021-12-10 19:38
2 replies
That grammar is the equivalent of how this code is lol
2021-12-10 19:59
1 reply
it's a meme of a roblox character saying "do you are have stupid'
2021-12-10 23:26
delete every line. read a tutorial. start again.
2021-12-10 19:39
1 reply
no thank you
2021-12-10 19:48
did you even open the book/looked at the first part of a c++ tutorial?
2021-12-10 19:43
omg man indent your code first. codehs.gitbooks.io/introcs/content/Progr..
2021-12-10 20:07
wtf am I looking at, that's the most disgusting C program I've ever seen
2021-12-10 20:09
I want to give you an advice. When you start a programming project, for example in your case, start only by only trying to compile : int main () { int "x,y,z,S,P"; return 0; } This will give you a compliation error because the syntax is wrong. Once you get the syntax correct, which should be int x,y,z,S,P; then try to move on... If you write a long text of incorrect code as a beginner, it can be difficult to spot where you went wrong.
2021-12-10 20:10
1 reply
#190
 | 
Romania DZthebest
thx man i appreciate
2021-12-11 00:28
Don't use "and" use "&&", also = in C and C++ is used for declaring variables, but == is used for comparing. Eg. int a=5; if(a==b);
2021-12-10 21:22
what??? did you write your code in c++ or in english?
2021-12-10 23:36
hot topic mens, hot cpp
2021-12-10 23:42
#173
 | 
Brazil batatoka
Dude... This code is anything except C++... 1) U need to indent your code. It helps a lot to read 2) I didnt understand what is that cin >> "x=15". U want to print this on the screen or u want to assign this value to the variable x? If is the second option, u didnt need the operator cout... Only x = 15 works fine. 3) The operator "and" in C++ is "&&" and "or" is "||" 4) The operator = is used to assign values to variables. Ex: S = x + y + z. So the variable S will recieve sum(x,y,z). The operator "==" is used to compare two values and return a bool type. Ex: (x%2 == 0). If x % 2 is equal to 0, then this statement will return true. 5) The operator cout is used to print on the screen. U only need to use cout << S, for example. 6) This program has logic problems. If any of the "ifs" conditions wasnt reached, U will compare 2 variables (S and P) with "junk" values inside of then. It will make the program do some unexpected things
2021-12-11 00:03
12 replies
#174
 | 
Denmark kbye_
u fell for the bait
2021-12-11 00:04
5 replies
#178
 | 
Brazil batatoka
It is a bait??? :((( Im sad now
2021-12-11 00:07
4 replies
#180
 | 
Denmark kbye_
obviously it is, everything is deliberately wrong, not a single line of code is correct here, cin<<, cout>> lmao
2021-12-11 00:09
3 replies
#186
 | 
Brazil batatoka
D: I thought he was a beginner who didn't know how to do while-for
2021-12-11 00:21
2 replies
#192
 | 
Romania DZthebest
I AM :(
2021-12-11 00:28
1 reply
damn ur getting bullied in these comments lol dw u got this
2021-12-11 00:38
not op but do you have any suggestions on how to begin learning c++? i've never done any coding so i dont even know if c++ is a good starting language or if i should go for something else.
2021-12-11 00:08
5 replies
#181
 | 
Denmark kbye_
yes c++ is a good starting point, python will be way more easier than c++ and java as well, i would suggest mastering one language with all object oriented concepts and then you can easily play with other languages, if you are an absolute beginner you can watch thenewboston's aka bucky roberts's youtube playlist for c/c++
2021-12-11 00:13
#182
 | 
Brazil batatoka
Im not a expert in programming. Im doing Computer science in College. But in my opinion, C and C++ are good start languages to start learning. I dont recommend u start with Python. Python is a super high level language. It helps a lot the programmer but its awful to learn programming logic
2021-12-11 00:13
3 replies
Python is probbably the easiest language to get started with, super super simple syntax and you can use it for anything.
2021-12-11 22:51
2 replies
#212
 | 
Brazil batatoka
The problem with Python is that it is super super simple... It is so simple that is bad for the beginners starts to learn programming logic but I agree with you about its syntax
2021-12-12 02:54
1 reply
Not sure i agree with that. Wish i had learny Python before c# and Java
2021-12-12 03:11
#175
 | 
Brazil 2mig
I cannot 👍
2021-12-11 00:05
help him japanese ppl, i guess you are good at blurry stuff
2021-12-11 00:05
bro pls use std library :D what is std:: xd
2021-12-11 00:06
3 replies
you mean using namespace std?
2021-12-11 00:26
2 replies
yea
2021-12-11 00:29
1 reply
not a good idea
2021-12-11 22:40
amazon.de/Web-Design-HTML-CSS-Beginners-.. i have a present for u for free a few days hf call me santa claus
2021-12-11 00:15
7 replies
#184
 | 
Denmark kbye_
santa give me a knife pls
2021-12-11 00:16
4 replies
i have no knife im sry :/ but i have a pretty funny game what u can play with your friends epicgames.com/store/de/p/prison-architec..
2021-12-11 00:21
2 replies
#191
 | 
Denmark kbye_
seems like a good passtime game, ty mens
2021-12-11 00:28
1 reply
store.steampowered.com/app/233450/Prison.. its a good game, funny, very positive votes and 25 euro on steam
2021-12-11 00:29
here real knife but not for free :( amazon.de/dp/B017DLDQXQ?smid=A3JWKAKR8XB..
2021-12-11 00:22
#207
 | 
Kosovo Arkanan
i don't have kindle unlimited santa claus :(
2021-12-11 23:00
1 reply
he will bring u something soon i heard
2021-12-12 03:18
you forgot a semicolon
2021-12-11 22:43
this has to be bait lol
2021-12-11 22:53
1 reply
#228
 | 
Russia FutureCk
this is
2021-12-12 13:06
bruh just use namespace at this point
2021-12-12 04:03
sadly i only know HTML
2021-12-12 04:05
no way this isn't bait
2021-12-12 05:15
long time ago, i had learn c++ . but never used real programming company. i think objective based programming better. visual studio C# or delphi, sql server etc.
2021-12-12 13:12
#include <iostream> using namespace std; int main() { int x,y,z,S=0,P=0; // cin>>x; cout<<x; //cin>>y; cout<<y; //cin>>z; cout<<z; cout<<"X = "; cin>>x; cout<<"Y = "; cin>>y; cout<<"Z = "; cin>>z; if(x%2 == 0 && y%5 == 0) { S = x+y+z; cout<<"S = "<<S<<'\n'; } if(x>0 && y>0 && z>0) { P=x+y+z; cout<<"P = "<<P<<'\n'; } else { cout<<"Sunt negative\n"; } if(S>P) { cout<<"S>P\n"; } else if(P>S) { cout<<"P>S\n"; } else { cout<<"P si S sunt egale\n"; } return 0; }
2021-12-15 13:16
1 reply
more readable this way: imgur.com/a/mxuEV7s
2021-12-15 13:21
bro, learn the syntax....
2021-12-15 13:49
Login or register to add your comment to the discussion.
Now playing
Thumbnail for stream
Brazil
gaules
8360 viewers
Top streams
All(46)
Casters(34)
Streamers(11)
Organizers(1)
Brazil
gaules
(8360)
Brazil
fnx
(8300)
Brazil
Apoka
(6323)
Other
Elisa Esports
(5025)
Other
REPUBLEAGUE
(3651)
Poland
PAGO
(3567)
Portugal
zorlaK
(3353)
United States
fl0m
(2718)
Other
Anomaly
(1799)
Sweden
Esportal
(1721)
Netherlands
D0cC
(1375)
Brazil
nak
(1283)
Russia
UCC
(985)
Argentina
forg1
(803)
Albania
eSports BLINK
(647)
Romania
Nexus
(561)
Russia
OverDrive
(506)
Spain
FlipiN
(471)
Brazil
mch
(431)
Russia
watchfulTV 2
(419)
Other
Fragbite
(411)
Denmark
Dust2 TV
(255)
Russia
watchfulTV
(231)
Poland
Angelka
(203)
Finland
juho
(183)
Hungary
Esport1 TV
(167)
Slovakia
Y-Zone
(138)
Other
SCL
(113)
Sweden
draken
(101)
Slovakia
REPUBLEAGUE
(46)
Germany
Segalson
(39)
Brazil
clodovildocs
(35)
Poland
matiboro
(29)
Germany
Fragster
(27)
Serbia
zon1Q
(17)
Australia
LucyLuce
(11)
Portugal
Dred
(11)
Russia
Riley
(10)
Portugal
fox
(10)
Poland
AVEZ
(9)
Germany
GoTTi
(7)
Sweden
Loff3
(6)
Denmark
SandeN
(5)
Portugal
Agency TV
(3)
Other
Allied Esports
(1)
United Kingdom
GrimyRannarr
(1)