i started with Python because its easier at my opinión that others languages, ex. in Python you put:
and its done but in C its like (i think, im not very sure, its an example from the page you said above)
Code:
#include <iostream.h>
int main() {
std::cout << "Hello World!\n";
return 0;
}
A lot of lines for something that can be in one/two lines
Ill try to write it in C/C++, thanks for reply
Bye!
It may be better to actually try writing homebrew for 3DS, if you have a 3DS. 3DS has better established examples than Wii U at the moment, and more standardization (Wii U has .elf which has a set of de-facto libraries which differ from WUT, which is used for RPX native applications which can load from loadiine, not as popular yet).
On 3DS you can do something like
and ctrulib will actually print to a console on the 3DS. printf also works in C++, some people prefer it to cout because it can do formatting somewhat nicer.
https://github.com/devkitPro/3ds-examples/tree/master/graphics/printing/hello-world is a good 3DS sample if you go that direction.
Wii U doesn't have a standard console as far as I know, however you can do things like OSScreenPutFontEx to print to the screen, or OSReport to print to syslog (which cannot be viewed without either hacking coreinit to redirect output somewhere, or with IOSU). OSReport is handy if you're developing against something like Decaf-Emu because you can just print like
Code:
OSReport("Hello, world!");
and it'll show up in the console there. You can only develop with decaf-emu if you target WUT instead of the usual homebrew .elfs, unfortunately. WUT has a basic example at
https://github.com/decaf-emu/wut/tree/master/samples/helloworld, doesn't do any GUI stuff though, just does some prints, runs code on each core and exits.
You'd probably be better off, assuming you don't have a 3DS and really want to do Wii U homebrew, just sticking with the existing examples used for .elf homebrew run through Homebrew Loader.
https://github.com/rw-r-r-0644/WiiU-HelloWorld-Easy looks like a nice place to start for basic printing stuff, because they have a printf wrapper called uprintf which gives you a console to work with.
TLDR; Maybe look at 3DS stuff because it's a bit nicer,
https://github.com/rw-r-r-0644/WiiU-HelloWorld-Easy is good too though.