15,540 Topics

Member Avatar for
Member Avatar for vizionary2012

Hi again im a new comer im from Jamaica, i have an assugnment due wednesday and im trying to make my project look proffessional, in C there is a keyword called struct and im familiar with using structures, i was just wondering is there anyway to search for strings or …

Member Avatar for Adak
0
100
Member Avatar for jadedman

do you know where to find GL/glut.h code? i only found gl.h, glaux.h and glut.h in some links. can you help me?

Member Avatar for od3_85
0
204
Member Avatar for commentator8

Hi all, I am new to C, and till now have only done python (a years worth at university), and am finding myself running into walls whenever i try to do seemingly simply stuff. One of the main issues in comparison is the lack of a interpreter and Ch is …

Member Avatar for rajuln
0
409
Member Avatar for shahab.burki

Hi, My code reads a string from a file. But it misses the lastone. can you help me? 1..Text File [CODE]102.15.12.10 15.14.106.6 1591 1592 bit_torrent[/CODE] 2.. Code [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct list_node{ char src_ip[15]; char dst_ip[15]; char src_port[4]; char dst_port[4]; char protocol[15]; }; typedef struct list_node node; …

Member Avatar for shahab.burki
0
96
Member Avatar for tquiva

Please bare with me. I am still a newb at programming and this may seem a bit confusing, but I have many comments and debug lines. This is an extremely long code, but could the advanced programmers out there please help me out? The goal of my program is to …

Member Avatar for WaltP
0
370
Member Avatar for tquiva

I am creating a program that calculates the average for a bunch of numbers. The first input is the number of values, and the second output is/are the numbers. For example, with the inputs of the following, I would get the outputs afterward. 5 10 20 30 40 50 Average …

Member Avatar for Aia
0
2K
Member Avatar for prade

hi, i have a code which i had done on turbo c++ ide with graphics in it...the nature of the code was such that i was able to read data & view graphics on the same window ...recently i tried winbgim on dev c++ but in this compiler the graphics …

Member Avatar for jephthah
0
90
Member Avatar for jgehlot09

I am compiling the code with icpc command and I want to change the color of specific text in the program. How can I do that?

Member Avatar for jephthah
0
81
Member Avatar for daveoffy

Hello, I have a program where after you login, I need it to re-design the whole window. Is there a way I can change the WndProc to make the code cleaner. Thanks. I have a case for the login if successful, so it will be put in there.

Member Avatar for strmstn
0
132
Member Avatar for jgehlot09

I am trying to write an function, which takes an string as input and do something and return the strings. Here Is a small try from my side. [CODE] #include<stdio.h> char algo(char n) { char result[15]; if(n=='1' || n=='2' || n=='3' || n=='4' || n=='5' || n=='6') { result = …

Member Avatar for Adak
0
93
Member Avatar for bohongtw

Hi there, i m working on dining philosopher problem , i wrote some codes but i keeps giving some error like : "/tmp/ccMEjOtr.o: In function `philosopherRun': betterDiningPhilosophers.c:(.text+0x7a): undefined reference to `pthread_mutex_trylock' /tmp/ccMEjOtr.o: In function `main': betterDiningPhilosophers.c:(.text+0x54d): undefined reference to `pthread_create' collect2: ld returned 1 exit status " even i try …

Member Avatar for jephthah
0
211
Member Avatar for mauryoung

ok i have this project that i have been working on to fin harmonic,powerful,amicable and perfect numbers i have a few but im at a road block right now and would love some assisstance. [B]POWERFUL NUMBERS[/B] [CODE]#include <iostream> using namespace std; int main() { int endRange = 500, var1, var2, …

Member Avatar for WaltP
0
225
Member Avatar for ssDimensionss

hey guys, as well all know, C rounds downwards, anyway, i'm trying to write a function that would make it round upwards, and got something like this: [code=c] int round_up(float x) { int y = 100*x; double z = 100*x-y; if(z>0) y = (x+0.01)*100; else y = x*100; return y; …

Member Avatar for 0x69
0
6K
Member Avatar for muqing

Hey everyone, I'm a program newbie, I'm writing a code for sorting numbers from a input file, qsort(array, array_size, sizeof(int), (*compare)(const void *, const void *)); since the array_size may vary for different file, I can't just use int array_size= some # How would I write this? Thank you very …

Member Avatar for JuhaW
0
80
Member Avatar for vizionary2012
Member Avatar for Ancient Dragon
0
54
Member Avatar for tquiva

I have two for loops that I would like to convert into while loops instead. This is the entire code of the program. This program simply asks a questions and determines whether the input is a yes or no based on the first character of the line. [CODE]#include <stdio.h> #include …

Member Avatar for tquiva
0
130
Member Avatar for rookie-C

I am busy to make a program that starts with a menu, where you can choose different options. One of these options to execute a program. for example : download software in an flash-prom with loader.exe loader idpartno.sr(where idpartno.sr is the code to be downloaded. Thanks for helping.

Member Avatar for jephthah
0
6K
Member Avatar for paradiseis

Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be produced. Each product will be produced in different production line. Ready products will be placed in a buffer area located at the end of each production line. Packaging workers will pack the products …

Member Avatar for jephthah
0
561
Member Avatar for vino4all

Hi, I'm a newbie............ Sorry, if I violate any norms. Is it possible to copy any audio file or image file using C language? I think it is possible. If anyone knows it please guide me. If you know the code, that 'll be helpful.

Member Avatar for jephthah
0
222
Member Avatar for prakakat

Hi everyone, I am a newbie in C programming. I need to make an implementation of gets() function from stdio.h, but I am not sure where to start. Please advice, any help is welcome. Thank you, Brian.

Member Avatar for Ancient Dragon
0
83
Member Avatar for prade

hi i have done a project with graphics(winbgim) on dev c++....suggest me a software for creating a front end for my project...should be easy to use.....thank u

Member Avatar for Ancient Dragon
0
84
Member Avatar for scrappy57

hi With the help of below program i try to print out different combinations of characters but when i compiled it i got some problem with it can anyone please help me with the errors in logic with the program [CODE]#include <stdio.h> #include <stdlib.h> char CharList[] = { 'a', 'b', …

Member Avatar for Narue
0
71
Member Avatar for rickymak

Hi, I don't understand the portions I put in bold in this function for converting Fahrenheit to Celsius. The texts are "FtoC." I am guessing "FtoC" is a variable; I really am confused about why "to" is in there. What does the paranthesis (float f) indicate? [CODE]#include <stdio.h> float [B]FtoC[/B](float …

Member Avatar for Narue
0
107
Member Avatar for Aparna Bharath

Hi, I have a python simulator file sim.py. I need to start, stop and restart this simulator from a C/C++ test file test.cpp. I tried using system( "\sim.py" ) in my test file. This starts the simulator but in the same window as test.exe. In this case how do i …

Member Avatar for Software guy
0
152
Member Avatar for sharathk60

Please inform me can we use C programming in all OS of Mobiles . Like J2ME, Symbian, I Phone, Apple..

Member Avatar for Ancient Dragon
0
134
Member Avatar for ShortYute

Basically, I formulate the website name using the version information ( IDE codeblocks SVN 6088, using autoversioning plugin ) and launch the website using *gasp* CMD... the problem is I don't want to launch a web page because ... i just want to check for updates... Also I don't really …

Member Avatar for ShortYute
0
136
Member Avatar for tomkaczocha

Hey guys, I've got a struct array in a header file and at least two pieces of code that access that array. How do I schedule access for read and write events to that array. Where do I place my mutex_lock & unlock code? Thanks for your help, Tom header …

Member Avatar for tomkaczocha
0
104
Member Avatar for tomkaczocha

Hi everyone, I'm trying to get the current time with this function and it's working fine, but, I'm getting the following warning when I compile with gcc 4.4.3 on Linux: [B]warning: incompatible implicit declaration of built-in function ‘strftime’[/B] I've tried using literals for maxsize and format, but that didn't help. …

Member Avatar for tomkaczocha
0
562
Member Avatar for jephthah

gcc supports an extended precison "long double" type typically 10 or 12 bytes but Windows XP always maps the "long double" to the standard double (typically 8 bytes) MinGW on windows XP thinks it has a 12-byte "long double" but in fact it only has the 8 byte support on …

Member Avatar for Ancient Dragon
0
200
Member Avatar for Xufyan

the program is showing the output perfectly but the value of [iCODE]a[/iCODE] is printing more than once. for example, if i enter range from 10 to 20 , the output should be 11,13,17,19 but the output is 11,13,13,13,17,17,17,17,17,17,17,19,19,19,19,19,19,19,19,19 how can i fix this ? [CODE]int main(void) { int a,b,c,d,f; clrscr …

Member Avatar for jephthah
0
144

The End.