I need to create 2 programs and I am lost. first must take 3 inputs, a character, and integer, and a floating point; all from different prompts. Then I must call a function that will assemble all inputs into a single string. I must display using puts() call back when the main function has ended. This is what I have so far:
insertObviously I am far off. I also need some advice on how to complete this:Code:; #include "stdafx.h" #include "stdio.h" #include "string.h" void strcat(int[], char[], float[]); #define max 10 int _tmain(int argc, _TCHAR* argv[]) { int n; float f; char c; printf("Enter an integer:"); scanf_s("%d", &n); printf("Enter a character:"); scanf_s("%c", &c); printf("Enter a floating point number:"); scanf_s("%f", &f); strcat(n,"&c"); return 0; }
1. Create a structure that has one variable called value and one pointer to the list (making it a linked list). Prompt for 5 values from the keyboard as input and store them in the linked list. Print out the current contents of the list. Allow the user to add one more value to the linked list, and print the contents of the list again.
I've been taking this class online and I have had no feedback what so ever, so I have fallen really behind any and all help would be greatly appreciate.



LinkBack URL
About LinkBacks


