| |

VerySource

 Forgot password?
 Register
Search
View: 736|Reply: 7

_TCHAR * print

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-28 15:20:01
| Show all posts |Read mode
int _tmain (int argc, _TCHAR * argv [])
{
UCHAR string [25];
         printf ("Usage:% s\n", argv [0]);
         return 0;
}

My console program is called Test

When I enter test in the command line under dos
It can only print one t
Question: How can the conversion display be correct?
Reply

Use magic Report

0

Threads

70

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-2-24 12:45:01
| Show all posts
Use wprintf
Reply

Use magic Report

0

Threads

22

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 Invalid IP Address

Post time: 2020-2-29 20:15:01
| Show all posts
_tprintf (...);
Use this, both MBCS and unicode can print it out
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-17 13:00:01
| Show all posts
What about your code ???
Reply

Use magic Report

0

Threads

22

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 Invalid IP Address

Post time: 2020-3-20 06:45:01
| Show all posts
printf ("Usage:% s\n", argv [0]);
change
_tprintf ("Usage:% s\n", argv [0]);
Reply

Use magic Report

0

Threads

70

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-3-28 16:00:01
| Show all posts
interesting

printf ("Usage:% s\n", argv [1]);
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-4-2 09:45:01
| Show all posts
printf ("Usage:% s\n", argv [1]);
??????

Command: test aaaaaa
Output: a
Reply

Use magic Report

0

Threads

70

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-4-2 20:30:01
| Show all posts
wprintf (L "Usage:% s\n", argv [1]);
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list