Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 3
Changing to Visual Studio
I switched from CodeBlocks to Visual Studio today, but some things were weird. I tried to do something really simple; I made a class with a constructor, requiring a name. And then I told it to print the name of the object, but even though I had no errors, when I ran the code, the name didnāt get printed out. I put in a code from codeblocks, that I know is correct, because it works on codeblocks, that didnāt work either. So, long story short: does the code slightly change when you change IDE? Thanks for any help :)
2 Respostas
+ 2
The code will not change. Do you use multiple files? If so, maybe you donāt have them all in the same project?
0
I fixed it. I just made a silly mistake in the code... I canāt believe I didnāt see it until now... And the code I copied from codeblocks works on Visual Studio today, but it didnāt work yesterday for some reason...