Hey, just got Dark GDK yesterday, and im already completely confused
Working on a little variable program right now. I got numbers down, so i moved onto strings. My program gets a user input, and then what i WANT it do is
if string = "fart" then print "how foul"
I know thats not DGK at all, but it gets my point accross
here is my source.
#include "DarkGDK.h"
//#include <string>
//using namespace std;
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
char* hello ;//= dbinput;
//void dbInput ( char* response, int iInput )
int greg ;
greg = 1 ;
while ( LoopGDK ( ) )
{
//hello = dbInput();
//dbPrint (hello) ;
dbPrint (hello=dbInput());
// dbText (0, 0, hello ) ;
//dbPrint (hello) ;
if (hello == "fart") {
dbPrint ("how foul") ;
dbEnd () ;
}
dbSync ( );
}
return;
}
When I go to compile it, it runs fine. But, even if the user input is fart, it doesnt say "how foul"
Thanks in advance