Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411579 Posts in 69386 Topics- by 58445 Members - Latest Member: Mansreign

May 05, 2024, 02:56:02 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Quick programming questions
Pages: 1 [2]
Print
Author Topic: Quick programming questions  (Read 3111 times)
BeskarKomrk
Guest
« 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