but it's 22:44, and when it turns on 22:45 nothing happens, I've tried it with strings and I got nothing again, but when I try it with if(cas=cas) it works :-/ any suggestions?
Edit: this program should turn my PC off in time which I'll enter on startup, so don't ask me why I'm doing this, and yes I know there is command in system for shutdown...
/*
* Line 11
* is a pointer.
*/
char cs[80];
/*
* Line 17
* checks to see if the pointers are the same,
* i.e. if they are stored in the same place in memory.
* This can only happen if they are the same pointer, or references to the same pointer.
*/
if(cas == "22:45")
/*
* I believe there is a string equality test in the standard library;
* or, you could just cast to (or construct) a c++ string.
*/
if( String(cas) == "22:45" )