• Advertisement
Sign in to follow this  

WIN32 console problem

This topic is 4721 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

how the hell do you print to a win32 console project screen i know the System::Console::Writeline("") is how you do it for a normal console but that does not work, sorry if this is a dumb question.

Share this post


Link to post
Share on other sites
Advertisement
If you are using native C for the application:

#include <stdio.h>

printf("print your string here, even do ints and floats like %i and %f", intVar, floatVar);

If you are using native C++ for the application:

#include <iostream>
using namespace std;

cout << "This is the string, its like this: " << intVar << " and floats like this " << floatVar << "!" << endl;


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement