Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string u DarkGDK
Author Message
dexdix Offline
Novi korisnik
*

Posts: 31
Joined: Apr 2010
Reputation: 0
Post: #1
string u DarkGDK
Zanima me kako deklarirati string u DarkGDK-u.
pokusao sam string a="text"; i slično ali neče.[/php]
03-05-2010 02:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
schmrz Offline
____
*

Posts: 569
Joined: Feb 2007
Post: #2
RE: string u DarkGDK
Koliko vidim C++ je u pitanju, znači ne radiš ništa pogrešno, samo možda nisi includao headere za string i stavio da koristis std namespace.

Znači trebalo bi ovako:
Code:
#include <string>
using namespace std;

int main(int argc, char**argv)
{
  string test = "Neki tekst"; // ili std::string test = "Neki tekst"; u slučaju da ne koristis globalno std namespace
  return 0;
}

I have no drinking problems. I drink. Get drunk. Fall down. NO PROBLEM
Registered As Linux User #484215
Moj skromni blog
Savjet za buduće programere: ovdje
03-05-2010 07:39 PM
Find all posts by this user Quote this message in a reply
dexdix Offline
Novi korisnik
*

Posts: 31
Joined: Apr 2010
Reputation: 0
Post: #3
RE: string u DarkGDK
Ne sory to neradi.
Nema veze skuzio sam sta sam htio tak da mi ova tema nije bitna.

Meni je trebao char, a ne string.
04-05-2010 08:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)