JackOfAllTrades's Profile User Rating: ****-

Reputation: 6140 Overlord
Group:
Moderators
Active Posts:
25,705 (10.81 per day)
Joined:
23-August 08
Profile Views:
214,140
Last Active:
User is offline Private
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Who Cares
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Mazda
Dream Kudos:
200
Expert In:
not much at all

Latest Visitors

Icon   JackOfAllTrades is missing compiled languages...

Posts I've Made

  1. In Topic: How do I calculate relative time?

    Posted 26 Feb 2015

    You might consider using moment.js, a very useful library.
  2. In Topic: PHP session variable passing

    Posted 21 Feb 2015

    And what does that do? Maybe the login is failing but it's reloading the page and you're missing the error message.
  3. In Topic: PHP session variable passing

    Posted 21 Feb 2015

    What/where is the function showForm?
  4. In Topic: Baffling and infuriating segmentation fault - updating a vector int

    Posted 21 Feb 2015

    Invoking undefined behavior can result in seg faults or everything appearing OK.

    I believe you should follow the suggestion above re: valgrind, or you might get bitten later on if you assume everything is now OK.
  5. In Topic: Problem with "expected expression before 'mi'" please

    Posted 17 Feb 2015

      typedef struct{
         char weekday;
         int date;
         int month;
         double moment;
      }match_info, mi;
    


    mi is a type, not a variable. These

      team_info arrdetails_team_info[NUM_MATCH];
      match_info arrdetails_match_info[NUM_MATCH];
      home_team arrdetails_home_team[MAX_TEAMS];
      away_team arrdetails_away_team[MAX_TEAMS];
      match_to_sort arrdetails_match_to_sort[match_to_sort_number];
    


    are variables which use you've typedef'd structs.

    Also, unless you want to print your struct's addresses you don't use & with printf.

    printf("%s %d / %d %lf %s - %s %d - %d %lf\n",
                &mi.weekday,
                  &mi.date,
                  &mi.month,
                  &mi.moment,
                  &ti.homet,
                  &ti.awayt,
                  &ti.goalsf,
                  &ti.goalsa,
                  &ti.spectator);
    

My Information

Member Title:
Saucy!
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
United States of Insanity
Interests:
Music, Sports, Games. The usual stuff.
Programming Languages:
C, C++, C#, PHP, Python, JavaScript, SQL, VB6, XML

Contact Information

E-mail:
Private
Website URL:
Website URL  http://