You're beyond me, but is the space after the period supposed to be there?
while ( person_array[i]. number !=0 && i < MAX_PERSONS )
Type: Posts; User: rgrwatson85
You're beyond me, but is the space after the period supposed to be there?
while ( person_array[i]. number !=0 && i < MAX_PERSONS )
I don't copy anything. I look at examples like the one I posted and then I look at different examples. I don't "photocopy" the code in my head and regurgitate it. I don't scoop and poop it into my...
If the guy was going to cheat then he would have done it anyway. He is only hurting himself, and I don't care if he does. I told him not to...end of story.
You don't like to use Google as a...
I clearly stated that I don't want him to steal the code! The purpose of my post was to show that Google is the first stop when seeking help. Read my second post on here.
I don't learn a thing...
A caveat to my post is that I am not advocating the "scoop and poop route" (which is a freaking awesome term that should be copyrighted before i steal it). Use my link to understand the mechanics of...
Google is your friend...
Buble sorting algorithm and source code in C
Fu*& I forgot to change my function back to void. I was testing some ideas with returning a value and having the final array print from int main(). Guess it doesn't make a huge difference but I'm...
I got it figured out guys. Thanks for not handing me an answer, but pointing me in the right direction. I sat down and really thought about the logic involved in the problem and had quite a few "duh"...
I take back my last post. I just tested a random series including one and it did the same thing. Sometimes it works right and sometimes it doesn't.
Ok I updated the code again, and included a function that is part of the larger program. I tested everything you guys suggested and it worked beautifully...until i tested random numbers that don't...
Here is my updated function. I think it is right.
void bubble_Sort(int sort_Array[], int array_Size)
{
int pass_Number=1;
bool swap_Flag= true;
while...
I have to write a program that sorts an array using bubble sort. I have two things that I would like to do to my code:
1. Optimize it so that if the array is already in order it will recognize it...
#include <stdlib.h>
#include <stdio.h>
float factorial (float x, int n);
int main()
{
float x;
int n;
printf ("Please input value for n: ");
We just started learning how to use functions in my programming class and I get the basic structure of how they are laid out, but I am having a problem figuring out how to write the code for a...
I made the changes to the indentations that you suggested Adak. Thanks for that. It looks ten times better. Well better anyway. I talked with my prof today about there being so many while statements...
I have read about arrays a little bit in my spare time, but we haven't learned them yet. Just seemed that a while statement within a while statement within another while statement was a bit overkill...
I am new to programming and have to write a program for class that is designed to calculate student averages, class averages, and report letter grades. A sentinel has to be used for assignment 1...