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,543
 
by swarna.bhatt
Hi , I am stuck with few doubts regarding arrays and pointers. void main() { int arr = {0,}; int *ptr; ptr = arr;
09-Apr-2013 01:23
by swarna.bhatt Go to last post
6 1,339
 
by noob
I have a big problem, my school program threw me into micro controllers without giving me a formal class on programming. I learned a little assembly but that's it. The project is to be done on the MSP430 microcontroller. I can acquire most any extra chips LED's or any other components to help with...
06-Apr-2013 05:24
by Mexican Bob Go to last post
15 1,609
 
by devilishruby
PGM File Hello, i use two following functions to read a PGM file format(named pic1) and write it to another one(named pic2). but i don't know why the pixels image in (named pic2) being disarranged and moved from the correct position and the photo changed . How can i solve this problem?
27-Mar-2013 21:20
by davekw7x Go to last post
3 17,672
 
by swarna.bhatt
Hi, I want to understand pointer to an array concepts . void main() { int arr = {1,2,3};
21-Mar-2013 23:31
by davekw7x Go to last post
1 805
 
by 1stFallen
I am trying to write a program in C that is to simulate the soda machine in one of the buildings at my school (yes this is a homework assignment). The input is to consist of lines containing the following: quarter, dollar, pepsi, dew, diet, pepper, mist, water, exit. The input represents the...
18-Mar-2013 18:56
by 1stFallen Go to last post
3 1,178
 
by tahir
My program is compiling but i cannot got the accourate result because i think so there is some mistake for returining the function value,Please correct it and send back to me. #include<stdio.h> #include<conio.h> #include<string.h> #include <cstdlib> #include <ctime> #define ROW 10 #define COL 10
18-Feb-2013 07:42
by davekw7x Go to last post
4 1,817
 
by afernando14
Hello, how are you all? , I've been trying to do this program in C: Write a program that opens two files. The file names must be obtained through the Linux command line. Have the program print line 1 of the first file, followed by Line 1 of the second file, the first file line 2, line 2 of the...
13-Feb-2013 23:39
by davekw7x Go to last post
3 779
 
by Tryingtolearn!!
For a school work, I have to invoke this function to the main function but I am at roadblock. I have to: // gets an integer from the user and returns it // make 3 calls to this function: // get the length of the rectangle from the user and return it to main // get the width of the rectangle...
09-Feb-2013 09:26
by davekw7x Go to last post
1 929
Lightbulb
by aijazbaig1
Hello there. Has anyone here attempted to cross compile the gnu C library (Glibc)?? 8) Well, I am trying to do just that to accomodate a change we made to the underlying Linux kernel. The first thing is to configure the build process by running the configure script found in the base directory...
29-Jan-2013 09:32
by Mexican Bob Go to last post
5 852
 
by grf
Hi, i have some problems to assign the numbers in the file as the value of variables. I have the code to read the file, but i don't know how to assign the values. My code is : int time; FILE *archive; char caracter;
16-Jan-2013 09:26
by davekw7x Go to last post
1 726
 
by refaelok
hello. I exercise and I do not understand the concept of the solution. Exercise wish to write Recursion function int check_zone (int matrix , int x, int y). The matrix consists only of 0 and 1. Where 0 is a wall and one is beyond. Function takes coordinates and prints the number of options to get...
10-Jan-2013 17:17
by davekw7x Go to last post
1 755
Post
by yogesh4ever
Hello, I have written c code for string reversal. Program compiles without any error. But it gives runtime error. I am not able to catch the code in my error, Please help me. The code is as follows.
08-Jan-2013 12:04
by yogesh4ever Go to last post
2 792
 
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,999
 
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 825
 
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 742
 
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 730
 
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 880
 
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,055
 
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,023
 
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,179
Post New Thread

Display Options Moderators
Showing threads 61 to 80 of 3014 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 10:05.


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