Lots of errors on SQLite..
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It's correct and it is used to avoid calling strlen twice.
but when i did the same way the output(in c++) was like this
PHP код:
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
void main()
{
clrscr();
char i[90];
gest(i);
if(
5<=strlen(i)<=20)
cout<<"5-20";
else
cout<<'Not";
getch();

consider i input hi
it will print
5-20
even if the right answer is Not
??
Reply


Messages In This Thread
[SOLVED] Lots of errors on SQLite.. - by ChristolisTV - 19.06.2016, 09:13
Re: Lots of errors on SQLite.. - by K0P - 19.06.2016, 09:20
Re: Lots of errors on SQLite.. - by ChristolisTV - 19.06.2016, 09:24
Re: Lots of errors on SQLite.. - by SyS - 19.06.2016, 09:32
Re: Lots of errors on SQLite.. - by Konstantinos - 19.06.2016, 13:13
Re: Lots of errors on SQLite.. - by ChristolisTV - 19.06.2016, 16:04
Re: Lots of errors on SQLite.. - by SyS - 22.06.2016, 02:40

Forum Jump:


Users browsing this thread: 1 Guest(s)