K
K
Kryptonit2020-05-14 18:35:02
C++ / C#
Kryptonit, 2020-05-14 18:35:02

Unable to output characters to c++ console. ?

Such a problem:
I'm trying to print the line
printf("%c", 26); cout << ":Right" << endl;
Instead of this entry, it should display
-> : To the right
, a question mark in a box is displayed instead
I work in VS 2019

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2020-05-15
@maaGames

For starters, don't mix C and C++ (printf and cout) in one program.

J
jcmvbkbc, 2020-05-14
@jcmvbkbc

printf("%c", 26);
This entry should be replaced with
->

Who said?
ASCII code 26 does not have an unambiguous graphical representation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question