User Profile

Collapse

Profile Sidebar

Collapse
houserocks13
houserocks13
Last Activity: Dec 7 '06, 03:35 PM
Joined: Nov 13 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • houserocks13
    started a topic tic tac toe in c++
    in C

    tic tac toe in c++

    Hi, my prof is driving us crazy.. Please help.. there are two errors in this program and i cant figure out what it means..

    error C4716: 'randompoint' : must return a value
    error C4716: 'addup' : must return a value

    Here's the code:

    #include<iostre am.h>
    #include<stdlib .h>
    #include<fstrea m.h>


    int array[3][3]={{49, 50, 51},{52,53,54}, {55,56,57}};...
    See more | Go to post

  • houserocks13
    replied to loop and switch.. help:)
    in C
    not yet=(

    for this number
    2.Write a program that will ask for a long number and sum the even and odd digits in the number.

    my prof changed it

    i have this code:
    #include <iostream.h>


    void main()
    {
    int num, r, evensum=0, oddsum=0;

    cout<<"Enter number: "<< endl;
    cin>>num;

    r=num/10;...
    See more | Go to post

    Leave a comment:


  • houserocks13
    replied to loop and switch.. help:)
    in C
    hehehe.. we havent tackeld arrays yet.. only loops.. so we are supposed to loop for this program.. my syntaz doesnt work..=( it doesnt display the 0 wahhh...
    See more | Go to post

    Leave a comment:


  • houserocks13
    replied to C classes for beginners
    in C
    i want to join.. i suck at codes.. i get the logic but i cant put it into syntax.. hehehe...
    See more | Go to post

    Leave a comment:


  • houserocks13
    started a topic loop and switch.. help:)
    in C

    loop and switch.. help:)

    im quite confused with loops and switch.. will you please help me:)
    i have 3 problems..:)

    1.Write a program that will ask for a long number and count how many digits are there in the number.
    ex. Enter num: 10854
    Output: 5

    2.Write a program that will ask for a long number and count how many digits in the number are even and how many are odd.
    ex. Enter num: 80572
    Output: 3 digits...
    See more | Go to post
No activity results to display
Show More
Working...