User Profile

Collapse

Profile Sidebar

Collapse
charmeda103
charmeda103
Last Activity: Dec 8 '08, 09:11 PM
Joined: Oct 16 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • charmeda103
    started a topic My program is giving me strange results
    in C

    My program is giving me strange results

    when i run my program it runs with no erorrs but the output screen is giving me strange results

    here is whats its giving me:

    CONFERENCE OVERALL
    RANK TEAM W-L % WINS MARGIN W-L % WINS MARGIN
    KSU 3-1 0.75 10.5 8-1 1.#IO 1.#J
    CAP 3-1 0.75 11.75 7-2 1.#IO 1.#J
    HEID ...
    See more | Go to post

  • charmeda103
    replied to help writing this program!
    in C
    no its not put together, that data from the chart has to be displayed into another outfile. using functions and thats what im having trouble with.
    i need help with the code
    See more | Go to post

    Leave a comment:


  • charmeda103
    started a topic help writing this program!
    in C

    help writing this program!

    i have this program that i am almost done with, i am one part away from being done.

    the last part is putting the results together;
    here is the results that i need to put in code. do u have any ideas on how to write code to this using functions.pleas e any thing will help

    CONFERENCE OVERALL
    RANK TEAM W-L % WINS MARGIN W-L % WINS MARGIN
    1 KSU 3-1 ...
    See more | Go to post

  • charmeda103
    started a topic help with this please
    in C

    help with this please

    i have to write a code for this:

    Coffee mugs sells for $3.49 each.
    write code that declares a variable in which to store the number of mugs and intitalizes it to mugs.

    Code:
     
    int=mugs;
    int=nomugs; 
    noMugs=0;
    is this right.

    also i have to write code that would declare an approprialtey named constant in which to store to that price.
    Code:
    const float=3.49
    ...
    See more | Go to post

  • charmeda103
    replied to new with structs
    in C
    i changed the program a bit its supposed to read information from a file.



    here is the error message. i cant figure out how to fix it.



    error C2065: 'schoolName' : undeclared identifier
    error C2065: 'basketball' : undeclared identifier
    error C2228: left of '.schoolName' must have class/struct/union

    How do i declare this




    ...
    See more | Go to post

    Leave a comment:


  • charmeda103
    replied to new with structs
    in C
    please i am having a hard time with this program. can you help me fix these errors.

    error C2146: syntax error : missing ',' before identifier 'string'
    error C2065: 'schoolName' : undeclared identifier
    error C2065: 'numberWins' : undeclared identifier
    error C2065: 'numberPointsTh eTeamScored' : undeclared identifier
    error C2065: 'numberPointsSc oreAganistTheTe am' : undeclared identifier
    error C2065:...
    See more | Go to post

    Leave a comment:


  • charmeda103
    replied to new with structs
    in C
    ok now i am getting a bunch of errors help!

    here are the messages:
    error C2628: 'schoolStats' followed by 'void' is illegal (did you forget a ';'?)
    syntax error : missing ',' before identifier 'string'
    error C2065: 'schoolName' : undeclared identifier
    error C2065: 'numberWins' : undeclared identifier
    error C2065: 'numberPointsTh eTeamScored' : undeclared identifier
    error C2065: 'numberPointsSc oreAganistTheTe am'...
    See more | Go to post

    Leave a comment:


  • charmeda103
    replied to new with structs
    in C
    I just started my program does it look like i am doing it right.

    Code:
    #include<iostream>
    #include<iomanip>
    #include<cmath>
    #include<string>
    #include<fstream>
    
    
    
    using namespace std;
    
    struct schoolStats
    {
    	string schoolName;
    	int numberWins;
    	int numberLosses;
    	int numberPointsTheTeamScored;
    ...
    See more | Go to post

    Leave a comment:


  • charmeda103
    replied to new with structs
    in C
    a void function like

    void ReadStudentName (string,name,.. ......etc)

    {
    more code here
    }
    no return value necessary
    See more | Go to post

    Leave a comment:


  • charmeda103
    replied to new with structs
    in C
    can you use structs in void functions or do they have to be declared before main.
    how would u use structs has a void function
    See more | Go to post

    Leave a comment:


  • charmeda103
    started a topic new with structs
    in C

    new with structs

    I am writing a program that deals with structs.
    i need help with structs this is my first time dealing with them. can you give me some examples that would be helpful.
    my program is supposed to have to read data from two input files.
    any inforamtion on stucts will be helpful.

    thank
    you
    See more | Go to post

  • charmeda103
    started a topic ASAP!! My compiler is giving me error message.
    in C

    ASAP!! My compiler is giving me error message.

    I keep getting errors and i looked relooked I cant seem to see what wrong.
    from my code can see u where the errors are coming from.

    here are the error messages:

    1.warning C4101: 'size' : unreferenced local variable
    2. warning C4553: '==' : operator has no effect; did you intend '='?
    3. warning C4101: 'userAnswer' : unreferenced local variable

    4.error LNK2019: unresolved external...
    See more | Go to post

  • Please How do I fix my program i keep getting errors!

    here are the error messages how do i fix it. i am creating the game called Circular Nim!
    my program also keeps repeating why. anything would help!

    1.error C2234: 'GamePieces' : arrays of references are illegal
    2.error C2440: '=' : cannot convert from 'char' to 'char *'
    3. error C2234: 'GamePieces' : arrays of references are illegal
    4.error C2137: empty character constant



    ...
    See more | Go to post

  • charmeda103
    started a topic Desiging the game Circular Nim!
    in C

    Desiging the game Circular Nim!

    i have to write a program that creates the game circular nim. The program is supposed to be consisted using functions and arrays.

    Do you have any helpful ideas to get started on this program.

    thanks
    See more | Go to post

  • Ok my program calculates all that i need to calculate and for it to work. im reading my data from an infile and writing it into a outfile.

    the problem is that my program is reading my data only the first line all three times.
    i want the program to read all three lines of the data and not just the first line 3 times.
    how do i fix that


    Code:
    #include <iostream>
    #include <string>
    ...
    See more | Go to post

    Leave a comment:


  • whats missing in the if-clause
    See more | Go to post

    Leave a comment:


  • what does this mean

    Expression:stri ng subscript out of range
    See more | Go to post

    Leave a comment:


  • hi
    i took out the commas but these two errors messages wont go away.


    error C2086: 'char &junkChar' : redefinition

    see declaration of 'junkChar'
    See more | Go to post

    Leave a comment:


  • charmeda103
    started a topic why does my Program keep getting me an error!
    in C

    why does my Program keep getting me an error!

    My program keeps getting me and error and i dont why

    here is the error message

    • error C2061: syntax error: identifier 'infile'
    • error C2660: 'ReadDate' : function does not take 6 arguments
    • error C2086: 'char &junkChar' : redefinition
    • see declaration of 'junkChar'
    My Program keeps giving me an error and i dont know why





    here is the code
    Code:
    #include
    ...
    See more | Go to post

  • charmeda103
    started a topic question about functions
    in C

    question about functions

    the types of functions

    value returning and void functions,

    how do these work when writing a program by using different infiles.

    how do void and value returning functions work when using data from txt files.


    can you give me an example.
    See more | Go to post
No activity results to display
Show More
Working...