Sorry bout that, I just wanted to show a safer alternative to atoi. thanks for the advice.
Type: Posts; User: cowell_theodore
Sorry bout that, I just wanted to show a safer alternative to atoi. thanks for the advice.
here is how I would do it, but you probably are not programming on windows.
#define UNICODE
#define _UNICODE
#pragma comment(lib,"Shlwapi.lib") //for StrToInt
#include <tchar.h>
#include...
okay...
int i;
i = 10;
printint(i);
/* goes a little something like this...No need to show you how to balance stack.
start:
mov i,10
push i
Also if it were me I would have a separate thread do this so you don't freeze the program for 3 seconds. But I don't know hardly nothing about programming in dot net, Primarily because I'm already...
If you weren't doing in in dot net I could show you.
but maybe... Just a delay for three seconds under c++ I would right...
#include <tchar.h>
#include <Windows.h>
class CMyTimer
{
...
I noticed that you were using string, which is part of STL. If you have to use STL, here is something to consider...
basic_string<char> str2;
basic_string<char> ::iterator itr;
then we can...