Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~304 People Reached
Favorite Forums
Favorite Tags
c++ x 10
Member Avatar for nated

Ok im passing in a string and i cant get it to convert to a char array. Ive tried this so far. [CODE]int MyString::find(const std::string& str) { char* newString = str; return 1; }[/CODE] Im pretty lost here.

Member Avatar for nated
-1
128
Member Avatar for nated

Ok im trying to compile and keep getting this error: 38 ISO C++ forbids declaration of `string' with no type. Not sure what im doing wrong. Here is my code: my header file: [CODE]#ifndef PLAYER_H #define PLAYER_H #include <iostream> using namespace std; class MyString { public: int find(const string& str); …

Member Avatar for nated
1
43
Member Avatar for nated

So im just trying to understand a simple program in C++ but i keep getting an error when trying to compile this code. The error is [Linker error] undefined reference to `Player::getHeight()' . So i have my main code in one file called Main.cpp: [CODE]#include "Player.h" int main() { Player …

Member Avatar for sfuo
0
133