'Create a feature that takes a character as arguments and returns (TRUE) if characters are a letter A-Z or A-Z otherwise (false)
#include <iostream>
#include
using namespace std;
int PosNeg(int p)
{
if (p<0)
{
cout << "p får värdet (-)" << endl;
}
else if (p > 0)
{
cout << "p får värdet (+) " << endl;
}
else
{
cout << " får värdet (0)" << endl;
}
return p;
}
int main()
{
int p;
p = PosNeg(0);
system("PAUSE");
return 0;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
