Search:

Type: Posts; User: Nephilim

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,395

    Works like a charm ;) Thanks.

    Works like a charm ;) Thanks.
  2. Replies
    7
    Views
    2,395

    I'll try that, thanks. I'll post back.

    I'll try that, thanks. I'll post back.
  3. Replies
    7
    Views
    2,395

    I see. So would initializing c1 to zero do the...

    I see. So would initializing c1 to zero do the trick?
  4. Replies
    7
    Views
    2,395

    Inputting with SPACES...

    I can't seem to successfully output characters with spaces. I inputted using getchar().
    Any other ideas?
    Thank you in advance!



    printf ("Enter the Title [Use dots instead of spaces]: ");
    ...
  5. Replies
    8
    Views
    4,835

    How do you suggest removing them?

    How do you suggest removing them?
  6. Replies
    8
    Views
    4,835

    I meant with my original problem... this is the...

    I meant with my original problem... this is the least of my problems now.
    Only regarding TABLE_NAMES function please.
  7. Replies
    8
    Views
    4,835

    Thanks, that's helpful. Any suggestions on that...

    Thanks, that's helpful.
    Any suggestions on that function?
  8. Replies
    8
    Views
    4,835

    I meant table_names... Fixed. So?

    I meant table_names... Fixed. So?
  9. Replies
    8
    Views
    4,835

    Phonebook/Address book help

    Greetings everyone!
    I'm creating a phone book with lots of functions, and having problems with a few of them
    Ok here is my code so far;


    #include "ok.h"
    #include <stdio.h>
    #include <stdlib.h>...
  10. Replies
    31
    Views
    6,752

    Sorry for the late reply, I've been doing other...

    Sorry for the late reply, I've been doing other programs as well.
    Thanks for pointing out the mistake man, i'll study the code more. It seems the variables i and j confuse me most of the times, have...
  11. Replies
    31
    Views
    6,752

    You do realise this is a new request related to...

    You do realise this is a new request related to the original one in my 1st post, yet DIFFERENT?
    So how could it have been solved in post 6 when I asked for it a few posts ago?
    First I had to sort...
  12. Replies
    31
    Views
    6,752

    Just a part of this whole sorting algorithm. I...

    Just a part of this whole sorting algorithm. I sorted the points but i'm facing the same problem of associating their respective names. I made it work for 5-6 names as I told you before but past that...
  13. Replies
    31
    Views
    6,752

    Again, I'm a beginner. I'll try again.

    Again, I'm a beginner. I'll try again.
  14. Replies
    31
    Views
    6,752

    I've been sitting on my laptop for 7 straight...

    I've been sitting on my laptop for 7 straight hours so excuse my blindness. I don't know.


    tnum=punteggio[posMin];
    punteggio[posMin]=punteggio[i];
    punteggio[i]=tnum
  15. Replies
    31
    Views
    6,752

    for ( j = 0; j < cnum -1; j++){ posMin = j;...

    for ( j = 0; j < cnum -1; j++){
    posMin = j;

    for (i = j+1; i < cnum; i++)
    if (strcmp(cognome[i], cognome[posMin]) < 0)
    posMin = i;

    strcpy(tmp1,cognome[j]); ...
  16. Replies
    31
    Views
    6,752

    Yeah that didn't fix it. I wonder why. I tried...

    Yeah that didn't fix it. I wonder why.
    I tried this also:


    for ( i = 0; i <cnum; i++) {
    for (j = i+1; j<cnum; j++) {
    if(rank[i]>rank[j])
    {
    strcpy(tnome,nome[i]);
    ...
  17. Replies
    31
    Views
    6,752

    What's wrong with this code? char...

    What's wrong with this code?


    char tcognome[40];
    char tnome[40];
    int tnum;
    int sorted[STRMAX];
    int rank[STRMAX];
    for (j = 0; j <cnum; ++j)
    {
  18. Replies
    31
    Views
    6,752

    Thanks for replying :) So it looks like that's...

    Thanks for replying :) So it looks like that's what I was missing. Works like a charm.
  19. Replies
    31
    Views
    6,752

    This is what i got: for ( j = 0; j < cnum...

    This is what i got:


    for ( j = 0; j < cnum -1; j++){
    posMin = j;

    for (i = j+1; i < cnum; i++)
    if (strcmp(cognome[i], cognome[posMin]) < 0)
    posMin = i;
  20. Replies
    31
    Views
    6,752

    How can that be done? That's what I've been...

    How can that be done? That's what I've been trying to do all the time.
  21. Replies
    31
    Views
    6,752

    I managed to sort the 3rd array of points but...

    I managed to sort the 3rd array of points but only if the points are entered in a descending order.


    int j;
    char tmp[20], tmp2[20];
    int posMin, tmp3;
    for (j=0; j<cnum-1;...
  22. Replies
    31
    Views
    6,752

    bithub, I realise that. As i said; I don't...

    bithub, I realise that. As i said; I don't understand how can I associate to print out the first name and the points of that same array.

    commontater, being new to C I would appreciate some...
  23. Replies
    31
    Views
    6,752

    Sorting 3 arrays alphabetically

    Greetings everyone,
    I am writing a program that allows the user to enter the first name, last name, and grade of each student. The program then sorts all the names alphabetically by last name, and...
  24. Replies
    2
    Views
    1,564

    That was stupid of me, thanks Salem!

    That was stupid of me, thanks Salem!
  25. Replies
    2
    Views
    1,564

    Printing an array of inputted characters

    Greetings everyone,

    I cannot seem to output an array of strings after inputting it.
    The user should input Names in each cell and then the names should be outputted.
    The output should give the...
Results 1 to 25 of 25