GIDForums  

Go Back   GIDForums > Computer Programming Forums
User Name
Password
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,601
 
by ktreddy
How to convert time assigned with a string "1/7/2004 1:14:00 PM" to UTC format (no of seconds since 1970)which looks like 1073738469947
13-Jan-2004 05:42
by Garth Farley Go to last post
2 11,384
Angry
by Gimei
Help am a C newbie. Could someone please tell me how to convert an integer into a string and evaluate. like 5 to "five". I am using Turbo C
12-Jan-2004 10:42
by Garth Farley Go to last post
1 1,556
 
by Tony
What x = n++; would do is assign the value of n immediately to x, and then increment n by 1. What x = ++n; would do is increment n by 1 immediately, and then assign that new value to x. I'm still not grasping this fully. From what I gather the resulting x is going to be the same value either way,...
04-Jan-2004 20:10
by Tony Go to last post
2 2,082
Unhappy
by gmn
there must be a few mathematicians here.. been asked to write a program to calculate the sin of a number without using math.h. I've done the program now but it's supposed to be accurate to 6d.p. - which determines how many times you use the taylor series (how many terms to include). The handout...
13-Dec-2003 05:39
by gmn Go to last post
2 1,564
Question
by gmn
hopefully this will be an easy one for somebody....... i can get this working using c++ but not with c (which i never learnt) and i need this as part of an assignment. my problem is that i cant seem to make scanf behave line cin, all i want is for the user to set value x (long) before it is used...
18-Nov-2003 02:12
by gmn Go to last post
1 2,516
Question
by TalShiar
I am writing a multi-threaded program which uses a shared memory struct contained in a separate .h file to pass information. There is one main program but the other threads are separated into other .cpp files for simplicity. The problem arises when I use CreateFileMapping and MapViewOfFile in the...
16-Nov-2003 20:32
by TalShiar Go to last post
0 1,701
 
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,080
 
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,783
 
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,095
 
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,509
 
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,503
 
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,346
Angry
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,537
 
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,270
 
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,784
 
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,767
 
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,886
 
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,822
 
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,428
Question
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...
14-Sep-2003 05:19
by TheKoolGuy Go to last post
0 2,686
Post New Thread

Display Options Moderators
Showing threads 3001 to 3020 of 3022 Moderators : 1
Sorted By Sort Order
From The
LuciWiz  
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 07:44.


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