Thread: Cannot figure this bubble sort out!! Need help.

  1. #1
    Registered User
    Join Date
    Aug 2017
    Posts
    1

    Cannot figure this bubble sort out!! Need help.

    So I've been in every book regarding C trying to figure this bubble sort out. I'm trying to get my turbine calculations for case 4 to be in ascending order. I keep getting error after error. Can someone check out my program and direct me towards getting a bubble sort accomplished.lol. Thanks to anyone who can help me out.

    The .c file is posted for reference and is currently working.
    I'm using Micro Visu Stud.
    Attached Files Attached Files

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,541
    So where is your actual attempt at sorting?

    You have an unusual value for PI.

    Preprocessor macro symbols are conventionally written in upper case, whereas C symbols are in lower/mixed case.
    So
    #define row 10
    int ROW;
    looks very weird indeed.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bubble Sort and Selection Sort
    By acmarshall in forum C++ Programming
    Replies: 2
    Last Post: 02-19-2014, 10:01 AM
  2. Bubble sort help
    By BNoble in forum C Programming
    Replies: 20
    Last Post: 03-31-2011, 12:16 AM
  3. using bubble sort to sort a matrix by sum..
    By transgalactic2 in forum C Programming
    Replies: 22
    Last Post: 12-23-2008, 12:03 AM
  4. Bubble Sort, Qucik Sort
    By insomniak in forum C Programming
    Replies: 2
    Last Post: 03-15-2003, 04:54 PM
  5. Bubble Sort
    By Dangerous Dave in forum C Programming
    Replies: 9
    Last Post: 04-24-2002, 03:55 AM

Tags for this Thread