| |
Rating
Thread /
Thread Starter
|
Last Post  |
Replies |
Views |
|
|
by WaltP
Guidelines for Posting Requests for Help
version 3.1
GIDForums is pleased to provide these forums to help you understand programming techniques and correct programming problems. Following these guidelines will help you post good questions with enough information that we can understand your...
|
|
1 |
6,247 |
|
|
by belludandy
hi,im writing a database in C
there's part of my code that will write string to the file from array.
and the prob pop up..
for(i=0;i<ElemCount;i++)
{
fprintf(fp,"%d%c%s%c%s%c%f",AtomicNum,':',ChemName,':',ChemSymbol,':',AtomicWgt);
}
when it read this line, it will not write to the file fp,...
|
|
0 |
940 |
|
|
by MrSmiley
Hey I'm Workin on a program that calculates age. My Problem is that I need to access the computer time and somehow compare it to the birthdate input. I tryed to use ctime, but it doesnt work the way i need it to.
ex:
the user inputs a b-date: 08/23/1943
the program has to calculate the date...
|
|
1 |
1,604 |
|
|
by freedomJoe
hello~
i am having troubles with the syntax of getting a substring in C. i am writing a function that takes in a string just like the one as follows... "01241983". Then i want to take the first two digits of this string and transform it with a switch statment into a word for the month. ...
|
|
1 |
1,071 |
|
|
by rjd72285
I was wondering how to keep track of how many times a word is generated using random letters.
I would generate say 1000 random letters, and wanted to know how many times the word "hi" or "hello" appeared inside these random letters.
|
30-Oct-2003 13:42
by Dawis
|
1 |
676 |
|
|
by freedomJoe
can someone help?
all im tryin to do is take the date in this format 03311983
and change it to this format March 31 1983 using a switch statment to change the month number to the word equivelent.
the two commented lines are the ones giving me problems.
the first one puts the first two...
|
|
0 |
1,347 |
|
|
by wolfgangaz
say i have an array with the following elements set: a = 1, a = 4, a = 2. i want to go thru all its elements and print them on the screen (or whatever). i know c has 'foreach', but the c installation that i have to use does not have 'contain.h' (i think 'foreach' is from that lib). could you offer...
|
26-Oct-2003 05:52
by Dawis
|
1 |
1,215 |
|
 |
by Ristar
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <windows.h>
#define file1 "data.txt"
FILE *read;
char a="A1";
char b="A2";
|
|
0 |
904 |
|
 |
by DustinDavis
I'm trying to get a simple hello world program to run as a cgi application on apache/linux. Just a simple old hello world program, no big deal. In the 'K Develop' compiler in RedHat 9, I create a new terminal c project. It compiles and I can run it just fine in the terminal, but I cant run it as a...
|
|
2 |
1,300 |
|
|
by calculus87
I am having a hard time trying to figure out something and was wondering if anyone could point me in the right direction,
ok....say I have x number of attributes
ex. ABCD
How could I write code to find every combination of the 4 letters but no two combinations have the same letters in...
|
|
1 |
1,135 |
|
|
by CoreLEx
Hello everyone,
New guy here. I've only just started learning C. I'm trying to write a program that tokenizes a string and then stores each token into a string (char). The token is a char pointer. Printing it to the screen without first dereferencing it is fine, as it displays the contents of...
|
|
1 |
3,587 |
|
|
by raymc
Hi all,
I'm programming a speech coder for analysis, but the problem is I have to write the code to work on a frame by frame basis,so for each frame, i dump the parameters into a file,which is grand.Now the problem after the first frame is gone and it comes to the second frame,it writes over the...
|
|
1 |
813 |
|
|
by arek
so im writing this small program in C and im having trouble with it. here it is:
/*WEEKLY PAYROLL OF MANAGERS AND N0N-MANAGERS
*NAME: Arkadiusz Jaworski
*CORE: 1.5
*DATE: 09/24/2003
*/
#include <stdio.h>
int main ()
|
23-Sep-2003 19:20
by arek
|
0 |
1,008 |
|
|
by tmike
Hi, guys...I have a question about keyboard input in C
let's say I have a program which allows user to type in command
commands are in the form:
command parameter1 parameter2...etc
since commands have different # of parameters..I'll need to use fgets or gets to get the whole command string and...
|
|
2 |
1,580 |
|
|
by Deimos
int Mask( int x )
{
} // Mask( )
This function should return an integer with a 1 corresponding to x's least significant 1 bit; read: x's rightmost 1. I can't use control structures, and I can only use the operands ! ~ | ^ & << >> and +. If anyone has any tips, I'd appreciate it.
|
|
1 |
864 |
|
|
by tmike
Hi, guys.....I have a question about keyboard input in C
I m writing a program...
which allows user to type command in the the prompt....then my program will do specified thing and so on
command are in the form: com parameter1 parameter2(or more)
for ex.
> move queue queue2
|
|
1 |
1,743 |
|
 |
by TheKoolGuy
ok, long bit of code cos i threw it in2 1 doc 4 ya, i get one error when compiled in VS.net and can't fix it lol. It is:
main.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "int __cdecl GfxStart(void)" (?GfxStart@@YAHXZ)
Debug/TDS.exe : fatal error...
|
|
0 |
1,637 |
|
|
by Ilya
Tell me please how to in C under DOS make proceeded not only single key pressing but specualy trace situation when a moving cursor key is pressed and beeing hold.
I've tryed it by the interruption but the following program hangs:
#include <stdio.h>
#include <dos.h>
#include <conio.h>
#define...
|
13-Sep-2003 11:30
by Ilya
|
0 |
1,297 |
|
 |
by kyle
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
int main ()
{
int i,j;
puts ("Trying to execute command CD ");
i = system ("cd c:\text");
if (i==-1) puts ("Error executing CD");
else puts ("Command successfully executed");
|
|
1 |
1,313 |