LeDepravedCel
And then one day, for no reason at all...
★★★★★
- Joined
- Jun 27, 2020
- Posts
- 8,374
#include <iostream>
int main() {
std::cout << "Fuck niggers\n";
return 0;
}
#include <iostream>
int main() {
std::cout << "Fuck niggers\n";
return 0;
}
#include <stdio.h>
void psyop();
int main() {
psyop();
return 0;
}
void psyop(){
char world[10];
printf("Did 6 million jews died in holocaust\n");
world = getchar();
if(world == 'yes')
printf(" GooD GoY\n");
else
psyop();
}
because getchar() gets one char only and you typed "no" and pressed enter so it is getting 'n', 'o' and '\n'.WHY THE FUCK THIS IS THE OUTPUT 3 TIMES!!
Also if(world == 'yes') doesn't mean anything I'm surprised it even compiled.
You can't compare strings like that, there's probably a function but I can't remember rn.
Also strings should be in double quotes not single quotes.
If this compiled this is probably only comparing the first element of the array world[] with the character 'y'.
In java you have . equals(something), there's probably something similar in C++You can't compare strings like that, there's probably a function but I can't remember rn.
Also I think that your function would work better if you used strings instead of chars. If you want to use chars you'd need to like do a while loop when you get an input and like memorize everything in an array of unknown length till you hit \n. Then you'd need to compare yes with the input array and that would mean a for loop.C:#include <stdio.h> void psyop(); int main() { psyop(); return 0; } void psyop(){ char world[10]; printf("Did 6 million jews died in holocaust\n"); world = getchar(); if(world == 'yes') printf(" GooD GoY\n"); else psyop(); }
WHY THE FUCK THIS IS THE OUTPUT 3 TIMES!!
You can't compare strings like that, there's probably a function but I can't remember rn.
In conclusion just use Strings.
#include <iostream>
#include <string>
int main() {
psyop();
return 0;
}
void psyop() {
std::cout << "Did 6 million Jews die in the Holocaust?\n";
std::string answer;
std::cin >> answer;
if (answer == "yes") {
std::cout << "GooD GoY\n";
} else {
psyop();
}
}
Flawless code, you are better than almost all currycels#include <iostream>
#include <string>
int main() {
psyop();
return 0;
}
void psyop() {
std::cout << "Did 6 million Jews die in the Holocaust?\n";
std::string answer;
std::cin >> answer;
if (answer == "yes") {
std::cout << "GooD GoY\n";
} else {
psyop();
}
}
How's this niggers
#include <iostream>
#include <string>
int main() {
psyop();
return 0;
}
void psyop() {
std::cout << "Did 6 million Jews die in the Holocaust?\n";
std::string answer;
std::cin >> answer;
if (answer == "yes") {
std::cout << "GooD GoY\n";
} else {
psyop();
}
}
How's this niggers
g++ psyop.cpp -o psyop
psyop.cpp: In function ‘int main()’:
psyop.cpp:5:6: error: ‘psyop’ was not declared in this scope
5 | psyop();
| ^~~~~
make: *** [<builtin>: psyop] Error 1
Brutal, put definition of psyop() above main() and it should workCode:g++ psyop.cpp -o psyop psyop.cpp: In function ‘int main()’: psyop.cpp:5:6: error: ‘psyop’ was not declared in this scope 5 | psyop(); | ^~~~~ make: *** [<builtin>: psyop] Error 1
won't work on my compiler
main should be below psyop(), since psyop needs to be compiled first before it's called on main.Code:g++ psyop.cpp -o psyop psyop.cpp: In function ‘int main()’: psyop.cpp:5:6: error: ‘psyop’ was not declared in this scope 5 | psyop(); | ^~~~~ make: *** [<builtin>: psyop] Error 1
won't work on my compiler
define the function first, because compiler is blind#include <iostream>
#include <string>
int main() {
psyop();
return 0;
}
void psyop() {
std::cout << "Did 6 million Jews die in the Holocaust?\n";
std::string answer;
std::cin >> answer;
if (answer == "yes") {
std::cout << "GooD GoY\n";
} else {
psyop();
}
}
How's this niggers
main should be below psyop(), since psyop needs to be compiled first before it's called on main.
Brutal WSL terminalView attachment 1186454
works now, thanks
it's not WSL it's SSH to my linux sERvERBrutal WSL terminal
Secure shells meit's not WSL it's SSH to my linux sERvER
babica is weer onlineSecure shells me
enige voordeel van dit land, thuiswerken oulehbabica is weer online
public class agreement {
public static void main(String[] args){
System.out.println("Fuck kikes, fuck kikerosoft, Java >>> c#");
}
}
You forgot a curly brace after agreement and after printIn.Java:public class agreement public static void main(String[] args){ System.out.println("Fuck kikes, fuck kikerosoft, Java >>> c#"); }
Ahahaahhhaaha this is greatView attachment 1186454
works now, thanks
Fixed, thank you.You forgot a curly brace after agreement and after printIn.