Category : ascii

I’m creating a program that reads in a text file. Each seperate line in the file represents a new string within the program; each string would be saved to the same vector. Specifically, I would save the first character of every new line to a std::vector<char*>. My goal was to: (-) read the full text ..

Read more

My desired output looks about like this: ** ** ** ** ** **** **** **** **** **** ****** ****** ****** ****** ****** ******** ******** ******** ******** ******** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ******** ******** ******** ******** ******** ****** ****** ****** ****** ****** **** **** **** **** **** ** ** ** ..

Read more

😊 Today I was learning c++ that I found out with this code : #include <iostream> using namespace std; int main() { int num; cin >> num; cout << char(num); return 0; } We can convert numbers to characters and I learned that we have ASCII standard 👇🏻👇🏻 http://www.asciitable.com/ And then my question is WHY ..

Read more

How can I run this C++ code on macOS (is a simple ascii car racing game), without windows.h? Is there any "substitute"? I know that windows.h will only run on Windows operating systems, but I’m looking for a way to make this code work on macOS too. Are there libraries? Or, are there any possibilities ..

Read more