Homebrew Will any C++ code work?

Eddypikachu

Well-Known Member
Member
Joined
Mar 25, 2015
Messages
988
Solutions
1
Reaction score
513
Trophies
2
XP
3,047
Country
United States
Hey I'm new to programming and I'm wondering if any code I write C++ wil work on 3ds? Like can I do something as simple as
intmain()
{
std::cout<<"Hello world!"<<std::endl;
return0;
}


compile it as 3dsx and it would work on 3ds?
 
Hey I'm new to programming and I'm wondering if any code I write C++ wil work on 3ds? Like can I do something as simple as
intmain()
{
std::cout<<"Hello world!"<<std::endl;
return0;
}


compile it as 3dsx and it would work on 3ds?
Aside from the obvious syntax errors - yes, this would compile. It would not do what you expect though. you would need to add 3ds specific code to initialize one of the screens for console output. And you would probably want to add some code to loop after the cout statement so that you can actually see the output before it closes.
But will any C++ code work? No, code specific to a different platform will not work. If you are asking if you can use C++ then the answer is yes.
 
  • Like
Reactions: Eddypikachu

Site & Scene News

Popular threads in this forum