Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: I know it's not related to sfml but...  (Read 2233 times)

0 Members and 1 Guest are viewing this topic.

SpaceInJourney

  • Newbie
  • *
  • Posts: 14
  • Just some random guy, that likes memes.
    • View Profile
    • Email
I know it's not related to sfml but...
« on: September 16, 2016, 06:43:34 pm »
Im learning C++ and OOP, and I have a problem
here is the code:
#include <iostream>
#include <string>
int main()
{
string nickname;
}
The all problem is string.
It does not work for me.
Btw, im using visual studio 2015 community.

SpaceInJourney

  • Newbie
  • *
  • Posts: 14
  • Just some random guy, that likes memes.
    • View Profile
    • Email
Re: I know it's not related to sfml but...
« Reply #1 on: September 16, 2016, 07:27:57 pm »
Please help, I can't continue learning because of this issue.

shadowmouse

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
Re: I know it's not related to sfml but...
« Reply #2 on: September 16, 2016, 07:40:05 pm »
String is part of the std namespace, so it should be std::string nickname.

SpaceInJourney

  • Newbie
  • *
  • Posts: 14
  • Just some random guy, that likes memes.
    • View Profile
    • Email
Re: I know it's not related to sfml but...
« Reply #3 on: September 16, 2016, 07:42:10 pm »
String is part of the std namespace, so it should be std::string nickname.
THANK YOU!