Below is a small demonstration on an issue I am having in a much larger program. The error I am getting from gcc is
I have marked line 11 with /* error */
It has been quite a while since I...
Type: Posts; User: gsoft
Below is a small demonstration on an issue I am having in a much larger program. The error I am getting from gcc is
I have marked line 11 with /* error */
It has been quite a while since I...
Do you mean dum as in acronym?
DUM - Database Upgrade Manual
DUM - Desktop Unified Messaging
Im sure there is more but thats all I got. Or do you mean dum as in dumb, if so Id suggest making...
Depends where did you see count++? Usually a variable is initiated within a function or passed to a function. count is probably initiated somewhere within the function.
As for printf and sprintf
...
Before I get started I think I should say this is for a part of a project.
Ive got to choose 2 Server Operating Systems done. Now I need to specify system requirements and well for Windows 2k3...
No. If you call the function from main yes, if you call the function from another function than no.
Also main should be int not void
int main(void)
{
return 0;
}
I know Firefox accepts an argument as the url to go to so
system("/path/to/firefox http://yourdomain.com");
Could work.
Thanks.
Ive decided to redo the function and do Memory Allocation within the function. The new prototype is
char *replace_str(char *find, char *replacement, const char *string, char *destination,...
What Compiler you using I got choked by warnings and errors.
pow requres doubles
double pow(double x, double y);
Also your getInput function will require to use the int inputs as...
Ive seemed to have found it
/* Free compString */
free(compString);
return newString; /* All Possible strings to be found have been we need to kill this...
Ive been creating my own extended string library one of the functions is a str_replace function.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *str_replace(char *find,...
No it doesnt work I accidently deleted it from the original code when experiementing. Why, well mainly because in some cases being able to use puts and scanf would be good however I dont think there...
Ok im just starting to learn the ncurses api and have been experimenting
#include <ncurses.h>
int main()
{
initscr();
printw("Hello World");
If its an entire string why not just use strcpy? It basically copies each character one at a time than adds the null character on the end.
Ok im a bit of a blank on your first bit, you need to know where your going to copy it. However yes you can move the compiled program away from the source.
Your using windows? I think you can...
You can run it on the command line and not require the extra code to keep the console open.
Another benefit would be with TEXT you have the FULLTEXT search capabilities.
scanf allows you to go over the allocated buffer something I dont think you should do. Scanf() is good but I wouldnt use it for strings.
Try this you still need to modify a few things like taking the \n out of the string firstname and lastname and not use fflush to clear the stdin buffer
#include <stdio.h>
#include <stdlib.h>...
Also isnt it %f instead of %1f in the scanf's
Check your network Connection.
Check your Computers Name. Right Click My Computer > Indentification (I think)
If your only including "stdio.h" you wont need to link to the Math library. Well to help debugging what errors are you getting and what is the code you have?
Ok how do I change the IDE Channel, would that just be BIOS settings?
Ok hardware isnt really my thing, but I know a bit to get by. However I have a feeling my HDD died in one of my older computers.
HDD = Seagate ST320410A (20gb)
The computer was acting really...
No offence but I cant stand websites that have navigation like that, so i strongly dislike.