• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Need to print some ascii art ina window with dev, how to?

Joined
May 19, 2007
Messages
7,662 (1.24/day)
Location
c:\programs\kitteh.exe
Processor C2Q6600 @ 1.6 GHz
Motherboard Anus PQ5
Cooling ACFPro
Memory GEiL2 x 1 GB PC2 6400
Video Card(s) MSi 4830 (RIP)
Storage Seagate Barracuda 7200.10 320 GB Perpendicular Recording
Display(s) Dell 17'
Case El Cheepo
Audio Device(s) 7.1 Onboard
Power Supply Corsair TX750
Software MCE2K5
Code:
 _______           _______  _______  _______ 
(  ____ )|\     /|(  ____ )(  ____ \(  ____ \
| (    )|| )   ( || (    )|| (    \/| (    \/
| (____)|| |   | || (____)|| (_____ | (__    
|  _____)| |   | ||     __)(_____  )|  __)   
| (      | |   | || (\ (         ) || (      
| )      | (___) || ) \ \__/\____) || (____/\
|/       (_______)|/   \__/\_______)(_______/
                                             
 _______  _______  _______  _______  _______  _______  _______ 
(  ____ )(  ____ )(  ___  )(  ____ \(  ____ )(  ___  )(       )
| (    )|| (    )|| (   ) || (    \/| (    )|| (   ) || () () |
| (____)|| (____)|| |   | || |      | (____)|| (___) || || || |
|  _____)|     __)| |   | || | ____ |     __)|  ___  || |(_)| |
| (      | (\ (   | |   | || | \_  )| (\ (   | (   ) || |   | |
| )      | ) \ \__| (___) || (___) || ) \ \__| )   ( || )   ( |
|/       |/   \__/(_______)(_______)|/   \__/|/     \||/     \|

want to print that but apparently underscore is somethign reserved so i cant use cout ... what to do?
 
Joined
May 19, 2007
Messages
7,662 (1.24/day)
Location
c:\programs\kitteh.exe
Processor C2Q6600 @ 1.6 GHz
Motherboard Anus PQ5
Cooling ACFPro
Memory GEiL2 x 1 GB PC2 6400
Video Card(s) MSi 4830 (RIP)
Storage Seagate Barracuda 7200.10 320 GB Perpendicular Recording
Display(s) Dell 17'
Case El Cheepo
Audio Device(s) 7.1 Onboard
Power Supply Corsair TX750
Software MCE2K5
i wish i could give you a kiss dan!
 
Joined
Jan 15, 2009
Messages
440 (0.08/day)
Location
Australia
System Name Krogoth
Processor AMD Ryzen 5 5600G @stock
Motherboard Gigabyte B550 AORUS ELITE AX V2
Cooling Stock CPU cooler + 2x Intake 120mm @ 8v + 2x outtake 120mm @8v
Memory G.Skill Ripjaws V 32GB (2x16GB) PC4-28800 DDR4
Video Card(s) MSI Radeon R9 290 Gaming 4GB GDDR5
Storage 1x 4tb WD HDD, 1x1Tb Intel m.2 SSD
Display(s) 2x 27" IPS on swing arms. @UHD
Case Antec Solo II
Audio Device(s) HyoperX Cloud 2 Wireless Headphones
Power Supply I forgot.
Mouse Logitech G302
Keyboard Lenovo legion K500 RGB
Software Windows 11 64bit
be carefull of reserved characters... every programming language has them. (as far as i know) all programming languages use backslashes to escape them.
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.63/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
C# supports adding a @ symble before the string to ignore escaped characters. For example, these two statements have the exact same result:
Code:
Console.WriteLine("C:\\WINDOWS\\system32\\notepad.exe");
Console.WriteLine(@"C:\WINDOWS\system32\notepad.exe");
Both point to notepad at C:\WINDOWS\system32\notepad.exe

A lot of languages have shortcuts like that.
 
Top