i don't know the codes to count how many negative and positive.. can you help me with the codes to count negative and the positive numbers? here is my code i can't finish it yet 'cause i don't know the codes or the condition.. hehehe.. :D
Code:
#include <iostream.h>
main ()
{
int x;
int count[100];
cout << "Input 10 numbers: ";
for (x=0; x<10;
what's wrong in this problem/program? this code cannot be run in borlan c++..??
#include <iostream.h>
#include <cstring.h>
#include<fstrea m.h>
#include<string .h>
main ()
{
string name = "";
string course = "";
string id = "";
string year = "";
int x;
string surname = "";...
i have here a code that can distinguish between odd and even numbers but my problem is how can i add for even numbers and odd numbers. here is my code...
//odd and even functions
#include <iostream.h>
void even (int a,int b,int c, int d,int e);
void odd (int a,int b, int c,int d,int e);
void addeven (int a,int b,int c,int d, int e);
void addodd (int a, int b,int...
what a nice article!!!! i'm just curious if to locate the value of the 1st member of the array, you would type distance[0], how about if i used in the 1st member will be distance[1] instead of zero, the program will be still run in c++?
i have a problem on 3 function aside from main in factorial function and i wrote the code and the program worked perfectly on some numbers but it crashed on others this is the message i get: "MASONG11 cause a Stack Fault in module MASONG11.EXE at 0002:0076. Choose close. MASONG11 will close."
any suggestions?? please answer.. i actually needed the answer please..
Leave a comment: