I ended up reading my textbook and using arrays and strings. It is sooooo much easier this way! Thanks a bunch :)
This is the new code and it works flawlessly.
#include <stdio.h>
Type: Posts; User: ihackress
I ended up reading my textbook and using arrays and strings. It is sooooo much easier this way! Thanks a bunch :)
This is the new code and it works flawlessly.
#include <stdio.h>
I think I may just end up using arrays, rather than spending my entire weekend figuring out if it is even vastly possible to get the desired result the way he wanted us to solve it. I can just tell...
Thank you very much! Would this assignment be any easier to complete?
Assignment.
You are given a file named data.txt. This file contains first name followed by last name.
Example:
Lisa...
I'm sorry to bother you, but it is still not functioning. I created a new variable, assigned it get char, and created a do while loop for the first name and placed it below the last name and the...
Alright, thank you very much. I will attempt to fix it and see if it works :D
Thank you very much! By while loop, do you mean the standard while loop, or the do-while loop I used for the last name? Also, when I put the printf statemnet for the last name before the one for the...
I think I am to use what I used for the last name for the first name as well. But when I try, it doesn't give me the desired result. If anyone assisting me on this forum can help me replicate my...
We haven't learned about strings either. We are to learn about arrays next week, immediately after the assignment is due. The reason for this unusual teaching method is because we are to learn the...
Does the first name HAVE TO be given to the program first? If the order could be changed to lastname given first, then firstname, it would be simpler.[/QUOTE]
Assignment.
You are to ask a user...
No, he has not taught us about any of the things you have mentioned (but I DO know how to use them). All we have learned at this point is loops (while, for, do while) , if else statements, get...
Thank you. I will just ask my professor if he could make an exception and allow me to use an array. (We were supposed to do this with whatever we have learned at this point. He hasn't taught us...
I was able to get the entire last name to print (using a do while loop), but when I attempt to do the same thing for the first name, I get an unwanted result.
Actually, I am to read them in last first order. ==>> [email protected] <<== Like that :biggrin:
Sure
Assignment.
You are to ask a user for first name followed by last name....
Thank you! However, we are not permitted to use arrays (do to the fact that 90% of the people in the class I'm taking don't even know what an array is.:rolleyes:) So I'm assuming I'll have to fix my...
Hi!
I am writing a very simple program that turns someone's name (written first name last name) into an email address in the following format ==>> [email protected]. However when I run...