No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello again DaniWeb! I'm designing a dynamic website in PHP, and it's structured so that each page creates the necessary objects (based on what content is being viewed) which get the right information to display. Smarty then organizes this content and makes it look good. The problem is, I have … |
|
Hello DaniWeb, So I have a function: [CODE] time_t current_time = time( NULL ); while ( 1 ) if ( time( NULL ) == current_time + 3600 ) // execute body every hour { // stuff current_time = time( NULL ); } [/CODE] This is the only way I could … |
|
Hey guys! I was writing a program that had an infinite loop, [ICODE]while (1)[/ICODE], and within that loop was an if statement checking to see if a certain amount of time had passed. If it did, it would print out something, if it didn't, it would print out a [B]'.'[/B]. … |
|
I'm new to C++, and I have a function, [inlinecode]char* parse( char* buf, char* find_this )[/inlinecode] which finds an instance of [inlinecode]find_this[/inlinecode] inside of [inlinecode]buf[/inlinecode]. Once it finds that, it looks ahead in the [inlinecode]buf[/inlinecode] text, (which is actually JSON formatted) finds the value in the text, and it returns … |
|
Hello DaniWeb! I've created a function that parses a long string of text (JSON format, but that's not really important) for the specified JSON key/variable name, and it returns the JSON value as pointer to a char array. For example, [CODE=C++] //the function looks like: char* extract_key( char* buf, char* … |