I HAVE THIS LINE:
wchar_t *PROG_FILES[] = { L"Myfile.txt" , L"Myfile.txt" , L"Myfile.txt" , L"Myfile.txt" , NULL }
i need this
wchar_t aa[] = L"Myfile.txt";
wchar_t bb[] = L"Myfile.txt";
...
...
...
wchar_t *PROG_FILES[] = { aa, bb, L"Myfile.txt" L"Myfile.txt" , L"Myfile.txt" , NULL }
So i need Variables with text , and insert it to array above
Also how concatinate variables
In C# plus sign
like aa + bb + cc + ....
How in C++
Please help me.
Thank you!
Last edited on
You can concatenate strings using the + operator if you use std::wstring to store the strings.
1 2 3 4 5 6 7 8 9 10 11 12
|
#include <iostream>
#include <string>
int main ()
{
std::wstring aa = L"Hello";
std::wstring bb = L" World";
std::wstring cc = aa + bb;
std::wcout << cc;
}
|
Last edited on