Vas muy rápido. Ya haces uso de programación visual y aún no dominas el lenguaje. Por ahora, y de verdad te será mucho más fácil, sí solo trabajas en modo texto. Aprende bien los fundamentos, después ya podrás combinarlo con el s.o. de tu elección y con el entorno gráfico que más te guste.
En este punto, para aprender esto, deberías estar con algo tan sencillo como:
#include <stdio.h>
Int devuelve_5() {
return 5;
}
int main() {
int num = devuelve_5();
return 0;
}
entiendo , el valor final es 5, pero por ejemplo con funciones con sus propios parametros y retornos por ejemplo en un messagebox si yo aprieto YES me devuelve IDYES?
Return code/value Description
IDABORT
3
The Abort button was selected.
IDCANCEL
2
The Cancel button was selected.
IDCONTINUE
11
The Continue button was selected.
IDIGNORE
5
The Ignore button was selected.
IDNO
7
The No button was selected.
IDOK
1
The OK button was selected.
IDRETRY
4
The Retry button was selected.
IDTRYAGAIN
10
The Try Again button was selected.
IDYES
6
The Yes button was selected.