hi people, im making an address book with link lists and I think I have everything going well. The only thing that is messing up is when I try to exit (option 8) the program crashes and I am not...
Type: Posts; User: mackieinva
hi people, im making an address book with link lists and I think I have everything going well. The only thing that is messing up is when I try to exit (option 8) the program crashes and I am not...
thanks for helping guys, i may never get this one but im still trying.
In function `insertion_sort_list':
99 [Warning] assignment from incompatible pointer type
104 [Warning] assignment from incompatible pointer type
107 [Warning] assignment from incompatible...
this is what i put together but I did something wrong, received some errors and dont know where to begin to fix them.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
struct...
yeah i still cant find the right way to do it. I went to your links iMalc but couldn't find the right thing i guess. thanks for anyone that can help me with putting the list in order from lowest to...
thanks mats, i kind of get the idea, will post what i did soon.
hi people, i made a program that puts 25 random integers into a linked list, and then finds the sum and average. everything works fine, one thing im wondering is if i wanted to put these numbers in...
so i tried to put this in the primeNum function, it doesnt run ofcourse so it's wrong but am I heading in the right direction?
int primeNum(int i){
int a = 0;
for (a = 0; a < i;...
wow good eye on the define max lamanna, understand the return 1 and return 0 now and how its incorporated with loop. i went to test it though to see it work and it crashed, do you know why the...
got it to work!!!!
i just made a goto label, didnt even think of that. thanks for the help again yall i really appreciate it like always
#include <stdio.h>
#include <stdlib.h>
#include...
hi all, this is the next one i picked to do.
-Finding Prime Numbers and Sum-
An Integer is said to be prime if it is divisible by only 1 and itself. For example 2, 3, 5 and 7 are prime, but 4,...
ive never done a do while loop before, do you mind showing me what you mean?
yeah i tried to put that into the loop but then it puts another set of cards after you get the total from new cards.
so if i have 2 and 10 for 12 and ask for another card im returned
you got a...
hi all, next im working on a blackjack program. cards are just 2-10, giving the user 2 cards and asking 1 for another card or 2 for no.
if they say no, hit 21, or go over they are asked if they...
thank you guys, again you help me out alot.
thanks for the help all, i had to do a phonebook program and it just worked me.
basically the main.c file is for the menu and call functions.
the main.h file holds the struct.
the process.c...
hi all, ive moved on to the next thing and its killing me, i dont even know really how to begin. the section is all about making a main function and writing other .h files and using them in the main...
ooooh thanks for the help rob. now op1 and op2 have the right number assigned to them. also i allocated memory for the other arrays...dont really know why i didnt do that before. it runs now, takes...
yeah i was trying to make it so the array would constantly store the number in it with op1 having each cell in the array with 20 and op2 with 30 but i guess that wasnt the right way of doing it.
...
yeah theyre supposed to be pointer arrays. are they declared right as pointer arrays?
i try to run it and it just crashes, im not sure where i messed up at. was hoping it might stick out to someone here who could offer advice. thanks again.
Hi all. The next one im trying to do is math quiz. Im reading about maloc and caloc and realoc and found this example to do with it. It asks the user how many problems they want to do (it will...
ty for the help brewbuck, it helped make it click. i wasnt trying to be an ass myself calling you a dick before just hard to tell sarcasm and things like that over the internet. later.
hey all, so im making one that uses pointers to pass the answers of four calculations. im just missing something here, i go to compile it and it freezes and closes the program. thanks for the help....
thank you very much for the help dwks. yes i am about as novice as they come to C, which is why i didn't get the whole third variable needed the way my friend was trying to explain it to me. I'm...