User Profile

Collapse

Profile Sidebar

Collapse
huzzaa
huzzaa
Last Activity: Oct 9 '07, 12:55 AM
Joined: Apr 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • huzzaa
    started a topic Link 2019 problems
    in C

    Link 2019 problems

    Code:
    1>Employee main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Employee::nameDisplay(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,float)" (?nameDisplay@Employee@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0M@Z) referenced
    ...
    See more | Go to post

  • huzzaa
    started a topic Reading from File
    in C

    Reading from File

    Hey all, I am having trouble remembering how to read things in from a file.

    I have a structural array set so if I am correct, each element in the array has the things I put into my struct.

    have have 3 things in my struct.
    2 strings
    1 float



    The file I am trying to read from has first name, last name, and salary and each entry is seperated on their own lines.

    ...
    See more | Go to post

  • huzzaa
    started a topic File reading trouble. getline
    in C

    File reading trouble. getline

    I need to read in from a file certain integers displayed like so:

    20.1 52.0 42.3

    and place those into a structural array.

    I've been trying to use getline, but I just remembered its mainly used for strings.

    What would be th best way to read that information from a file, and store it into an array of structs.

    My current code with the getline function is this.
    ...
    See more | Go to post

  • huzzaa
    started a topic Poblem with Structural array
    in C

    Poblem with Structural array

    Hey, I am trying to declare an array of 12 structs that will hold information from a file input.

    I have my struct

    Code:
     
    struct month
    {
        float totalRain, highTemp, lowTemp, averageTemp;
    };

    and this is my array

    Code:
    struct month fullYear[12];
    These are my struct variables.

    Code:
    month jan, feb, mar, april,
    ...
    See more | Go to post

  • huzzaa
    started a topic switch not assigning value problem
    in C

    switch not assigning value problem

    I am trying to get the user to input 1-10 and that will select a a number from an array and place it into a variable. here is the code.


    Code:
       
       do
        {
          cout << "Enter the first row from column 1 to be summed (1-10)";
          cout << endl << endl;
          cin >> answer1;
          
          switch(answer1)
          {
    ...
    See more | Go to post

  • huzzaa
    replied to Printing 2 dimentional arrays
    in C
    Thank you, worked perfectly.
    See more | Go to post

    Leave a comment:


  • huzzaa
    started a topic Printing 2 dimentional arrays
    in C

    Printing 2 dimentional arrays

    Hey everyone.

    I am using a for loop to pring my arrays

    Code:
        for (int row = 0; row < rowSize; row++) 
        {
            for (int col = 0; col < colSize; col++)
            cout << setw(2) << myArray[row][col] << endl;
        }

    the output is this:

    0
    0
    0
    0
    0
    0
    0
    0
    0
    0
    0...
    See more | Go to post

  • huzzaa
    replied to Switch Statment Problems
    in C
    I used if-else. Thanks so much for your reply!...
    See more | Go to post

    Leave a comment:


  • huzzaa
    started a topic Switch Statment Problems
    in C

    Switch Statment Problems

    I am using a switch statement that will decide from a random number what message to display.

    I want the random number to be between 0 and 100 and then if the number is say between 1 and 10 to display a certain message.

    here is my code

    Code:
     
    
    srand(time(0));
    
    int messageSelect = 1+rand()%100;
    
    switch (messageSelect)
    {
     case ..........  : cout <<
    ...
    See more | Go to post
No activity results to display
Show More
Working...