Jump to content

Build Theme!
  •  
  • Infected?

WE'RE SURE THAT YOU'LL LOVE US!

Hey there! :wub: Looks like you're enjoying the discussion, but you're not signed up for an account. When you create an account, we remember exactly what you've read, so you always come right back where you left off. You also get notifications, here and via email, whenever new posts are made. You can like posts to share the love. :D Join 91913 other members! Anybody can ask, anybody can answer. Consistently helpful members may be invited to become staff. Here's how it works. Virus cleanup? Start here -> Malware Removal Forum.

Try What the Tech -- It's free!


Photo

C++ - How to change cmd window title


  • Please log in to reply
1 reply to this topic

#1 bizarrebob

bizarrebob

    Silver Member

  • Authentic Member
  • PipPipPip
  • 395 posts
  • Interests:Computers. Video games.

Posted 24 February 2009 - 12:58 PM

Hi all, I'm a newbie to C++ but i've decided that my knowledge of Windows is good enough now to progress onto a new level, that being C++. I have written some really simple batch files with help from internet topics etc but i think with C++, i could grasp it with enough time & effort. I tried the Hello World introduction and that's all good, and i did have a piece of code to change the TITLE window when the cmd window pops up. I've lost it and am basically asking if anyone knows what that may be? Just for info, i've been using Bloodshed Dev-C++ v4.9.9.2 thanks, Bob

::: My Spec :::

Windows 7
Intel Core Duo @ 2.8ghz
4gb OCZ RAM @ 1066mhz
ATI 4870 512mb



The help you receive here is free. If you wish to show your appreciation, then you may donate to help keep us online

    Advertisements

Register to Remove


#2 jpshortstuff

jpshortstuff

    Teacher Emeritus

  • Authentic Member
  • PipPipPipPipPipPip
  • 5,710 posts

Posted 25 February 2009 - 05:10 AM

I'm not sure about a platform independent way of doing this, but if you are working solely on Windows then:
system("TITLE MyTitleText");
Should do the trick.

Hope that helps.

Proud Graduate of the TC/WTT Classroom

At weekends (GMT) I may not be able to reply promptly due to various commitments. Please be patient and I will respond as soon as I can.

My help is free, however, if you wish to make a small donation to show appreciation and to help me continue the fight against Malware, then click here Posted Image

Need help remembering those important computer maintenance tasks? Let SCars do it for you.

Posted Image

Related Topics



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users