15,551 Topics

Member Avatar for
Member Avatar for deepugtm

I use Turbo C++ compiler.I want to include a photo through C program using file handling or something else.Do somebody have any idea for this.

Member Avatar for deepugtm
0
91
Member Avatar for real_castilla

Hi all, I'm a newbie with C or C++. I have a raw PCM file 16-bit (like a wav file but no header). I need to build a console application that can read the file, store data in an array, modify it (ex: add 100 to each value of the …

Member Avatar for rafi867
0
4K
Member Avatar for subhas.236
Member Avatar for death_oclock
0
105
Member Avatar for flipjoebanana

Hello, I am trying to as the title says within linux environment within my C program this is what I have so far: [code] int file_out = open(filename_var,O_RDWR|O_CREAT); if((child_pid = fork()) >= 0) /* successful fork */ { if(child_pid == 0) { /* Child process */ close(1); dup(file_out); close(file_out); f(execvp(command_var,command_args) …

Member Avatar for csurfer
0
76
Member Avatar for caroll

sir, pls help me to write a coding in c for algebraic reconstruction method..... 1 2 3--------->6 4 5 6--------->15 7 8 9--------->24 | | | | | | | | | 12 15 18 Its a three dimensional one in dat first row addng threenos get into 6 and …

Member Avatar for devnar
0
157
Member Avatar for EvilOrange

I have written this Parser for a formal grammar, to me it looks like it should be ok but when i tried to run it a Segmentation Error comes up - i have run valgrind its got leaks but it does come up with an error. Can anyone spot what …

Member Avatar for mad93
0
123
Member Avatar for RyFo18

So I'm trying to create my first ever Makefile and have run into some issues. My program is broken down like this: filter.c - contains main() includes.h - #defines io/file_io.c - contains some functions that main() uses io/file_io.h - included in filter.c and file_io.c Hopefully that is clear enough. Now …

Member Avatar for RyFo18
0
135
Member Avatar for masterarcher

[code=c] void EvaluateHighScore(top10scores ListToBeChecked[], unsigned char Time) { unsigned char RankTen = ListToBeChecked[9].TimeTaken, loopcounter=0, NewRank=0; char UsersName[USERNAME_LENGTH], MoveName[USERNAME_LENGTH]; if(Time >= RankTen) printf("\n\n\tYou Took %d Seconds To Complete The Quiz Well Done\n\tUnfortunatly You Didn't Get A High Score\n", Time); else { printf("\n Please Enter Your Username: "); fflush(stdin); gets(UsersName); for(loopcounter=0; loopcounter<TOPTENSCORES; …

Member Avatar for ianvdl
0
106
Member Avatar for riahc3

Hey The title is a bit confusing so Ill explain. I have a function that returns random values from 0-4 for the computer (which has numberofplayers). Lets say number of players is 2. One is me and the other is the PC. I (myself thru a scanf and I being …

Member Avatar for Salem
0
182
Member Avatar for aashaw

Hi all, Can anyone send me the Apriori Algorithm implementation in C and a dataset so that I can able execute and learn. Your help is greately appreciated. Thanks, Arthur

Member Avatar for Salem
0
103
Member Avatar for anu123d

Greetings, how can i write a search program to search a user entered string saved in an array, in a text file using File Operations in C. Specially using fseek() function. Plz reply, Thanks in advance..!

Member Avatar for Narue
0
83
Member Avatar for Vms100

I'm developing a mod for Quake2. When the level is changed, some stats are cleared and some are written to save game file. My mod has a level system that affects the power of weapons, etc things. But, then i encountered a problem. I want to save my character data …

Member Avatar for Vms100
0
91
Member Avatar for thorster

Hi! I am new to C and need some advice here. I have a solution to this problem but I still think there should be a way to do this more efficiently: I have a file where I have stored null-terminated strings including the '\0' char. I now want to …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for lonely_girl

HI I need a little help with this program [code=c] #include<stdio.h> #include<conio.h> void main () { float num1,num2,result=0; char ch; clrscr(); printf("\nEnter 1st num:"); scanf("%f",&num1); printf("\nEnter 2nd num:"); scanf("%f",&num2); wrong: printf("\nEnter + for addition" "\nEnter - for subtraction" "\nEnter / for division" "\nEnter * for multiplication\n"); scanf(" %c",&ch); if (ch=='+') …

Member Avatar for lonely_girl
0
137
Member Avatar for orthographer

hey..i am a novice when it comes to C programming coz i am a bio-engineer..however, i landed a job with an It giant, and we have been allotted a project(for practice's sake though!) by them on a trainee level..ofcourse, it involves a normal-login program..i was able to figure out most …

Member Avatar for WaltP
0
206
Member Avatar for simonrangus

anyone have maybe image rotation function implemented in c (included in gtk+/gnome) environment

Member Avatar for death_oclock
0
59
Member Avatar for orthographer

As some of you would already know, I made a program which accepts login and password from users and shows "*" instead of actual password characters. I know the program is grossly incorrect but I still tried to apply whatever I picked up using books and example programs. *****DISCLAIMER- I …

Member Avatar for orthographer
0
321
Member Avatar for ceal21c

Hello All, My name is Jason Woodside. I am new to this site and new to C\C++. Thank you for having me! I am experimenting with C\C++ in particular "Blaze C" and trying to program a handheld PC. I am receiving compile errors when using header files whose functions are …

0
36
Member Avatar for anu123d

Project Name : " Employee Information System " I am trying to add a new department name in "dept.txt" file. using file Operations and funcctions defined in String Header file in C Problem is in fnAddDepartment() function. When i run program in VC++ compiler, it says : Debug Assertion Failed! …

Member Avatar for Murtan
0
216
Member Avatar for s-a-n-d-e

i need to merge two arrays..assign them to another array..but in the third array..no similar values shall be printed..i badly need help.. a big big thanks in advance..

Member Avatar for Salem
0
172
Member Avatar for sarawilliam

Hi I want to know how we can measure C execution time by seeing the clock cycles generated from the assembly code. Thanks...

Member Avatar for Narue
0
197
Member Avatar for drjay1627

I'm working in a project and part of it is to do a small encryption program. W can use substitution encryption where each character is substituted by another pre-determined character. Can someone kindly help me with an algorithm. I just can't think any more! Thanks drjay

Member Avatar for drjay1627
0
158
Member Avatar for priyankasoni

can i know what does 'occurence of characters & special characters like \n,\t ,white spaces given text input' mean . can i know the code for writing this program?

Member Avatar for Nick Evan
0
70
Member Avatar for hsoni007

How can i make a chequebook balancing program of an user’s account? It will use getline() to read a line, which will contain either the word [B]“withdrawl”[/B] or [B]“deposit”. [/B] The next line will contain the amount of the withdrawl or deposit. After reading each pair of lines, the program …

Member Avatar for riahc3
0
199
Member Avatar for me_ansh

The man page of 'sscanf' says: "EOF is also returned if a read error occurs, in which case the error indicator for the stream (see ferror(3)) is set, and errno is set indicate the error" I am confused that what kind of read error may occur if sscanf is reading …

Member Avatar for me_ansh
0
89
Member Avatar for Rein Valdez

Sir, i do have this problem and im quite unaware about the variable declaration and the algorithm in creating this problem? thank you.

Member Avatar for Rein Valdez
0
113
Member Avatar for akim_atl

1 of 25 The ______ of a function take(s) information into the function from the calling statement. local variables input arguments output arguments prototype purpose 2 of 25 What is displayed by the C statements below if the value input is 3? scanf ("%d", &n); if (n = 5) printf("Equal\n"); …

Member Avatar for WaltP
0
266
Member Avatar for urufukiba

im trying to make a program that reads a text file in the format: 2 polygon 3 90 90 90 90 90 90 polyline 2 12 80 30 15 (not the real numbers obviously) and have the program read how many things, what type, how many points for that type, …

Member Avatar for urufukiba
0
92
Member Avatar for niall_heavey

I am trying to make a database of images. The purpose of this is for Robocup soccer tournament. When the robot sees an image while playing it can then refer to its database of images and match its image with one in the database. The database image should have properties …

Member Avatar for Nick Evan
0
78
Member Avatar for taichou

hi, it's me again, uhm i have this program for bantumi game, this program is running, but there are some problems i am encountering whenever i execute it.. hope you understand my program.. [code=c] //this is a two player bantumi game,the user will enter the position in the board game …

Member Avatar for geemicah
0
131

The End.