use of c language in viusal studiio

September 19, 2010 at 17:38:43
Specs: Windows XP

I have to work on c language suing visual studio. Any one can guide me in thsi regard.

Thanks


See More: use of c language in viusal studiio

Report •


#1
September 20, 2010 at 06:10:57
Which version?

In the older versions such as 6, you could create an empty project, add a c/c++ source file, and then save that with a .c extension. Dunno about the newer versions though.

-------------------------------------------
I have no aspiration for preaching. ;-)


Report •

#2
September 20, 2010 at 06:15:36
can you tell me about C++ using visual studio 2008

#include "stdafx.h"
#include <iostream>
#include <conio.h>


int _tmain(int argc, _TCHAR* argv[])
{
//declaring variables
int sum, number,upperlimit;

//initaization of variables
number=1;
sum=0;
//cout<<"enter a limit from which you want sum";
printf("enter a limit from which you want sum");
get_s(upperlimit);

//cin>>upperlimit;

while(number<=upperlimit)
{
if((number%2)==0)
{
sum=sum+number;
}
number=numer+1;


}

printf("the sum of even number"<<upperlimit<<"integers starting rom 1"),sum;
}

i maked this program but its not running in VS 2008. kindly guide me in this regard


Report •

Related Solutions


Ask Question