How can i write integers to the console screen using winapi?
i know how to use the WriteConsole or the WriteFile to write strings or chars to the console but i can't write integers. anyone know how to? do i have to convert the integer into a string(i don't know how by the way) or is there a way to just write it as an integer without converting? i can supply my source code if needed.
Yes, you have to convert the number to a string. If you Google/Bing "number to string c++" you'll find the solution. In C++ you normally use a stringstream object. In C I think you use itoa() or itow() (not standard C, though), or the char-type-agnostic _itot().