User forums > Using Code::Blocks
how come the code::blocks doesn't return any value, i can't identify what's wron
(1/1)
yangfizz:
--- Code: ---#include <iostream>
using namespace std;
int function(int x);
int main()
{
int x;
function(x);
return 0;
}
int function(int x)
{
cin>>x;
return x
}
--- End code ---
after i input the value, i was supposed to get the value because of return, but for some reason, it doesn't return anything at all.
Ceniza:
Code::Blocks is NOT a compiler, and we are NOT a general programming forum. Did you read the rules when you registered?
Navigation
[0] Message Index
Go to full version