if i understand the question correctly, you want to scan the user's input, and then create and open the file using the input you just scanned.
so the logic of your program should ask the user for...
Type: Posts; User: Engineer
if i understand the question correctly, you want to scan the user's input, and then create and open the file using the input you just scanned.
so the logic of your program should ask the user for...
I would recommend double checking your preferences and the type of object you are trying to build. I am pretty sure C++ Builder will have an option to generate an executable file, you just have to...
Your main.c file has to include all the headers of the functions you are trying to use.
I don't really have the time to debug your code, but after looking at it I can say the following:
1) You are blocking all the signals except SIGALRM:
sigemptyset(&sigset);
sigaddset(&sigset,...
the -lm option tells gcc to link (that's what the 'l' stands for) your code with the "math" (this what the math library is called) shared library. It's almost like DLL's in windows...
Chocolate Chip cookies.... Uhmmm, Yammmy....
Wow, I am impressed!!!
All this because of something I said...
If I understand your problem right, you are trying to concatenate non-string variables to a string. If this is correct, I would suggest using sprintf(). It works exactly as printf(), with the...
Thought of something to add:
Just think of the system() function as you being in a command prompt window or a system terminal.
In Unix for example you would type "ls -al" to get a long listing...
You can pass whatever system command you want with the system() function.
As a parameter you pass it the command:
system("cd my_directory"); // will actually execute that command in the system
Ooops, my bad!
The structure name is not "time_t", it's "tm".
In order to get the full picture you need to have some networking experience. I am assuming that you now what TCP/IP is and how it works.
Let's take Nortel's IP phone for example: You pick up...
I agree with Agrajag. But if you need to get started on this then you should probably start by looking into what functions like time(), gmtime() and other "time" functions do. And also on how to...
If you don't want to use linked list a cheap and dirty solution would be to create an array of same type of structures which is bigger by one than the original, add the new structure to the new array...
in that case I would suggest google.com and the frase "C++ tutorials" in the search engine...
Just though to share this with those of you who are into network programming:
According to every network programming resource I have seen TIME_WAIT state after closing a TCP connection is a normal...
One question comes to mind - did you think of hiring a private tutor? Explaining all this to someone who either has a problem with what the book says, or has a problem even reading a book would take...
I beg to differ...
malloc() only takes the length of the memory to allocate:
malloc(sizeof(int));
when calloc() takes the number of elements to allocate and the length of individual element:...
Just thought it might be intersting for some:
NSA (National Security Agency) distributes a modified version of RedHat Linux with a lot of security enhancements. It is called SELinux and it can be...
Just remembered, if you don't have to use MS Access, you can use MySQL instead. It is freely available on the net, with source code, free API guides and a lot of examples on how to use. And I also...
Or you could try looking up some Access API functions on the internet or maybe some examples to work with Access using SQL. You will need to know SQL for sure. Statements like INSERT and UPDATE...
I am not too sure I understood your question (you see, smoking too much weed can do this to a person) but here goes...
ex.1
int x = 0; // the value of x is now equal to 0
x = 4; // value of x...
Don't mean to be rude here, but why are you even doing it this way? Why not use calloc() to allocate a multi-dimensional array?
But speaking of your problem:
I am pretty sure that what is...
You can define anything you want on the borland bcc32 compiler command line using the -D flag.
Example:
Source:
#ifdef __DEBUG__
// some code
#endif
What language are using? Doesn't look like C nor C++ to me....