Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C with Visual Studio 2010 Pin
Richard MacCutchan28-Jul-10 6:28
mveRichard MacCutchan28-Jul-10 6:28 
AnswerRe: C with Visual Studio 2010 Pin
rp_suman28-Jul-10 6:19
rp_suman28-Jul-10 6:19 
GeneralRe: C with Visual Studio 2010 Pin
nhqlbaislwfiikqraqnm28-Jul-10 6:26
nhqlbaislwfiikqraqnm28-Jul-10 6:26 
GeneralRe: C with Visual Studio 2010 Pin
N a v a n e e t h28-Jul-10 6:38
N a v a n e e t h28-Jul-10 6:38 
GeneralMessage Closed Pin
28-Jul-10 6:50
nhqlbaislwfiikqraqnm28-Jul-10 6:50 
GeneralRe: C with Visual Studio 2010 Pin
rp_suman28-Jul-10 6:56
rp_suman28-Jul-10 6:56 
GeneralRe: C with Visual Studio 2010 Pin
Cedric Moonen28-Jul-10 8:10
Cedric Moonen28-Jul-10 8:10 
GeneralRe: C with Visual Studio 2010 Pin
rp_suman28-Jul-10 6:45
rp_suman28-Jul-10 6:45 
New Project -> Visual C++ -> Empty Project
In Solution Explorer window, right click & select "Source Files" -> "Add" -> "New Item"
On left side of the "Add new item" dialog, select "Code"
In the file name field type "YourFileName.c" and click "Add"

Write some code in the file like below and press "Ctrl + F5", you can see the output:
<br />
#include "stdio.h"<br />
<br />
int main()<br />
{<br />
	int nNum = 10;<br />
	char cChar = 'a';<br />
	printf("%d", nNum);<br />
	printf("\n");<br />
	printf("%c", cChar);<br />
	printf("\n");<br />
<br />
	return 0;<br />
}<br />


Regards
--
"Programming is an art that fights back!"

QuestionGetWindow() Pin
Caslen28-Jul-10 4:25
Caslen28-Jul-10 4:25 
AnswerRe: GetWindow() Pin
Maximilien28-Jul-10 4:48
Maximilien28-Jul-10 4:48 
GeneralRe: GetWindow() Pin
Caslen28-Jul-10 5:27
Caslen28-Jul-10 5:27 
Questionswitch by type_id (using RTTI) Pin
sashoalm28-Jul-10 1:41
sashoalm28-Jul-10 1:41 
AnswerRe: switch by type_id (using RTTI) Pin
Cool_Dev28-Jul-10 2:13
Cool_Dev28-Jul-10 2:13 
AnswerRe: switch by type_id (using RTTI) PinPopular
Cedric Moonen28-Jul-10 2:15
Cedric Moonen28-Jul-10 2:15 
GeneralRe: switch by type_id (using RTTI) Pin
sashoalm28-Jul-10 2:40
sashoalm28-Jul-10 2:40 
GeneralRe: switch by type_id (using RTTI) Pin
Cedric Moonen28-Jul-10 3:00
Cedric Moonen28-Jul-10 3:00 
AnswerRe: switch by type_id (using RTTI) Pin
Aescleal28-Jul-10 4:30
Aescleal28-Jul-10 4:30 
GeneralRe: switch by type_id (using RTTI) Pin
Cedric Moonen28-Jul-10 8:54
Cedric Moonen28-Jul-10 8:54 
QuestionEnter button not working on CBitmapButton. Pin
Le@rner28-Jul-10 1:34
Le@rner28-Jul-10 1:34 
AnswerRe: Enter button not working on CBitmapButton. Pin
ARopo28-Jul-10 2:20
ARopo28-Jul-10 2:20 
GeneralRe: Enter button not working on CBitmapButton. Pin
Le@rner28-Jul-10 2:30
Le@rner28-Jul-10 2:30 
QuestionAdding combo box to list control Pin
Sakhalean28-Jul-10 1:16
Sakhalean28-Jul-10 1:16 
AnswerRe: Adding combo box to list control Pin
Cool_Dev28-Jul-10 1:22
Cool_Dev28-Jul-10 1:22 
AnswerRe: Adding combo box to list control Pin
David Crow28-Jul-10 3:09
David Crow28-Jul-10 3:09 
AnswerRe: Adding combo box to list control Pin
Rolf Kristensen29-Jul-10 2:29
Rolf Kristensen29-Jul-10 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.