User forums > Using Code::Blocks

New User Build and Run troubleshooting 20.03 on Windows 11

(1/1)

NewOrOld:
Hello everyone! I hope this is the correct spot to post this kind of issue. I am a beginner using the c++ Hello World project, and I am trying to use cin to get input when using build and run. However, when I try to repeat the exact same thing from a class. It doesn't work. I have an int and a cin >> for both parts of the code I want to get input from. I have no errors when starting a run, but I can not add input for the second part I want to input a value during the run. I am not confident in my skills yet, so I can't say exactly if I did something wrong on my part. I did copy the exact same code, so it seems unlikely. I was wondering if there was something I need to activate on my end on code:blocks, and I am using the GNU GCC compiler if that helps.

Miguel Gimenez:
Things happening while your program is running are OT here, you should ask in a programming forum. Show them the non-working code.

Navigation

[0] Message Index

Go to full version