I Fixed it! :D
I ended up rewriting my code from scratch as what I had was far too complex for its purpose.
I found that using a switch statement in main oddly made the whole process much easier.
Type: Posts; User: rb737
I Fixed it! :D
I ended up rewriting my code from scratch as what I had was far too complex for its purpose.
I found that using a switch statement in main oddly made the whole process much easier.
Hello Everyone,
I hope you are all doing well. I am creating a program to detect and correct errors in hamming code. The issue I am having is the program is crashing.
Debugging it I found the...
Hello Everyone,
I hope you are all doing well and thanks in advance for helping me out with the below issue.
I have the below code which is a cache memory simulation.
I am getting the...
Ok so i think i've fixed the issue with the files opening. i put the whole path of the file in correctly but now the program is just not working with no error messages.
Any ideas why it might not be...
Note that the files i'm using are in my projects debug directory. I have also changed the file open process to
fp=fopen("input.txt","r");
and unfortunately getting the same error.
Any...
Hello Salem,
Thanks again for the pointer, it seems to have gotten rid of my error. I implemented a style similar to your first example. issue i'm having now is the program is crashing :frown:.
...
Hello All,
So i've revised my code quite a bit, trying to make it more efficient. I think i'm on the right track. One issue i'm having is on line 33, i'm getting an error saying too few arguments....
Hi Salem,
Thanks again for your tips i really appreciate it, let me try to work and and implement this in my code to see if i can wrap my head around it and get it functioning.
Quick question,...
Hello Salem,
Thank you for your comments and for your help, i see what you are saying regarding my issues. I've changed them based on your comments and the program does seem to be running better....
Hello Everyone,
I hope you are all doing well and thanks in advance for any help you can offer.
I have the below code which need to open a .txt file with addresses in the below format, then it...
Hello All,
I hope everyone is doing well. I have a program that is supposed to accept a list of addresses via input out redirection in the command prompt and then output them organized from lowest...
Hey Matticus,
Thanks again for all of your help, I appreciate the guidance and the patience.
I ended up taking your advice and started the program from scratch getting the most basic tasks done...
Ok so ive finished the code and its working perfectly as long as i dont try and have the user input Y or N to continue or End. When i do this i run into a lot of issues, most likely because im not...
ok so ive restarted my code from scratch, testing it along the way and also implemented a state machine which seems to be helping it run smoother. One thing im having trouble with is this. My whole...
Hello Matticus,
Thanks again for your reply. I see what you are saying about my isPunct() function. Unfortunately we arent allowed to use the built in functions so i have to write my own, this was...
Hello Matticus,
Thank you for your reply. Yea i tried to test it step by step. Im not receiving any error codes back. The main issue is its just not compiling correctly. if i enter 1+1 for example...
Hello Everyone,
I hope you are all doing well and thank you in advance for any help or tips you can offer.
So i've been working on this for quite some time and i've gotten to this point, i'm at...
Hello Everyone,
I found the issue on the last one, was a user error on my part.
Looks like im all good to go. Thanks everyone for helping me out and offering your advice, i really appreciate...
Hi Tony,
Thanks for the input, I see what you've done there and its similar to mine just much simpler and more compact.
I have one last question that i cant seem to overcome.
I want to use...
Hello,
I hope everyone is doing well.
With the awesome help from Laserlight i think i might have got it this time.
Let me know what you think.
So im working through it and it feels like its headed in the right direction. is this kind of what you are trying to say?
#include <stdio.h>
#include <math.h>
int main (void)
{
i don't know whats up with me today but i cannot wrap my brain around this. I see what you are saying, every time the state changes from 0 to 1 for example, print a newline then print the characters,...
First i would like to thank you for taking the time to help me, i appreciate it. I forgot to mention i am not allowed to use Structs or Arrays either.
With that said and after going over what you...
Hi There again, I think im on to something.
Only issue im running into now is multiple spaces after each other.
#include <stdio.h>
#include <math.h>
its also important to note that I cant use such functions as isalpha() or isdigit(). im strictly prohibited to getchar, putchar and loops.