Homebrew Will any C++ code work?

Eddypikachu

Well-Known Member
OP
Member
Joined
Mar 25, 2015
Messages
921
Trophies
0
Age
34
XP
2,140
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?
 

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,032
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?
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/WOppJ92RgGU?si=KE79L6A_3jESsGQM