string variables are not working in my game?
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Urgh... sockets are already implicitly threaded by the OS. Non blocking sockets do everything that threading would do, without having to muck around with synchronisation.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
String does not name a type when I use the function in a included file.
main.cpp
Random.cpp
thanks in advance.
main.cpp
Code: Select all
#include <iostream>
using namespace std;
#include "Random.cpp"
int main(){
cout<<q.health;
system("PAUSE");
}
Code: Select all
class player{
public:
float health;
string random;
};
player q;
int b(){
q.health++;
}
int a;
Can i suggest one thing?
You can create a overload method to :
To accept stringc, because today i have to do:
Im saying it because the method:
accept stringc
So i think that this method that we have to pass a string parameter can accept stringc
Its only my suggestion
You can create a overload method to :
Code: Select all
smgr->getMesh
Code: Select all
smgr->getMesh(model.c_str())
Code: Select all
driver->getTexture
So i think that this method that we have to pass a string parameter can accept stringc
Its only my suggestion