Search:

Type: Posts; User: stam

Search: Search took 0.00 seconds; generated 37 minute(s) ago.

  1. Replies
    15
    Views
    2,324

    i just changed the gets(A[i].lastname) with ...

    i just changed the

    gets(A[i].lastname)
    with

    cin >> A[i].lastname
    and worked perfectly
    Thnx for help :)
  2. Replies
    15
    Views
    2,324

    Crazy stuff can happen :S

    Ok the program is done but when it runs and u start give what it asks
    Example:

    How many athletes; 2 (we give 2)
    ***Give Athletes Data:
    Lastname: Messi
    First Jump: 5.6
    etc....

    Instead of...
  3. Replies
    9
    Views
    1,302

    Ok guys thnx for help, till now i have done this:...

    Ok guys thnx for help, till now i have done this:


    #include <cstdlib>
    #include <iostream>
    #define MAX_ATHLETES 4

    using namespace std;
    struct athlete
    {
  4. Replies
    9
    Views
    1,302

    No we haven't done vectors and i don't think we...

    No we haven't done vectors and i don't think we will ^^ (Oi apergies ftaine :P)
    Any other way to do it?
  5. Replies
    9
    Views
    1,302

    Here is what i have done so far... Beacuse i...

    Here is what i have done so far...
    Beacuse i couldnt put the read section in fuction i leave it in main.(I need to functionize it.. HELP!!!)
    I did a search (i think :P) in a function that read all...
  6. Replies
    9
    Views
    1,302

    Structure Problem, Athletes in Daner!!!

    We have a structure with the following data

    struct athlete
    {
    char lastname[40];
    float p1,p2,p3,p4;
    };

    that corespond to athletes of "Long Jump" that have been done in a competiton....
  7. Ok and how i am gonna give them the char a want...

    Ok and how i am gonna give them the char a want to remove and the string i want to remove multiple spaces.
    Its not like common functions.
    Please explain i wanna learn something from this thing...
  8. Remove a specific char and remove multiple spaces

    Well right now this code Removes one specific letter from the string we give.
    The problem is that i found this func code on google so i don't really understand it(I am very new to this)
    I made the...
Results 1 to 8 of 8