I'm not quite sure if I understand rightly but i'll take a stab. You're asking if it's not too hard to learn enough C or C++ (or Assembly) to be useful for your Mechatronics course?
IMO you could quite easily learn C, it is quite simple.
here is a tutorial I quickly googled and found (chose it as it has a portuguese translation, and it may be easier for you to learn in your native language).
To compile the source code (turn the text of your program into something which the computer can execute) you need a compiler. If you're on GNU\Linux then you should have gcc installed. If you're on windows
here is a link to a free compiler you can use.
Hope this helps.
- sean