Results 1 to 9 of 9
Thread: Malformed expression: "(ERROR)"<
- 07-12-2011, 03:43 PM #1
- 07-12-2011, 04:16 PM #2
Could you show the line of code that produces the error message. What you have posted has a comment in the middle of it.
Also please post the full text of the error message.
What data type is m_pTeam? Does it have a member: m_iRunsMadeByFTeam
- 07-13-2011, 06:05 AM #3
this one is line which shows error message-
if (m_pScorePanel.m_pTeam[0].m_iRunsMadeByFTeam <= 10/*m_Team[1].m_iRunsMadeByFTeam*/ ) {
//.........
}
and these two line contain info of two team-
m_pTeam = new CTeam[2];
m_pTeam[0] = new CTeam(sTeam1, sPlayers1, 11);
m_pTeam[1] = new CTeam(sTeam2, sPlayers2, 11);
Actually i compare two variable(which contain score for both team ) of team one and team two
and m_iRunsMadeByFTeam contain Score.which will decide who won the match.
- 07-13-2011, 06:17 AM #4
You post makes no sense. As Norm mentioned your if statement has a comment in the middle of it which makes it hard to read. If it has no business being there then delete it.
Do you get a compile time or run time error? Copy and paste the FULL and EXACT error message which contains vital information. Do not post what you think the error message is.
- 07-13-2011, 06:33 AM #5
forget comment this is not necessary.but if u want than i write this line in proper way:-
if (m_pScorePanel.m_pTeam[0].m_iRunsMadeByFTeam <= m_Team[1].m_iRunsMadeByFTeam ) {
//.........
}
and m_iRunsMadeByFTeam are same variable for both team.
- 07-13-2011, 06:36 AM #6
What about the error message? That is way more important than removing a bit of unnecessary code.
- 07-13-2011, 06:41 AM #7
Ok but have u knowledge about this problem?
- 07-13-2011, 06:51 AM #8
FFS!
AS SOON AS YOU POST THE FULL AND EXACT FRIGGIN ERROR MESSAGE I MIGHT KNOW MORE!
Until then all I can suggest is you remove the wrong code and replace it with the correct code.
- 07-13-2011, 10:10 AM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
"illegal start of expression" killing me help please.
By Taszk in forum New To JavaReplies: 4Last Post: 05-27-2011, 08:21 AM -
Error: "Illegal start of expression"
By mokitooo_1994 in forum New To JavaReplies: 5Last Post: 05-12-2011, 09:42 PM -
"illegal start of expression"
By 3RDofApril in forum AWT / SwingReplies: 2Last Post: 11-04-2010, 01:39 AM -
Runtime error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
By shantimudigonda in forum New To JavaReplies: 1Last Post: 11-20-2009, 07:58 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks