that one was also given...but thanks anyways...my teacher just send me an example on how to do it...
Type: Posts; User: Tryhard
that one was also given...but thanks anyways...my teacher just send me an example on how to do it...
Believe it or not, it actually was given by my teacher;
its says
typedef struct WHATEVERYOURSTRUCTNAMEIS Sorted
typedef Sorted * Thelist;
thats the way the teacher use it...we have to use her functions prototypes, we cant change it...thats the only reason i'm confuse..cause i able to do it with char and int but cant do it with that
i have another function that checks if the list is empty or not..i just wanna know,
if i put a string in main and call it in this function
int main()
{
char * string;
...
I been ask to create a sorted linked list module, and to test each function with 1 unit, 2 +.
so i wrote my addtofront function( we have to use the same as the teacher)
struct MyList{
...
thanks, its working.
TEXT FILE CONTENT
this is an example
i'm crazy about c program
so thats why i'm learning it
output
i got a program thats get the newline...
i am able to get it vertical but im looking for the line to be horizontal.
so lets say my text has "this is an example \n = 1st line "
...
[solve]
this is done
Thanks Salem, i got it to work but just a little different from what you suggested...thanks for helping me :)
yeah i did this before, its only display + all over the screen 10 times...its doesnt take the position of the + and puts it in that position...
ok but now its work but it print the other element only after i click enter.
how can i print it without clicking enter.
i did it but as a result it only show the first element, and never gets to the rest...so its only gets de3
for ( x = 0 ; x < distance ; x++ ) {
for ( y = 0 ; y < distance ; y++ ) {...
i still dont understand how to put mvaddch in a loop to display the board...how do i do it?
so if i understand, mvaddch should be in a loop so its display the board? what is fp...shouldnt it be the file name?
i changed some stuffs but the thing is..its doesnt get the other item, its only gets the first one, i tried putting it into an array but its still doesnt work, i even tried a do while loop. should i...
I ask this question before but here is another way.
I have a text file that says de3 dn4 dw5 ds8
the de, dn , dw and ds stand for the position of the door(d), and the number stand for the...
c will never end because its will always going to have to loop to check whether its de3 or else, and i was thinking about storing it to a pointer or array but i was confuse to whether i need...
Heyy guys,
i'm new here,
im trying to fix a problem but cant find a way to do it...its only works with the first letter.
so i have a txt file with information such as de3 dn5 dn7 dw9 ds1
and im...