Thanks, that clears up alot and my issues are resolved (for anyone who may be reading this thread with a similar issue).
Type: Posts; User: Derek Lake
Thanks, that clears up alot and my issues are resolved (for anyone who may be reading this thread with a similar issue).
Hey. Sorry for the late response. I haven't been able to rid myself of my dependency of bzero() calls, but I have realized where I went wrong. It was in performing operations on response, a pointer....
This is my first project in a networks class. I am sorry if my code is attrocious, I'm still trying to wrap my head around socket programming.
I have developed my client-server programs so that I...
The ? : operators comprise a "Ternary Conditional" Hope that helps!
I was going to edit my last post but for whatever reason it won't let me. I need to update my post to let you know that there is a sticky post in this very forum to answer your question as far as...
Hey Andersonsacanno.
As std10093 has said, C is commonly evolving and many commonly used conventions are changing. There are two big families of standards POSIX and ANSI. I would look up on these....
Hey, Tanu.
I would make sure that you have added all source files to your current project if you are using Dev. I'm not sure what you mean by "with GCC", I didn't know you could get GCC...
Ah, I figured. :)
That's ok, just so you know the code I put up compiles and works logically. Now you just need to see my comments and write your account() function.
By the way, I wouldn't put your...
int main()
{
int A = 0;//Your variable needs to be initialized, always. If you don't set it to 0, it will be whatever value is stored in the memory A is currently using (unless your compiler...
No problem :)
A great alternative to gets is fgets. std10093 has provided a great link on the problems inherent in gets, and here is a link on how to use fgets from this site as well:
FAQ > Get a...
Hey, YannB. Here is some sample code to take a string and separate it into words, or "tokens."
#include <stdio.h>
#include <string.h>
int main()
{
int i,garbage;
char *tokenPtr;
Ah, ok. I am trying to only offer the advice that I'm sure is right, but I have a lot yet to learn! I think it is funny because every time I have seen that number in the parenthesis it has seemed to...
Hey, terminusest.
Can you link us to the BASIC code for this?
I'm looking into some articles on solving Schrodinger's equation using the finite method. This is some complex stuff! What is your...
Hey shansajid.
A couple more tips:
Instead of using getch(), you can make a garbage variable and scan it in. This will put a prompt to the user so the program doesn't automatically exit.
...
Ah, good call laserlight. Come to think of it, case switch is just a specialized form of an if statement. Utilizing arrays by element number would control the flow of the code without using control...
Hey, facebook1978200.
A great way to select an option based on an integer (0, 1, 2, etc) is using the "case switch." I'm not sure if this is exactly what you're looking for but it surely works...
Hey, trial123.
Firstly, regarding "If you have main() or printf() in there you are not doing what I am asking." What this is referring to, I believe, is that you are not to make an executable...
Hey, Arthur91. I have signed up here recently too. I don't have too many tips to give but I also noticed that you were passing a pointer-to-pointer in your memcpy(). I notice there are comments in...
Hey, thanks for your swift reply again Salem - you helped me before as well!
Okay, I haven't put the free function in yet , but that is coming, I realize it doesn't have it.
About making 2^n...
My program will sort a .dat file with 2,000 integers just fine, and write it to a text file just fine as well. It will also sort 10,000 integers with no problem whatsoever. But when I try to sort a...
Thank you for your time Salem! This worked.
Hi, I have included ample explanatory comments in my code, so I think it will be most efficient just to post it to you:
#include "Queue.h"
int main(void)
{
QueueT Queu;
QueueT...
Thanks, all. I have Visual Basic 2010 full. I'll test this.
I do not believe so. That would set the title of the console window of your program, correct? I don't want that, if that's the case - and I tried to input it in my code to test, it would not compile,...
How do you do it? I refer to the process description listed in the "Processes" tab of the Task Manager in Windows 7 specifically, although one that would list in XP or newer OS would be ideal also.
...