MᏫᎻᎯᎷᎷᎬᎠ
Why
so you can ban yourself :)
Anonymous
/lol
Anonymous
/lol
Anonymous
/lol
Anonymous
/lol
Anonymous
/lol
Anonymous
/lol
MᏫᎻᎯᎷᎷᎬᎠ
stop
MᏫᎻᎯᎷᎷᎬᎠ
or they'll ban you
MᏫᎻᎯᎷᎷᎬᎠ
I saw that
🐰🐾 سمیه
🐰🐾 سمیه
klimi
And thank you 👍🌷
Are you cs student?
🐰🐾 سمیه
I'm a student
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
your welcome
🐰🐾 سمیه
??
For trying to help
MᏫᎻᎯᎷᎷᎬᎠ
sure :)
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
The location doesnt change in ram
BinaryByter
Probably referring to the member functions
MᏫᎻᎯᎷᎷᎬᎠ
virtual function
Anonymous
I mean change fprintf by system dirrect without making *.sh file for(i=2;i<=256;i++) { if(i!=a) { fprintf(f,"iptables -A INPUT -s 192.168.1.%d -j DROP\n",i) ; fprintf(f,"iptables -A OUTPUT -s 192.168.1.%d -j DROP\n",i) ; } }
Anonymous
I mean for(i=2;i<=256;i++) { if(i!=a) { system("iptables -A INPUT -s 192.168.1.%d -j DROP\n",i) ; system,"iptables -A OUTPUT -s 192.168.1.%d -j DROP\n",i) ; }
Anonymous
it is syntax error
Anonymous
is there way to make value of i instead of %d in for statment ?
Avezy
You mean Like sprintf?
Anonymous
#include <string> int main() { std::string s; std::cin >> s; std::cout << s << std::endl; return 0; }
Now how to clear the screen? system("cls"); isn't working aand clrscr(); isn't working too
Furkan
Spawning new process is a heavy operation
Furkan
Instead use os api
Furkan
You can list api calls of cls via "dumpbin /imports cls.exe
Furkan
Dumpbin comes with windows sdk
Isaac
#include <iostream> #include <vector> #include <string> using namespace std; class Test{ private: string name; vector <int> attribut ; public: Test(){ } Test(string name){ name = name; } string getName(){ return name; cout << "getname say Hello world" << endl; } void setNom(string name){ name = name; } }; Hi, freinds. If I run this code I dont get the name of object but if I use this in contructor I get it
Isaac
I thought that this is not required in this case but, .. Can someone explain it me
Isaac
int main() { Test t("caasi8"); // t.name = "caasi8"; cout << "main say hello world" << endl; cout << t.getName() << endl; return 0; }
Isaac
this is the main 👆
MᏫᎻᎯᎷᎷᎬᎠ
In setName
MᏫᎻᎯᎷᎷᎬᎠ
You forgot to use "this"
MᏫᎻᎯᎷᎷᎬᎠ
this->name = name
MᏫᎻᎯᎷᎷᎬᎠ
Note: Don't write anything after return statement (unless it's in a conditional block) Cuz anything below return statement won't be reached
Anonymous
god doesnt exist
Actually defination of god is so generic that it doesn't make enough sense to understand what people mean by it.
Trevor
WTF
WTF
Isaac
You forgot to use "this"
Ok, thanks, do you mean that in a setters methods I have to use this ?
MᏫᎻᎯᎷᎷᎬᎠ
Ok, thanks, do you mean that in a setters methods I have to use this ?
Yeah You don't have to But in your case you have to
MᏫᎻᎯᎷᎷᎬᎠ
The parameter is name And the member variable is name
MᏫᎻᎯᎷᎷᎬᎠ
The parameter variable hides the member variable
MᏫᎻᎯᎷᎷᎬᎠ
If it was the same name
Isaac
ok, thank you very much
MᏫᎻᎯᎷᎷᎬᎠ
Your welcome
Dima
Lol
Dima
WTF
Indeed
Isaac
Note: Don't write anything after return statement (unless it's in a conditional block) Cuz anything below return statement won't be reached
In fact, I think that the right explanation is that I must use this in the constructor that take name like param.
Manoj
I need a logic for truncating a string without using a loop like ex:COLLEGE is a string the output must be: C CO COL COLL COLLE COLLEG COLLEGE
Anonymous
Thanks 🌹
Anonymous
Thanks 🌹 Rose
MᏫᎻᎯᎷᎷᎬᎠ
In fact, I think that the right explanation is that I must use this in the constructor that take name like param.
Wherever you want to use That is the only way to distinguish between two identifiers that has the has the same name in class
MᏫᎻᎯᎷᎷᎬᎠ
Anyone plz
I don't know
Luigi
Hello, i'm "new" in c++ programming, i'm studying it at school, and we only made basilar things, do some of you have some exercises to do? Because i wanna pratice and learn more about c++, thanks :D
BinaryByter
basilar
BinaryByter
Use ncurses
Luigi
Use ncurses
Is this to me? Right?
Michael
Why can't telegram be code friendly. Like with syntax highlighter
Luigi
hackerrank and project Euler if you want to so competitive programming
Well, can i do them also if i don't know much things about c++?
Luigi
I mean, i didn't do really much things
Lucía
what happened to my voice message
Lucía
oh great
Lucía
they disappear
Lucía
so i talked for nothing
Luigi
Oh, another thing, the best c++ programming software is? I tried CodeBlocks but i had some issues with the compiler