View Single Post
  #2  
Old 24-04-2008, 06:15 PM
!!Ahmad Mushtaq!!'s Avatar
!!Ahmad Mushtaq!! !!Ahmad Mushtaq!! is offline
Warning!: Computer Maniac


 
Join Date: Oct 2007
Location: In Umer Hall. Permanent Address : Zahir Pir, RYK, Punjab.
Age: 34
Posts: 237
Contact Number: Sorry. You can contact me through email... Thanks!
Program / Discipline: BSIT
Class Roll Number: 07-45
!!Ahmad Mushtaq!! has a spectacular aura about!!Ahmad Mushtaq!! has a spectacular aura about!!Ahmad Mushtaq!! has a spectacular aura about
User Introduction Re: Syntax Error may occur in Wasif's program!

Assalam-o-Alaikum!

Hi guys! As usual : I copied Wasif's code and pasted it in my Visual C++.

It gave the following error:
PROBLEM:
Quote:
C:\Program Files\Microsoft Visual Studio\MyProjects\Nested Loop\Wasif's program.cpp(16) : error C2059: syntax error : '<'
SOLUTION:
Please remove the space between the two adjacent '<' after <<tableof*counter on the following line:

cout<<tableof<<"x"<<counter<<"="<<tableof*counter< <endl;

REASON:
When I tried to edit Wasif post, I found no blank space there. May be the problem is because of the way this forum formats the text. Well! There is no need to worry!
Reply With Quote