I'll have to google it as I have never heard of those terms before.
Type: Posts; User: Codegeek892
I'll have to google it as I have never heard of those terms before.
So I guess the moral of the story is learn SQL?
I am writing a contact book program in C that will run in the terminal. I am going to create a file to store the data separately, but have run into a few question areas:
1) It has occurred to...
So basically the function that sets the pointer to f is in the same file as f. Thank you so much.
I was reading earlier on function declarations and they began saying that a function that is declared static when changed can not affect other files in the program. Then it remarks that "a...
Well I am pretty sleep deprived right now, but I am pretty sure that the int on line 3 should not be there. Can you give a bit more info on your actual problem?
So I am trying to learn how to step through memory by writing simple programs and examining them in GDB. However there is a section in the assembly dump of main that I do not understand. Can anyone...
@AndiPersti
Thank you for the code. Using your code as an inspiration I modified my code slightly to be a little less bulky. Can you tell me what you think?
#include <stdio.h>
#include...
I am using the same book to teach myself C. Is there anyway I could get a look at the code you wrote as I have NO idea how you did this in less than thirty lines?
in other words
i=1;
while(i<=8){
if(i<5){
j=0;
while(j++=<i++)
printf("#");
printf("\n");
If it were me, I would have set a while loop to print all the lines but used an if-else statement to control how it prints.
Why can't you use the same technique but with decrementation after the "#" peak? Also, do you know how to use arrays?
Also, concerning the indentation. Everyone on this board wants to give and receive help with their programs. However, its only annoying when there is no discernable way to follow the progression of...
To give you the reasoning, you are trying to in your original code to tell the compiler that the string your are putting in should be interpreted as an address of where you actually want to put your...
I would say you have an array mismatch in dimensions. If it were me I would try actually doing out one full row in the call of scanf working through both dimensions at once (or just use a 1-D array)....
@stahta01 Thank you for all of your help. I will save the formatted version for future reference on formatting my code for others to read. Also I did not catch the "/5" mistake. I believe that may...
Alright. I've been working on it, but for some reason I can't get all of the empty space out of my indentation. I've tried to set it the best way that I can.
Just realized my indentation sucks. Give me a minute and I will fix it.
I have recently finished coding a random walks type program. In order to generate the randomness I used a time-seeded call of rand(). Now for the most part this seems to work fine, but every so often...
Fair enough. And thank you.
I am writing a program that generates a Random Walks pathway. In a part of the program I have a Switch statement nested in a While loop. If I use continue, it should bring me back to the beginning of...
If this were me, I would try to store the valid ID as an array(one of characters but integers are fine as well). It would be easier to write the loop this way and cleaner.
That's actually smart. I didn't think of that.
Make sure you either are working in a c99 compatible implementation or one that allows for variable length arrays.
Thank you memcpy for your response. I'm kind of starting to see this as I go through trying to write code for it. My book does teach about goto statements(as a part of the loops section) before...