OK im new to C++ and i dont know nothing yet. I wanted to know first how do i make a srting? In vb i go
dim StrString as string
in c++ do i do it like
char MyString = "String Data"
Printable View
OK im new to C++ and i dont know nothing yet. I wanted to know first how do i make a srting? In vb i go
dim StrString as string
in c++ do i do it like
char MyString = "String Data"
how about getting started with a tutorial?
http://newdata.box.sk/bx/c/
ive been there and that doesnt really help thanks anyway i got the string thing to work almost.
whats wronge with this?
Code:char *myString = "Jason Lopez";
SetWindowText(label,*myString);
got itCode:char *myString = "Jason Lopez";
SetWindowText(label,*myString);
needs to be
char *myString = "Jason Lopez";
SetWindowText(label,myString);
You'd be better off with console programming...
In C++, strings are a class:Quote:
Originally posted by JasonLpz
OK im new to C++ and i dont know nothing yet. I wanted to know first how do i make a srting? In vb i go
dim StrString as string
in c++ do i do it like
char MyString = "String Data"
Code:#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "Hello";
string x = "World!";
cout << s << ' ' << x << endl;
}