Go Back   GIDForums > Computer Programming Forums
User Name
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

C Programming Language

Welcome to the C Programming Language forum.

Browse through the links below to find existing C Programming Language discussions - including source code examples, hints, tips, and tutorials. Example codes are syntax highlighted for your convenience.

If you have just registered or if this is your first time here, and if you wish to include example C code in your posts and messages, please paste them between [cpp] and [/cpp] bbcode tags. This will syntax highlight your C code examples within a post. Please refer to the details here. Also see: C++.

Post New Thread
Threads in Forum : C Programming Language Forum Tools Search this Forum
  Rating Thread / Thread Starter Last Post Reverse Sort Order 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...
11-Oct-2012 08:35
by WaltP Go to last post
3 9,542
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,...
15-Nov-2003 20:25
by belludandy Go to last post
0 2,049
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...
03-Nov-2003 13:00
by Garth Farley Go to last post
1 2,761
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. ...
03-Nov-2003 12:45
by Garth Farley Go to last post
1 2,075
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 Go to last post
1 1,489
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...
27-Oct-2003 09:45
by freedomJoe Go to last post
0 2,485
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 Go to last post
1 2,328
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...
12-Oct-2003 18:25
by DustinDavis Go to last post
2 2,520
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...
11-Oct-2003 09:24
by Garth Farley Go to last post
1 2,246
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...
07-Oct-2003 11:33
by Garth Farley Go to last post
1 5,760
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...
24-Sep-2003 03:07
by Garth Farley Go to last post
1 1,740
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...
19-Sep-2003 02:39
by Garth Farley Go to last post
2 2,860
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.
16-Sep-2003 09:56
by Garth Farley Go to last post
1 1,803
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
16-Sep-2003 02:31
by Garth Farley Go to last post
1 3,400
by TheKoolGuy
ok, long bit of code cos i threw it in2 1 doc 4 ya, i get one error when compiled in 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...
14-Sep-2003 05:19
by TheKoolGuy Go to last post
0 2,652
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 10:30
by Ilya Go to last post
0 2,479
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");
25-Aug-2003 11:43
by Garth Farley Go to last post
1 2,518
Post New Thread

Display Options Moderators
Showing threads 3001 to 3016 of 3016 Moderators : 1
Sorted By Sort Order
From The
Forum Tools Search this Forum
Search this Forum :

Advanced Search

New posts New posts More than 15 replies or 150 views Hot thread with new posts
No new posts No new posts More than 15 replies or 150 views Hot thread with no new posts
Closed Thread Thread is closed  
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:29.

vBulletin, Copyright © 2000 - 2017, Jelsoft Enterprises Ltd.