Yes yes this should do it. Thanks:)
Type: Posts; User: CrazyShellsSlam
Yes yes this should do it. Thanks:)
*looks at topic title* lol, yea idk what to call it, but I am looking for a program that acts as a video recorder for your monitor basically. i play CS Source, and all that jazz, and We've been...
This problem is kind of fitting for my screen name...C Shell...CrazyShells....yeah Im done lol.
Anyhow Im trying to write a C Shell that prints a prompt, you enter the command into stdin, and it...
Oh alright...sorry guess I missed that. Well I guess I learned a thing or two about this. As long as it makes me a better programmer I guess. Thanks alot guys.
I honestly don't see it...
and I asked a friend of mine who has some experience with C and he doesnt see it either...
#include <stdio.h>
int main(int argc, char *argv[])
{
Ok I see it!:)
Alright well, lets see what happens...
Thats interesting. I never honestly thought indentations had such a big impact on how the compiler looks at things. Ill go ahead and make the necessary adjustments so they match what u did, and see...
Honestly I dont :(
Which is why Im asking. Oh and I corrected the "/n" and switched it to "\". But yeah when I remove the entire else statement it works fine. I dont get it:(
*sigh* Alright so after some hardcore reading and asking questions I finally damn got it lol. Now I'm not one to start trouble, but it does the same exact thing as my original program;), haha. I...
Well the assignment also wants us to take a list of filenames and print out the first line. So wouldnt u need some kind of loop for that? Because the program asks u for the first file...u supply...
No...the point of the program was to read only the first line of the text file. That was the assignment lol.
I'm a bit confused...
Are you saying that the code in red is bad code practice? Because if thats the case, then what can I do to improve it?
Alright looks like I have it working. Only a couple of tweaks I believe need to be done for example. When I run the program it gives me the message: "The file is open" followed by the first line of...
Alright, thanks
Actually I got it...hehe with the if statement too. Heres the code.
#include <stdio.h>
int main(void)
{
Actually nevermind, your right lol. Alright I need to work further on this
Well actually I did something a tad bit different that a professor from last semester said. if we want to check if something is actually happening, then we can use an "if statement" for instance ...
Alright, thanks. so I guess I have to go back and tear the damned thing apart.
Well I have already clarified that fopen works. You see with the present code I have the program compiles, and then runs. It asks me for a filename, and I give it one, and then I think its entering...
LOL Yeah I know. Thank you.
Alright seems like I have gotten the program to enter the loop, but there is no result. I think because it doesnt know where to exit the loop.
#include <stdio.h>
int main(void)
{
Alright I think I may have gotten somewhere...I hope. I tried putting our 2 codes together, and came up with the following below. However I am getting a parse error before fgets, also I am getting...
Well Ive been working on it with a friend from my class, and I want to try something that he started on last night. Yes it probably is something simple, but if we compare codes I think we may get...
No it doesnt.....I get the same error message.
*sigh* just cant win these days