User Profile

Collapse

Profile Sidebar

Collapse
masqwerty16
masqwerty16
Last Activity: Jan 9 '17, 06:07 AM
Joined: May 11 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • masqwerty16
    started a topic counting positive and negative numbers
    in C

    counting positive and negative numbers

    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;
    ...
    See more | Go to post
    Last edited by zmbd; Nov 15 '15, 02:52 AM. Reason: [z{please format script using the [CODE/] tool}]

  • masqwerty16
    started a topic file handling
    in C

    file handling

    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 = "";...
    See more | Go to post

  • masqwerty16
    started a topic array
    in C

    array

    #include<iostre am.h>

    main ()

    {
    int number[10] = {0,1,2,3,4,5,6, 7,8,9};
    int x;

    for (x=0; x<20; x++)

    {
    cout << "Input number (only input 0-9): " << endl;
    cin >> number[x];
    }

    for (x=0; x<10; x++)

    {
    cout << "Occurency of "...
    See more | Go to post

  • masqwerty16
    started a topic function for even and odd
    in C

    function for even and odd

    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...
    See more | Go to post

  • masqwerty16
    replied to Arrays Revealed
    in C
    ah ok.. thanks..:D may god bless you.. :D
    See more | Go to post

    Leave a comment:


  • masqwerty16
    replied to Arrays Revealed
    in C
    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++?
    See more | Go to post

    Leave a comment:


  • @weaknessforcat s thank you..!!! maybe my formula is wrong...
    See more | Go to post

    Leave a comment:


  • masqwerty16
    started a topic 3 function aside from main in factorial function
    in C

    3 function aside from main in factorial function

    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..

    here's my code:

    #include <iostream.h>...
    See more | Go to post
No activity results to display
Show More
Working...