\Device\NUL
Windows 10 pro
What apps that did you try to running?
Saul
What apps that did you try to running?
My vs code crashed all of a sudden,then uninstalled it then downloaded another one,,,but now after installing it won't run any of my codes,,either in python or any other programming languages
Saul
It must corrupt maybe
Really??? Had been using it for over 6 months now
Saul
Give me the official website for vs code download
\Device\NUL
Give me the official website for vs code download
Did internert blocked in your country?
\Device\NUL
Check dm bro
You want me to report you?
Unreal - Maker
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Газировка
Hello friends, I'm writing a simple game "Tanks" in sfml. I encountered a problem with drawing the texture of a dead tank, it loads well, there are no errors, but instead of a texture it draws a white square. What could be the problem? Don't judge bad code harshly :) Here is part of the code https://pastebin.com/M4VccTt2
Manav
Hello friends, I'm writing a simple game "Tanks" in sfml. I encountered a problem with drawing the texture of a dead tank, it loads well, there are no errors, but instead of a texture it draws a white square. What could be the problem? Don't judge bad code harshly :) Here is part of the code https://pastebin.com/M4VccTt2
inside the if and elseif condition you create a texture on stack then you load it from file. then you set this as a new texture in destroy() for tank1 or tank2's texture depending on the condition but you never set the tank's texture and since texture goes out of scope it gets destroyed by sfml so you're left with a dangling pointer as sf::Texture stores a pointer to an internal texture data type. update setTexture() to void Tank::setTexture(const sf::Texture& newTexture) { // don't use tank as a name for it's texture. tank.update(newTexture); } It will copy the texture properly
Serkan
Hello dear friends I am guessing, we can use C or C++ for RF and audio DSP. Does anybody know good resource maybe from youtube or somewhere free ? I know it's not easy topic to start but I should start from a place atleast. Kind Regards. (Anyone can DM me for resource sharing)
Ankit Sharma
I was using Windows Os, I have been using Code blocks
Code
I'm now on arrays in C++
Code
Code
Haha I just saw it then...
Code
Sorry guys
Rose
Purge complete.
Reiner
hola ..alguien que hable español?
MHM
English only
Chat Boss
Code Demon sent a code, it has been re-uploaded as a file
Code
Code Demon sent a code, it has been re-uploaded as a file
after the input, I want it to print out either low or high but not showing anyway. Help please...
Chat Boss
Code Demon sent a huge message, it has been re-uploaded as a file if (level == 1) { std::cout << "Guess a number from (1-100)\n"; ..
klimi
after the input, I want it to print out either low or high but not showing anyway. Help please...
well you have a for loop there so you take 10 inputs, not just one k11m1@klimovo/tmp$ ./a.out Choose a level 1. Easy! 2. Medium! 3. Hard! 1 Guess a number from (1-100) 1 2 3 4 5 6 7 8 9 0 Too low!Guess a number from (1-100)
Code
ok
klimi
ok
you will need to change the code logic, I am guessing you want to give the player 10 attempts, then you should have logic for one turn and repeat that 10x
Code
I get it Either a void data would help
klimi
Outside the main function or?
In your code it is inside the main function, but making separate function for one turn would make the code more readable
klimi
I get it Either a void data would help
I do not understand this message
Code
I do not understand this message
I meant creating another function using void then call from the main function.
klimi
I meant creating another function using void then call from the main function.
well that depends what you want from it, how you design the program
klimi
but making it void doesn't seem good since from each turn you need some information, at least if the number was guessed correctly or not
Code
I need some thorough assistant
Mercy
Hello
Mercy
I need some help in my project in c++ I'll pay for it
Mercy
Let me share the requirements and what I had done
Mercy
Then if there's someone who can help me fix the issue I'll appreciate and pay
Mercy
make command run.. and we need Ubuntu or wsl to build the project
Mercy
I'll give you the initial code with cmake configuration.. and at the end the code should be build and pass all the test cases.. test cases are already written
Mercy
here is the initial code.. just set the working directory to exercise1 and then mkdir build and then cd build.. here you will make cmake .. command and then make command to make the project build after you will complete the task..
Mercy
I didn't implement anything it's just the structure
Mercy
And then inside that you'll run cmake .. command
Mercy
You have to make a build directory using mkdir command using command line tool
Mercy
You don't have to make any extra folders
Mercy
How are you testing the test cases without making the code build?
Mercy
First you'll build the code and then there will be folder inside build folder names as test
Mercy
Then you'll run this file as ./tester
Mercy
Just to add.. build folder will be inside exercise1 folder.. just to be clear.. thanks
Mercy
I told you that build folder should be inside exercise1 folder
Mercy
Only then cmake configuration will work
Mercy
Make build folder inside the exercise1 folder.. and then build the project.. thanks
Mercy
let me be clear again.. when you will build the code using command line.. 'cmake ..' then 'make' commands.. after the successfull build there will be a folder created inside build folder named as test.. and then inside that folder you can run the tests using './tester' command
Mercy
There were separate files for print visitor. evaluation context.. and AST.. each one have have seperate header files.. and thats why i gave you the starter project.. and in the delivey you are just giving me a single file
Mercy
You need to do the following.. Separate code for each of the following class. AST.cpp AST.hpp ASTVisitor.hpp EvaluationContext.cpp EvaluationContext.hpp PrintVisitor.cpp PrintVisitor.hpp No new class and you've to use the code structure of the project that I shared with you in the start.. and It was all communicated at the very start..
Mercy
That's all for the project assignment..I did as per .y tutor he rejected..my working file..is there anyone who can help me..I'll pay I have less than 2 hours to submit
Aмαиנєєт Patel
Can u help me where to start c++
mito
Can u help me where to start c++
https://t.me/cpp20programming/183
Doreece
Can anyone introduce a good source to learn RISC V and its inline assembly in c? Actually I prefer it to have "examples "
~
I need a study buddy, C programming, I am a beginner, need someone with whom I can study together online, make a progress and discussions. Maybe any one want to join me?
Rose
Purge complete.
manson
hello, could anybody help me understand the c++ code snipet? here is the code snipet:
manson
class A { private: int a; public: A(const A& mya): a{mya.a} {} }
manson
Above code, the member field a is private, but why can variable mya access private member variable a in copy constructor?
manson
A a1{1}; A a2 = a1; but object can't access private member field, right? I come from java, it's hard for me to understand that
manson
Because it's the same class
Could you please explain more specifically? Thanks
Danya🔥
Could you please explain more specifically? Thanks
You can access private fields inside the class
Danya🔥
What don't you understand?