Question:
why does visual studio c++ doesnt display changes in the code?
baller
2012-11-10 22:35:38 UTC
i'm doing a c++ project using microsoft visual studio c++, everything is going fine so far, but when i started to fine tune my code, i realised that the changes i made doesnt show in the output window. it keeps displaying the previous output. i'm getting frustrated now because everything was going so good :(
can i get some help on how to resolve this issue?
Three answers:
Nate
2012-11-10 22:45:08 UTC
Make sure and compile the program after you make changes. If it still doesn't work, try doing "Rebuild All" (this will compile the entire program, even parts it thinks don't need compiling).



If it STILL doesn't work, then you'll need to specify what "output window" you're talking about, and maybe give a few more specifics about what your program is trying to do, and what isn't working.



EDIT:

Well that's very strange. Are you sure it is compiling without errors? If not, then it didn't compile, and you'll still be running the old version of the executable.



How are you running the program after you compile it? Are you doing F5 from within Visual Studio, or are you running the exe separately from outside VS? Try it both ways. If it won't work, check the "modified" date of the exe file outside VS, and see if it's actually getting changed when you recompile the program.



If you STILL can't get it to work, put some more "debugging output" in your programe. Like, put cout << "test1" right before you call user(), and cout << "test2" right after, and see if the "test 1" and "test 2" show in your output. If you do see them, then the problem is something else.



Could it be that it doesn't like the fact that you have a function called "user()" as well as a "Users" class also called "user"? It wouldn't hurt to rename one of those to something else, for instance rename "void user()" to "void PromptUser()"
catledge
2016-10-24 11:30:06 UTC
First you want to set the TextMode property on your textbox to MultiLine, then once you positioned the textual content property of your textual content field positioned a newline n between each and each and every line of textual content like this: Textbox1.textual content="welcome smith!n at the second one you've french classn Your timings are 3 to 6."; also note that because you at the on the spot are not sending static HTML files, it truly is a dynamic website.
Anas Imtiaz
2012-11-11 05:37:21 UTC
You need to re-build the program after you make changes.



Press ctrl + S to save your code

Press F7 to build your code

Press F5 to run the command prompt. (to see output).



Remember this sequence. Although F5 does all three in one go, it's still advisable to do them separately as well.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...