Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,576 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,884 people online right now. Registration is fast and FREE... Join Now!




How do we Write special caracters in C++

 
Reply to this topicStart new topic

How do we Write special caracters in C++, Special caraters as: {'é' , 'à' , 'î',...}

Christotobbos
27 Sep, 2008 - 01:22 AM
Post #1

New D.I.C Head
*

Joined: 27 Sep, 2008
Posts: 2

CODE

#include<iostream>
using namespace std;

int main()
{
      cout<<"zéro"<<endl;
// I just want that the ' é ' caracter be written as an ' é ' and not as an ' e '
      return 0;
}

User is offlineProfile CardPM
+Quote Post

gabehabe
RE: How Do We Write Special Caracters In C++
27 Sep, 2008 - 02:26 AM
Post #2

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,539



Thanked: 98 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
Try this:
cout << "z\x82ro";

I'm trying to find a reference table, but can't~

Just replace \x82 with different numbers, like \x83 etc~
User is offlineProfile CardPM
+Quote Post

barnwillyb
RE: How Do We Write Special Caracters In C++
27 Sep, 2008 - 08:40 AM
Post #3

D.I.C Head
**

Joined: 22 May, 2007
Posts: 55


My Contributions
QUOTE(Christotobbos @ 27 Sep, 2008 - 02:22 AM) *

CODE

#include<iostream>
using namespace std;

int main()
{
      cout<<"zéro"<<endl;
// I just want that the ' é ' caracter be written as an ' é ' and not as an ' e '
      return 0;
}



Try holding down the option( or start key) and hit the letter e. Then let go of the option key and hit the e key again. example: é.

Hope that works for you.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 12:09AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month