sorry ignore I am a dumb git made a typo
Type: Posts; User: Showster
sorry ignore I am a dumb git made a typo
while((a[i].sex != '0') && (a[i].sex != '1'))
{
printf("Error, please may you enter 1 for male or 0 for female(person %d)\n", i);
scanf("%d",&a[i].sex);
}
why does this not work...
thanks your a life saver !!!!!!!!!!!!!!!
I am using visual studio 6 ......... didn't solve anything unfortunately V_V
#include<stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct surv_list SLIST;
PLZ help !!!
printf("\n\rOnly females, print d");
printf("\n\rOnly males, print e\n\r");
How can I do that when the data is stored in here
scanf("%d",&a[i].sex);
???
thanks
Right I have a 2D array and stored in one of the elements... is the values 1 / 0........ What I want to be able to do is the print the array if the value is 1 ////////////// and have another sort to...
thanks your a life saver ...... plus I am a dumbass when it comes to typing lol !
Hi please may u have a read and see why my third sort on age is not working correctly ........ id and wage work fine but for some reaason age is malfunctioning thanks greatly !
#include<stdio.h>
...
After quite alot of babbling and working my code is almost done...
What i would love to know if how can I make the quicksort work for all 3 of my requested sort types a,b,c (D+E are something...
#include<stdio.h>
int main()
{
int /* PersonID,Wage,Sex,Age, */ n, i;
int a[10][4];
printf("please enter the amount of people you will use \n");
scanf("%d",&n);
printf("\n=%d\n\n", n);...
no errors or warnings are given in visual studio . the program simply terminates after the printtable function !!!!
#include <stdio.h>
#include <math.h>
void datain(int,int,float[10000][4]);
void prtable(int,int,float[10000][4]);
void sortdata(int,int,float[10000][4]);
void main ()
{
/*Author:GSD...
lol uppss forgot bout that ! thanks works fine ....... just need to know how to use the scanf command to enter data into the array i.e. row1 column1 row1 column2 etc...... oh is there a way I can...
that code brings up 2 error warnings in vis studio ....... is it meant to be adapted............ ? thanks for your help :-)
but I need the user to be able to define the number of rows not .... to actually state it in the c source file .... if u understand what I mean :-)
Hi I would like to know how I can use a 2d array for instance to input some variable for instance ...........
I need 4 columns and a definable amount of rows
Person ID..............