Anonymous
https://stackoverflow.com/questions/64081412/how-to-create-an-expression-parser-with-tree-using-struct
Anonymous
Please how will install my MinGW
Đỗ
I am trying to get started in programming. If I want to make a videogame that fits on a single floppy disk, would I want to program in C? I tried to duck (DuckDuckGo by the way) if I should use C or ASM, but majority of the time the question ends up being C, but because of the simplicity and performance, not because of how lightweight it is.
You should try other simple game such as tentris or minesweeper. I prefer C than ASM, and you can call the ASM code/routine inside C code without any difficult. Using C is more versatile than ASM, esspecially when handle keyboard and graphic. you can get the convenient by call C function rather apply the complex system interupt Beside, when the c compiled program is more larger than ASM prog
Anonymous
Is clrscr() function possible to write in a program without <conio.h> header file ? I'm coding on Linux emulator. this header file is showing unavailable or unable to use in the program.
Anonymous
/getcbook
Anonymous
/get cppbookguide
Anonymous
//C++ I have a query about that suppose there's a login system with two functions login and sign up. I want to show the program result only to the users who sign up in the program. How is it possible ?
kamaraj
make a user flag variable // set the flag to one when user sign up else zero // then show the result if flag is one
Anonymous
Guys can any tell me how to solve 2^32 short cut method manually?
!Ростик
!Ростик
I have a question: how make the program do 5 cycles and then stop ?
Stanislav
https://en.cppreference.com/w/cpp/language/break
Anonymous
/warn screen photo
Anonymous
Hi, did anyone know how to malloc a string ( char* ) in c 🤔
Twenty19TEight
Which IDE?
CyberRide
Gud morning to you all. Please am having problem while installing codeblock . Error gnu complier can be found I searched on Google I don't see anysolution
Twenty19TEight
Which IDE Is Best For C++ For Low End PC
Anonymous
Which IDE Is Best For C++ For Low End PC
You can use Vim editor or Notepad++ as Editors. Codeblocks is good for low end PC's. Also Ultra Edit is good 😶
CyberRide
PC*
CyberRide
No
Ok bro thanks
Twenty19TEight
My laptop is 4gb ram AMD A6 processor
Twenty19TEight
Which IDE is it?
klimi
Which IDE is it?
Looks like code blocks to me....
Anonymous
My laptop is 4gb ram AMD A6 processor
Oh.. I used Visual Studio 2015 in my pc 🤪 and it has 2GB Ram and dualcore processor
klimi
😞
Google not working for you?
Anonymous
Google not working for you?
Yep. I searched it. And I got an answer. But it's not working.I've got segmentation fault
Anonymous
Wait a minute
Anonymous
// value = malloc(sizeof(char) * strlen(value) + 1); value = malloc(strlen(value) + 1);
Anonymous
Pavel
where's your value variable initialized and why do you save the new pointer to the same variable?
Pavel
Basically what you do here, is you allocate a new memory for string, where size of this memory is of the size of the string that your value was pointing to. But if that memory of the previous string is uninitialized (or no memory allocated at all), then it's not gonna work And if value is the only variable that was pointing to that string, then you get a memory leak here
Aaron Nevalinz
Anmol
on line 20, why its giving me error
Harsh
on line 20, why its giving me error
Why are you calling constructor of obj1 explicitly?
Harsh
Remove line 19
Harsh
And use Obj obj1;
Anmol
Why are you calling constructor of obj1 explicitly?
i know m calling it explicitly ... my question was why its giving error .. not how to solve it
Harsh
i know m calling it explicitly ... my question was why its giving error .. not how to solve it
obj1() is giving error because no such thing exists. If u want to call it explicitly, u need something like Obj obj1; obj1.Obj();
Harsh
Constructor may not be accessible without any objects as it's inside a class
Anmol
hmm that make sense
Anmol
i have one more question
Anmol
i have one more question
if line 19 is wrong then why its showing error on line 20
Harsh
if line 19 is wrong then why its showing error on line 20
Line 19 is not actually wrong in C++. It takes it as a function who's return type is Obj (Prototype basically)
Harsh
Line 20 gives error because obj1 object is never created
Harsh
;)
Anmol
my professor taught me this method... now m thinking he should give up on his job
Anmol
Mistakes happen
thats so true
Anmol
anyway thanks man
Harsh
anyway thanks man
Your welcome
Harsh
How? I said the same thing.
Harsh
He's creating a function and assigning pointer to function
Anonymous
How? I said the same thing.
You said the constructor can be called explicitly like obj1.Obj(). I said that is wrong. Try it.
أستغفر الله❤
Hey guys if I complete the basics of c++ what should I do next
Roxifλsz 🇱🇹
Why not just google something like "databases in C for begginers" or "SQL database beginner tutorial"
V01D
system("clear"), really?
Vlad
system("clear"), really?
#ifdef _WIN32 system("cls"); #else system("clear") #endif
Vlad
:P
Nils
Use escape chars
Vlad
Still bad lol
afaik you can't clear the console using only stdlib to work on all platforms