equivalent of c# @"" string literal?
-
In C# you can tell the compiler not to expand escape sequences in string literals by prefixing the string with an @ symbol:-
string test = @"C:\test.jpg";
Is there an equivalent notation to do the same in VC++ ? (2008) thanks Jon
using System.Beer;
-
In C# you can tell the compiler not to expand escape sequences in string literals by prefixing the string with an @ symbol:-
string test = @"C:\test.jpg";
Is there an equivalent notation to do the same in VC++ ? (2008) thanks Jon
using System.Beer;
-
In C# you can tell the compiler not to expand escape sequences in string literals by prefixing the string with an @ symbol:-
string test = @"C:\test.jpg";
Is there an equivalent notation to do the same in VC++ ? (2008) thanks Jon
using System.Beer;
You can do it the hard way. :)
char test[] = { 'C', ':', 92, 't', 'e', 's', 't', '.', 'j', 'p', 'g', 0 };
«_Superman_» I love work. It gives me something to do between weekends.
-
In C# you can tell the compiler not to expand escape sequences in string literals by prefixing the string with an @ symbol:-
string test = @"C:\test.jpg";
Is there an equivalent notation to do the same in VC++ ? (2008) thanks Jon
using System.Beer;
Nope (in fact the '
@
improvement' is the main reason to leaveC++
in favour ofC#
:rolleyes: ). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Nope (in fact the '
@
improvement' is the main reason to leaveC++
in favour ofC#
:rolleyes: ). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]The [i]main[/i] reason? I can think of several more...
using System.Beer;
-
The [i]main[/i] reason? I can think of several more...
using System.Beer;
Well, you're right: you may also safely miss the semicolon at the end of a class declaration... :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Nope (in fact the '
@
improvement' is the main reason to leaveC++
in favour ofC#
:rolleyes: ). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Blasphemy :mad:
Learn from the mistakes of others, you may not live long enough to make them all yourself.
In bad mood, today? :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]