Types functions in c++ (Tipos de funciones en c++)

#include <iostream> using namespace std; /*Se puede definir la estructura de una funcion de la siguiente forma: Valor de retorno - Nombre de la funcion -(Parametros de entrada) #Función que retorna un string*/ string fuction1(string a, string b): { string c=""; c=a+"-"+b; return c; } //#función que retorna un entero int fuction2(int a, int b) { int c=0; c=a+b; return c; } //TIPOS DE VARIABLES // FLOAT, CHAR , INT, BOOL , STRING int main() { cout<<"hello world"<<endl; return 0; }

1 Response

me pueden ayudar con un codigo para hacer la conversion de entero a tipo char

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.