[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test.cc:50: warning: comparison is always false due to limited range of
From: |
Docume |
Subject: |
test.cc:50: warning: comparison is always false due to limited range of data range? |
Date: |
Thu, 22 Aug 2002 17:46:22 +0200 (CEST) |
I have...
char c = getch ();
if (c == KEY_F(1))
{
char pulsa[]="Pulsa F1 para continuar...";
mvwprintw(win,(maxx+4),(maxx-strlen(pulsa))/2,"%s",pulsa);
}
when I try to compile I see this error...
test.cc:50: warning: comparison is always false due to limited range of data
range
I am using this headers, maybe here is the error:
#include <iostream>
#include <ncurses.h>
#include <string.h>
#include <stdlib.h> // exit()
What's wrong?
I am copy the code from ncurses howto.
- test.cc:50: warning: comparison is always false due to limited range of data range?,
Docume <=