SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- void printList(const List list, FILE *textfile)
- {
- List current = list;
- while (current != NULL) {
- if (current->count > 1) //För examinationsuppgiften, om count är mer än 1 så printas värdet lika många gånger jämfört med count
- {
- for (int i = 1; i < current->count; i++)
- {
- printf("%d ", current->data);
- }
- }
- printf("%d ", current->data);
- current = current->next;
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.