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,647
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 23,790
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 5,121
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,225
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 1,148
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,605
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 789
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 26,066
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 879
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 912
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,239
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 921
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,667
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 1,186
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 954
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,695
by refaelok
I wrote a very basic program Move the cursor with the arrow. The program works fine, just have one problem. Output to the screen "flickers", it is possible to cause the display to be smooth and still stay on sleep (100)? this is the code: //Refaelok #include <stdio.h> #include <string.h>
26-Sep-2012 15:51
by refaelok Go to last post
8 896
by sincrono
When errors appear at random, say, when the identical procedure sequences of a program crash only sometimes, first we doubt about the reliability of the code. But as in this example, I can't imagine how a simple initialization fails sometimes. Like the one below. The image shows an example of the...
25-Sep-2012 13:18
by davekw7x Go to last post
1 989
by printf("Help")
Hi all, trying to make a simple (or so I thought) Hangman game where 1 player inputs a word and the other then has to guess it. I'm trying to code something that records the number of letters in the word that player 1 enters, but the "i++" part in my while loop seems to be counting twice. You can...
22-Sep-2012 15:35
by WaltP Go to last post
4 1,062
by swarna.bhatt
Hi Everyone , Below is the small code . void main() { int n1 = 4; int n2 = 2; int s1 = n1/n2; float s2= n1/n2;
13-Sep-2012 08:10
by deepikasnv Go to last post
2 889
by buffett
I spent a week trying to find my mistake on the code as below. I cannot figure it out even though such a simple program! It gives me unexpected value only when j = 0 except when i = 0. When I cancel the Average part in the Average function, it returns right values as the sum. So I know the problem...
04-Sep-2012 01:43
by buffett Go to last post
2 1,066
Post New Thread

Display Options Moderators
Showing threads 81 to 100 of 3017 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:46.

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