c++ in our projects

View previous topic View next topic Go down

c++ in our projects

Post  bytecode on Fri Sep 25, 2009 11:19 am

Hi,

i heard about i can use c++ in sio2 projects,

I got some strange errors when i compile my class

error: stray '\342' in program
error: stray '\210' in program
error: stray '\274' in program
error: 'CFoo::CFoo()' cannot be overloaded
error: with 'CFoo::CFoo()'
etc....

My test class looks like this:
class CFoo {
public:
CFoo() {}
∼CFoo() {}
void something(void) {}
};

When i delete the destructor, everthing goings ok. But i need the constructor and destructor :/
So... question i can i use fully c++ code in projects or only C with Objective-C classes?

Greets,
Bytecode

bytecode

Posts : 4
Join date : 2009-08-20

View user profile

Back to top Go down

Re: c++ in our projects

Post  Faikus on Fri Sep 25, 2009 12:06 pm

That is not a real tilde (~) you have in your destructor.

Faikus

Posts : 23
Join date : 2009-05-26
Location : Berlin

View user profile

Back to top Go down

Re: c++ in our projects

Post  bytecode on Fri Sep 25, 2009 3:10 pm

So what kind of character shall i use?
I used table of chasracter to insert this char, becouse mac keybosrd dobt have it.

bytecode

Posts : 4
Join date : 2009-08-20

View user profile

Back to top Go down

Re: c++ in our projects

Post  Faikus on Sat Sep 26, 2009 1:22 am

Type Alt+n.

Faikus

Posts : 23
Join date : 2009-05-26
Location : Berlin

View user profile

Back to top Go down

Re: c++ in our projects

Post  bytecode on Sat Sep 26, 2009 10:21 am

i have "ń" ehn i typed alt+n, can u write this cahr here?

bytecode

Posts : 4
Join date : 2009-08-20

View user profile

Back to top Go down

Re: c++ in our projects

Post  Faikus on Sat Sep 26, 2009 10:30 am

It's ~. But copy&pasting this char every time is not something you want to do. You really should find out how to type it on your keyboard layout. From the Macnn forum:


Go to System Preferences>International>Input Menu and activate the Keyboard Viewer in the list of additional keyboards. Then click the flag menu in the right hand side of the menu bar to show the viewer. When you press alt (or option depending on what it is called on your keyboard) or alt-shift it will display what symbols will be input when you press that key combo.

Faikus

Posts : 23
Join date : 2009-05-26
Location : Berlin

View user profile

Back to top Go down

Re: c++ in our projects

Post  oioioi on Sat Sep 26, 2009 11:18 am

If you can't find the hot key you can download a program called spark(spark download) to make a hot key for it

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: c++ in our projects

Post  bytecode on Sat Sep 26, 2009 4:00 pm

thanks very much, problem solved

bytecode

Posts : 4
Join date : 2009-08-20

View user profile

Back to top Go down

Re: c++ in our projects

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum