the shell of your program should look like:
CODE
#include <iostream>
using namespace std;
int main()
{
return 0;
}
Console.Write("*") becomes
cout << '*';Console.WriteLine() becomes
cout <<endl;For row = 1 To 10 becomes
for (row=1; row<=10; ++row)some notes about syntax:
#1 when you write VB you really should get used to Option Explicit... that is you should declare all of your variables. One reason for this is that C/C++ requires you to declare a variable before you can use it.
#2 the syntax for a for-loop in C/C++ is:
int counter; //declare your variables before you use themfor (initialize ; condition ; step) {iteration code}initialize: Here is where you initalize your loop.
condition: As long as the condition is true, the loop will continue... so (counter < 10) will continue until counter >10 (at the end of an interation).
step: this ussualy looks like "counter++" or "++counter" (they work the same, the rumer is that the preincrement is faster) but it CAN be any thing that you want. This code will be executed when the iteration step finnishes.
iteration code: The inside of your loop.
example:
CODE
int i;
for (i=0; i<10; ++i) {cout << i+1; } //counts from 1 to 10...
So the loops are a little different.