Changing to Visual Studio | Sololearn: Learn to code for FREE!
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 :)

17th Jun 2019, 10:30 PM
Noah
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?
17th Jun 2019, 10:58 PM
Jackson Oā€™Donnell
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...
18th Jun 2019, 10:03 AM
Noah