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,439
 
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 704
 
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 22,824
 
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 794
 
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 824
 
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,167
 
by bugmenot
http://i.imgur.com/jZoDc.jpg?1 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 821
 
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,562
 
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,069
 
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 878
 
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,564
 
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 834
 
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 913
 
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 981
 
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 796
 
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,004
 
by sega16
Hello I have noticed a market shift to mobile phone / entertainment devices (they are much more than phones now a-days) and the only compiler that I found for the iphone xcode is mac only I do not have a mac they are way to expensive and I do not like using a mac. I was wondering what arm compiler...
02-Sep-2012 15:35
by sega16 Go to last post
7 885
 
by refaelok
hello. I can not deal with this exercise and I would be happy if you can help me. Exercise: Write a function that accepts an array size NxN. The function returns the maximum amount of sub-array size at least 2x2 squares in the array provided. this is what i tried but it dosn't work: int...
29-Aug-2012 03:46
by refaelok Go to last post
8 1,146
 
by babibabiboo
Hey guys I have to write a program that calculates the angle of a projectile motion using speed, initial height, and distance. The angle must be within the range of- arctan(speed^2/gravitational_acceleration*distance)<or equal to angle<or equal to 90 degrees. The hint was to use the bisection...
22-Aug-2012 08:23
by steamerandy Go to last post
2 1,090
 
by knockout_artist
Hello. I have buffer with yuy2 data I need to save it on local drive, one frame only. Do I need to convert it first to rgb or some thing ? I saw this png_write_row() function, would it take care of yuy2 format it self? Any ideas?
17-Aug-2012 07:09
by davekw7x Go to last post
7 5,586
 
by refaelok
hello im new here. im a student for software engineer. i tried to write this program that found digit in numbers in the mat and make dynamic array for the numbers that he found. the program crush in the line "free(arr2);" and sometimes it crush in line "result=(int*)malloc((size2)*sizeof(int));" ,...
16-Aug-2012 23:59
by refaelok Go to last post
7 992
Post New Thread

Display Options Moderators
Showing threads 101 to 120 of 3032 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 08:37.


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