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,224
by Nakz0r
i wrote a code for an assignment that requires generating random numbers , " Write a program that uses random number generation to create sentences the program should use four arrays of pointers to char called article, noun, verb, and preposition. The program should create a sentence by selecting...
21-Dec-2012 23:20
by davekw7x Go to last post
1 1,670
by 1stFallen
I hope this is the proper forum for this...I maybe should have posted in a Unix forum but here goes... I was using a tutorial on gdb just to be able to better utilize it... When I compile a random program with the -g flag and then I invoke the debugger with the command gdb -q ./a.out Then the...
17-Dec-2012 08:56
by davekw7x Go to last post
1 720
by 1stFallen
When I compiled this basic program an ran it in fedora 13 running in vmware on a mac (10.6) It printed some really bizarre output to the terminal... #include <stdio.h> #include <string.h> int main() { char message; int count, i; strcpy(message, "Hello, world!");
17-Dec-2012 08:06
by davekw7x Go to last post
1 617
by lacake
Hey, can someone tell me what im doing wrong, as i cannot get the array to store the numbers i input. #include <stdio.h> #include <math.h> #define X 2 #define Y 25
08-Dec-2012 08:07
by davekw7x Go to last post
1 641
by sous
That is my code : #include<stdio.h> #include <ctype.h> #define MAXSTRLEN 200 typedef struct{ char arr ; int numchar;
05-Dec-2012 18:02
by davekw7x Go to last post
3 750
by BeckyEdwards
Hey, so im new to this forum and as part of a university project i have to code the determinant of a 4x4 matrix. I have the code pulling in the matrix from a txt file and dont know how to proceed from there. #include <stdio.h> #include <stdlib.h> int main() { int i, j; FILE *matrixfile;
30-Nov-2012 10:20
by davekw7x Go to last post
5 19,923
by FlashAsh99
Suppose I have something like... #define FIRSTSTRING "my string 1" ... char secondString = L"my string 2" char firstString = ??? Where there is ???, What do I put here to set firstString to the value of FIRSTRING macro, similar to how secondString is set.
18-Nov-2012 15:13
by misterblack Go to last post
5 4,862
by hufnagel
I am trying to make a 8 Number Puzzle. I have to make 3x3 table including numbers from 1-8 something like this: 1 2 3 5 6 4 7 8 Then the player will have to enter a number and that number will have to be moved to the blank space. So in the above case, 4 would be moved,...
10-Nov-2012 23:23
by davekw7x Go to last post
4 1,075
by fastest
Dear all, it has been a while since last time I posted something in the forum. However, I am facing something I am not able to understand thoroughly. Even though the problem is related to a rather big project, I will try to explain it using a simple example. I am writing a library for GNSS...
02-Nov-2012 12:09
by davekw7x Go to last post
9 956
by net_walker
Hello guys.I have a little experience in C and I want your help because I get stuck. Let me explain you what is my problem (I don't know if it is stupid) At the beggining,the intention of my code is to read from a file called data.dat, which has a form like this,where the first collumn is the...
01-Nov-2012 13:05
by net_walker Go to last post
14 1,343
by cvenkatasunil
Hi all, I wrote a program which handles so much data. Program takes data as input from a text file and makes some calculations and prints the data to a file. Problem I am facing is after printing 170 data points of around 10 variables it is getting intermittently getting strucked I am not able to...
01-Nov-2012 07:28
by davekw7x Go to last post
1 648
by Nakz0r
i wrote this code for a project in uni and im not getting any errors, 1 warning though and the outcome is always 0 no matter what input i use , i could use someone to read through it and point out where i failed. (Using Code::Blocks 10.05) Write a program that determines the day number (1 to...
31-Oct-2012 16:24
by Nakz0r Go to last post
2 21,017
by hufnagel
I want to have a program where you let a user input a string of characters and display it from the right one by one. An example if a user enters 'ABCDE' would be like this: E DE CDE BCDE ABCDE I got this by printing each character manually, but I don't know how to do this for a inputted character...
30-Oct-2012 00:49
by hufnagel Go to last post
2 726
by hufnagel
I am making two C programs which deals with file I/O. The first program makes a file called "rand.txt" in which 10 random numbers are generated and saved on the text file. The second program is supposed to take the randomly generated numbers from "rand.txt" and order them in an ascending order. I...
29-Oct-2012 06:33
by hufnagel Go to last post
2 741
by printf("Help")
Hi there, still trying to program a hangman game in C, but having little joy. I've reached a stage where I can get player 1 to enter a word that is stored in an array, but getting player 2 to enter a letter to guess is giving me problems. I can see no problems with the scanf function that I've...
25-Oct-2012 09:27
by printf("Help") Go to last post
2 1,111
by bugmenot im still new to programming , i referred in here and edit some .but there is error :( someone can help me ? #include <stdio.h> #include <math.h> void scan_data(char *op1p, double *num1p);
21-Oct-2012 07:17
by davekw7x Go to last post
1 763
by susandf
I have an existing C program that I need to modify. It was ported by another person to Visual Studio 2010 a couple of years ago but I'm now using VS 2012. The program makes use of sscanf and all documentation I've found says that all I need to do is include <stdio.h> and all will be fine....
17-Oct-2012 12:23
by susandf Go to last post
2 1,476
by shikha
i heard that in c we cant call any function before declaration of variables...if it is correct.....then plz tell me the reason....i have tried for calling of clrscr() before declaring variables this shows error in c but not in c++.......plz help me:roll:
11-Oct-2012 08:33
by WaltP Go to last post
2 981
by arsymizz
/* Can you check the mistakes? I am trying to sort the array. I certainly have problems in finding the total number of Index? Is there any good way to find number of elements inside an array in c? */ #include <stdio.h> void sortMyArray(int arrayToSort, int tIndex);
10-Oct-2012 17:58
by davekw7x Go to last post
1 801
by refaelok
hello My work environment is dev c ++ and I wanted to add the most basic graphics for small games in dos window. Once there was a library graphic.h but is there I wanted to know what we recommend to learn opengl or something else? .. Again mention, I'm looking for something very basic. I'd love to...
06-Oct-2012 00:26
by Mexican Bob Go to last post
10 1,438
Post New Thread

Display Options Moderators
Showing threads 61 to 80 of 3003 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 13:04.

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