Java to C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2007
Posts: 18
Reputation: livingsword is an unknown quantity at this point 
Solved Threads: 0
livingsword livingsword is offline Offline
Newbie Poster

Java to C++

 
0
  #1
Mar 5th, 2007
i wish to use this java code in c++.

  1.  
  2. 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++ ?:-|
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 539
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: Java to C++

 
0
  #2
Mar 5th, 2007
  1. char* bname[] = { "Unix Environment",
  2. "Programming in Perl",
  3. "Comp. Architechture",
  4. "Operating System",
  5. "Java Programming",
  6. "DIstributed OS",
  7. "Database Management",
  8. "J2ME","Operating Systems",
  9. "Algorithms in C++"} ;
Last edited by thekashyap; Mar 5th, 2007 at 1:06 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Java to C++

 
0
  #3
Mar 5th, 2007
Depends what you want to do. The best way in C++ to do this would be like this:
  1. #include <iostream>
  2. #include <string> // useful for string manipulation
  3.  
  4. 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."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC