| | |
Java to C++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2007
Posts: 18
Reputation:
Solved Threads: 0
i wish to use this java code in c++.
how do I initialize char array in c++ ?:-|
C++ Syntax (Toggle Plain Text)
String bname[] = { "Unix Environment", "Programming in Perl", "Comp. Architechture", "Operating System", "Java Programming", "DIstributed OS","Database Management", "J2ME","Operating Systems", "Algorithms in C++"};
how do I initialize char array in c++ ?:-|
c Syntax (Toggle Plain Text)
char* bname[] = { "Unix Environment", "Programming in Perl", "Comp. Architechture", "Operating System", "Java Programming", "DIstributed OS", "Database Management", "J2ME","Operating Systems", "Algorithms in C++"} ;
Last edited by thekashyap; Mar 5th, 2007 at 1:06 am.
Depends what you want to do. The best way in C++ to do this would be like this:
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <string> // useful for string manipulation std::string bname[] = { "Unix Environment", "Programming in Perl", "Comp. Architechture", "Operating System", "Java Programming", "DIstributed OS","Database Management", "J2ME","Operating Systems", "Algorithms in C++"};
"Technological progress is like an axe in the hands of a pathological criminal."
![]() |
Similar Threads
- Java 3D Environment (Java)
- Java 3D (Java)
- Java Expert (Needed) (Java)
- Java Chat Reboots (Java)
Other Threads in the C++ Forum
- Previous Thread: C++ program that checks if...
- Next Thread: Conversions
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






