Back to Non-Emulation Help

help using C++

skynthOP
#1
well I've learnt lots of new commands and programming, but I want to know a specific something.if you want a program to loop, that's my 4rth program but i want it to loop, how do i do so?#include <iostream>
using namespace std;int main()
{
int length;
int width; cout << "Enter the length ";
cin >> length; cout << "Enter the width ";
cin >> width; cout << "the area is: ";
cout << length * width << "\n"; return 0;
}2nd i want change the design instead of having the cmd window...like make it look cool..I wanna set a website with things like that, you know i wanna have a try... It'll be awesome, and probably in a few weeks ill have c++ beginners all down and ill 1 utility that has everything to do with math, and such.and other cool programs such as umm i dunno, when i know the possibilites then ill have billions of ideas :P.
Loonylion
#2
to make your own interface you have to start with a win32 application project rather than a win32 command application project. Win32 application projects are a lot more involved than the console variants.Loops are done as follows:int main()
{
int i;
for (i=0;i=1-;i++;)
{
cout << i << "\n";} return 0;
}or:int main()
{
int i=0;
while (i<11)
{
cout << i << "\n";
i++;
} return 0;
}
Showing posts 1–2 of 2 · This discussion is archivedBack to top