Search:

Type: Posts; User: Yogindar Das

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,120

    do { unknownoption=0;...

    do
    {
    unknownoption=0;
    scanf("%d", &options);

    switch (options)
    {
    case 1 :
    {
    sumIntegers ();
  2. Replies
    2
    Views
    1,208

    Looking at the code looks like you want to...

    Looking at the code looks like you want to rearrange the marks and not sure what you intended to do here. Also for sorting you can just use one loop instead 2 loops. You have just swapped the marks....
  3. added more details

    #define REPORTFORMAT "%2s %2s %8.2f %15.2f %17.2f %18.2f%15.2f%11.2f\n"

    should be

    #define REPORTFORMAT "%2s %8.2f %15.2f %17.2f %18.2f%15.2f%11.2f\n"
    There is an extra %2s...
  4. Replies
    3
    Views
    907

    In addEntry() replace *ptrC++ with (*ptrC)++; or...

    In addEntry() replace
    *ptrC++ with (*ptrC)++; or *ptrC = *ptrC + 1;

    -Yogi
    My Blog — Blog by Yogindar
Results 1 to 4 of 4