View unanswered posts | View active topics It is currently Thu Jul 20, 2017 10:39 pm






Reply to topic  [ 2 posts ] 
Compile error when statement contains comma 
Author Message
Rookie

Joined: Mon Dec 01, 2014 4:27 am
Posts: 5
Post Compile error when statement contains comma
1) If you are getting an error, please tell us what error you are getting and what he message says.
Code:
  int i=0, j=1;
  i= 0; j= 1; // good code
  i= 2, j=3; // bad code

When compiling, got the following error message:
Quote:
**Error**:Expected->';'. Found ','
**Error**:Unexpected ',' during parsing
**Error**:Expected->';'. Found ','
**Error**:Unexpected ',' during parsing
**Error**:Expected->';'. Found ','
**Error**:Unexpected ',' during parsing
**Error**:Unexpected '=' during parsing
**Error**:Unexpected '1' during parsing
**Error**:Missing ';' before ')'
**Error**:Unexpected ')' during parsing


2) Give us the version of ROBOTC you're using
4.55 (9110) (F/W 10.55)

3) Give us the platform type (NXT, VEX CORTEX, etc.)
VexIQ

4) Describe the issue as best as you can
Do you support standard ANSI C syntax?

5) Give us steps on how to reproduce the problem
Use code provided and compile

6) Provide a screenshot if it applies
N/A

7) Tell us the operating system you are using
Windows 10


Mon Nov 14, 2016 1:46 am
Profile
Expert
User avatar

Joined: Sun Aug 19, 2007 2:43 pm
Posts: 155
Location: New Jersey
Post Re: Compile error when statement contains comma
very fundamental syntax issue. I highly recommend you to learn basic C programming first. This is not a RobotC question, it is a bare fundamental plain programming syntax question.

_________________
==Elizabeth Mabrey


Thu May 25, 2017 3:00 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.