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,554
by Red83
I was looking at a piece of code and trying to figure out how the preprocessor would expand it. I really can't seem to figure it out correctly. Could someone help me out? I just need a little explanation. I know it's not formatted very well, but I wanted to give exactly what I'm seeing. My guess is...
21-Feb-2006 08:59
by Red83 Go to last post
4 1,281
by siddu_roy
Hello guyz, Iam a new to c coding. I wanted to use "fmod" function to find the remainder when double is divided by an other double. The problem is that when Iam using fmod in such a case the remainder is equal to the divisor which should not be the case normally. I could not understand the...
21-Feb-2006 05:56
by alcoholic Go to last post
1 1,297
by dayrinni
EDIT: Err, CLOCK ticks, not click ticks for the subject title. I am trying to get the amount of clock ticks that takes a certain part of my program to run. For example: start = clock(); //code here end = clock();
20-Feb-2006 12:50
by davis Go to last post
1 2,241
by druid
Hello all, I have started using the aboive. i need to take the square root of a large integer. I am new to the library and do find the manual confusing. Apparently my problem is a C issue not a library one I have tried the following: mpz_t sum, sum2;...
20-Feb-2006 09:54
by davekw7x Go to last post
14 5,155
by druid
2 questions the below code is used to factorise large semi primes into its prime factors. When it runs for the number in it, and other larger ones, i getthe error 'abort trap' half way though the execution. Does anyone know what this means? I would like to use a debugger. I have heard gdb is the...
20-Feb-2006 09:36
by davekw7x Go to last post
4 3,907
by Radi0ShacK
Hi, i am writing a c++ socket application, server actually. and i want to accept only connections from the localhost and reject other connections. i ve wrote a piece of code that do this "and it works actually" but is there a better way to do this? if((newfd=accept(sockfd, (struct...
20-Feb-2006 01:01
by Radi0ShacK Go to last post
5 3,467
by venibala
In our application header and trailor to be added to message and sent of fixed length. The header and trailor are to be sent as constant hex values. so that it is interpreted on hex on another end...ex 00E7 - size 2 bytes. Tried formatting by assigning hex values to char array.but it is not...
18-Feb-2006 16:25
by venibala Go to last post
5 3,660
by druid
Hi I am trying to input a file (containing the 1st 100000 primes) to multiply together to create 1000000 squared semi primes. I am inputting as below but i seem to get a bus error on running it. Can anyone see why? int main(void){ FILE *fd = fopen("Users/andrewroberts/semiprime.txt", "w");
18-Feb-2006 13:35
by druid Go to last post
7 1,745
by jaininaveen
I am calling another application from my C program by using application's batch file but i don't know how to controle that application with my c program ex: I am calling windows media player by using wmplayer.exe batch file, after that i don't know how to play songs, everything should done through...
18-Feb-2006 12:40
by WaltP Go to last post
1 1,033
by jaininaveen
hi i don't know how to read data from html file? please help me i am using windows xp and firefox for browse
18-Feb-2006 12:00
by jaininaveen Go to last post
10 2,076
by Heresy
Currently, I am working on a program for a beginning C Programming course. I understand the majority of the content and have debugged as much as I can but am now at a loss. We are assigned a project that is supposed to get a number from -99 to 99 then output its name. I compiled the program without...
17-Feb-2006 18:55
by davekw7x Go to last post
4 1,465
by Coyne
Owkey, I found a lot of sources on the web telling me to include conio.h and then use the function textcolor(color). But Borland always gives following error while trying to run: Undefined symbol _textcolor in module opdracht.c. And when compiling he says : Call to function 'textcolor' with no...
16-Feb-2006 12:14
by WaltP Go to last post
4 3,588
by Red83
Hey guys. I need some help..bad. I have to write a program that creates a file of randomly distributed numbers. I have the functions figured out and some of the main(). Could you guys take a look at it and just try to steer me in the right direction. I'm just confused on how to get a filename from...
15-Feb-2006 23:17
by WaltP Go to last post
8 1,242
by Red83
I have a program that requires a user to input a number. The number determines how many random numbers(done by my program) will be displayed on the screen. The number input by the user will be of type int. Is it legal to use an isalpha() function to test and see if it actually is an int. Eg. if...
15-Feb-2006 23:00
by WaltP Go to last post
5 1,212
by Red83
Hey guys. I have as to write my code on. When I run this code, it doesn't let me enter the file. It just comes up with an error message that says that it can't find the specified file. It's interactive so it's suppose to ask what file to put it in,and also put some random numbers...
15-Feb-2006 21:25
by davis Go to last post
9 1,363
by jaininaveen
the big diffrence between binary mode file opening and normal text mode file opening?
15-Feb-2006 14:15
by davis Go to last post
3 20,284
by nomad311
hey guys could someone give me a quick example using openssl's sha1() function in c...i know the params but i dunno how to do it matter what i do i get an error with these unsigned char* and char* things. in the example please also so the declarations of the variables you...
14-Feb-2006 18:46
by davekw7x Go to last post
5 10,560
by nkhambal
Hi all, I am sure there must be some easy way to do it, but can someone let me know the way to read and interpret the chars or numbers as they are being entered? Like for e.g in case of CLI parser,a parser will ideally take a full command till user hits "enter" or "return" key.But what if i want...
14-Feb-2006 11:41
by dava133 Go to last post
18 7,830
by Red83
Hey guys. I have a program that I have written that is supposed to access a member of a struct and count up the grades of 5 students and print out the average of them all. I have a .h file and a .c file. I can get everything to compile good, but it keeps telling me the average is 0.000000. In my...
14-Feb-2006 01:00
by WaltP Go to last post
5 2,053
by Red83
Hey everyone...just a quick question. I'm given the expression: strlen(S+strlen(S)) Isn't there something wrong with this? I'm just not sure and need some advice. I'm just not sure what its value is. Thanks in advance for any help
13-Feb-2006 08:25
by davekw7x Go to last post
6 1,419
Post New Thread

Display Options Moderators
Showing threads 2001 to 2020 of 3014 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 08:19.

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