Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1075912 Posts in 44152 Topics- by 36120 Members - Latest Member: Royalhandstudios

December 29, 2014, 02:34:53 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Quick programming questions
Pages: 1 [2]
Print
Author Topic: Quick programming questions  (Read 2207 times)
Stefan Schwartz
Level 1
*

BeskarKomrk, McNutty04 on XBL.

BeskarKomrk
View Profile Email
« Reply #20 on: July 09, 2009, 12:27:21 PM »

Here's my code:
Code:
if ((currchar == ' ' || currchar == '\n') && (prevchar != ' ' || prevchar != '\n'))
(prevchar != ' ' || prevchar != '\n') is always true -- you probably meant && instead of || there.

Yep, that was the problem. Thanks for the help.
Logged
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic