I want to express my gratitude to all who helped me and to all who answered my posts. Today I passed my last exam (which was C), on college,with highest rating!
Thanks
Type: Posts; User: shardin
I want to express my gratitude to all who helped me and to all who answered my posts. Today I passed my last exam (which was C), on college,with highest rating!
Thanks
I have to disappoint you Dwks, now when i return "head", it doesn't break but it's not working also. It wont print my text, and name i enter is messed up. I want to make it to exit function if my...
But it works fine with, "c>=65 && c<=122", those are letters from a -A to z-Z. That is acceptable.
Well, I'm not allowed. No, not on this exam. And no computer, we have to write it all on paper.
shardin
Sometimes so stupid... - i think that says it all!!!
No, no, no....I think you are missing my point.
No, it does not work! I try to compare strings but nothing. It puts something inside the list anyway! (symbols mess)!
struct student *dodajAN(struct student *head){
...
No, the thing is in braces and 'else' statement! If I use niz[i]=niz2[a], i++, then I need to use braces, if I use niz[i++]=niz2[a], then I dont need braces and then affects 'else' statement, yes I...
no, same thing. It has to do something with a pointer on a fulfilled list.
I'm not allowed to use string functions in exam! Only strlen!
struct student{
char ime[20];
struct student *next;
};
struct student *head=NULL;
I have troubles with my function. I want to put a name in list, but, if the name is already there then...
Ok, can someone explain to me why this ...
for(i=0;i<strlen(niz)+1;i++){
if(niz[i]>=65 && niz[i]<= 122){
if(niz[i]=='A' || niz[i]=='E' || niz[i]=='I' || niz[i]=='O' || niz[i]=='U' ||...
Works fine for niz2[j], but niz3 is still messed up! What niz2[j]=0; does? And when I dont enter anything it still prints out some signs for niz3.
Ok, this is the same thing. You can see that code I have written up is working, but now i want to do it this way...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{...
Very cool!
zes, thanks man!
no, not that, i meant on the keyboard, when i press AltGr+: in visual it gives me > or < and in Dev it starts comment. I know it is stupid, but i cant find it.
At this moment, i am not working with sorted list. And please, can anyone who is using Bloodshed Dev C++, tell me where the f*** is <>!?
no, mike, that is a if(temp>dodaj->mbr)
struct student{
char ime[20];
int mbr;
struct student *next;
};
What i want to do is compare mbr i enter with mbr that are already entered, and to put it on the right place.
Ok, this is my function....
struct student *dodaj_di_triba(struct student *head, int mb,char *ime){
struct student *temp;
struct student *dodaj;
dodaj = (struct student...
Yes, I already have sorted list. Aha, I get you!
Thanks
Didn't try to keep program running, it's just that Salem gave ma an advice to try install some other compiler, i'm using Visual 6.0, and try to run program there. So i installed Dev, and it had...
In my last exam, i had an assignment, one of five, which refers to dynamic lists. I had a single dynamic list, and I was asked to write a function which will add a element in the list. The thing is...
It is working now! Hura!!!!
#include <stdio.h>
#include <stdlib.h>
#define N 30
int *funkcija(int *, int);
int main(int argc, char *argv[])
{
int el;