Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #72.7K
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for dylank

Hey DaniWeb, I'm having a tough time with this piece of code: [CODE]string encrypt(string e) { for( int i=0; e[i] != '\0'; ++i ){ ++e[i]; if(e[i] == "{") { e[i] = "0"; } if(e[i] == ":") { e[i] = "a" } return e; }[/CODE] It should "encrypt" the string, using …

Member Avatar for dylank
0
226
Member Avatar for eDeloa

I get the following errors on the line with "static const string ...": [CODE] error C2059: syntax error : '{' error C2334: unexpected token(s) preceding '{'; skipping apparent function body[/CODE] when trying to compile something like this: [CODE] #ifndef TEST_H #define TEST_H #include <string> using namespace std; class Test { …

Member Avatar for kvprajapati
0
2K