| |
Rating
Thread /
Thread Starter
|
Last Post  |
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
|
3 |
7,922 |
|
|
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
|
4 |
346 |
|
|
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;
|
|
2 |
325 |
|
|
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...
|
|
2 |
333 |
|
|
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...
|
|
7 |
268 |
|
|
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...
|
|
8 |
439 |
|
|
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...
|
|
2 |
331 |
|
|
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?
|
|
7 |
886 |
|
|
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));" ,...
|
|
7 |
287 |
|
|
by zikmir
Hi there ! I'm an engineering student and i am learning C language. I really am enjoying my time, but there are some things i really need to ask since im on vacation and i cannot wait to attend classes ! (Yes im a neard).
I am aware that we cannot create "strings" in C. So using Arrays to store...
|
|
1 |
211 |
|
|
by swarna.bhatt
Hi
Below is small piece of code
#include <stdio.h>
#include <malloc.h>
int main()
{
int *iArrPtr = NULL;
|
|
1 |
286 |
|
|
by cesarmvbr
Hello, folks!
I have to generate random points (that represent circles of diameter = 1) without overlapping it each other. The RNG I use is the Mersenne Twister.
Does anyone know how can I do it?
Thanks in advance.
|
|
1 |
211 |
|
|
by Rsk08
Hi, im doing a program that converts from a roman number to a numerical number and im trying to write on the screen and also on a file that i created, the program shows no erros opens and when i enter the the numbers to convert it shows me the assertion error i think its related to the fprintf but...
|
17-Jun-2012 00:00
by Rsk08
|
8 |
589 |
|
|
by manit123
hi ,
I intend to convert an 8.3 folder or file name to actual.
In cmd.exe or command.com , the following works
dir /b "<argument>"
But in c program I get -1 return code
Here it is
#include<stdio.h>
#include<process.h>
#include<conio.h>
|
|
8 |
557 |
|
|
by swarna.bhatt
Hi Everyone ,
I am always confused with basics of data types .
Why does
float i = 10/100 results in i = 0.0000
and float i = 10.0/100.0 gives the expected result .(i,e 0.1)
|
|
2 |
256 |
|
|
by bravetanveer
hi all,
The way to dynamically allocate a 2D array is :
int a(*);
a=(int (*))malloc(sizeof(int)*5);
|
|
51 |
107,270 |
|
|
by Lucas Masalskas
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <errno.h>
#include <locale.h>
#include "myprog.h"
/* Content of myprog.h */
//51 + 1 for \0
|
|
4 |
412 |
|
|
by choco
Hello again!
I had to write a program that would reverse the digits of an int var.
First I count the digits of the given number,
then I'm using function rev to change positions and print result.
It looks like its working fine but
I have some problems with output.
If i try to reverse a variable...
|
30-May-2012 17:01
by choco
|
3 |
229 |
|
|
by choco
Program is doing its job but it ignores the scanf I use in order to answer y or n in restarting game.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int i,key,num,pr;
char dec;
dec='y';
while (dec=='y') { /*thats the restart game loop*/
|
30-May-2012 16:50
by choco
|
2 |
269 |
|
|
by samah
Hey :D so I'm trying to create a ternary tree from an array of strings, simple as that, but the program won't run. Now I'd like to know what am I doing wrong here maybe not in the way of thinking?
#include<stdio.h>
#include<string.h>
#define P 100
#define N 3
typedef struct{
int T;
|
|
2 |
423 |
|
|
by shyamraj
Hi All, I am new to this forum. I recently started C programming.
I'm writing a program to scan an array of integers, but doesn't seem to work properly.
Here's the code:
#include<stdio.h>
#include<conio.h>
int main(void)
{
|
|
2 |
309 |