15,551 Topics
| |
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. | |
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 … | |
please tell me how to find stack and heap address range in C programming | |
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) … | |
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 … | |
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 … | |
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 … | |
[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; … | |
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 … | |
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 | |
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..! | |
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 … | |
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 … | |
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=='+') … | |
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 … | |
anyone have maybe image rotation function implemented in c (included in gtk+/gnome) environment | |
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 … | |
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 … | |
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! … | |
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.. | |
Hi I want to know how we can measure C execution time by seeing the clock cycles generated from the assembly code. Thanks... | |
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 | |
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? | |
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 … | |
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 … | |
Sir, i do have this problem and im quite unaware about the variable declaration and the algorithm in creating this problem? thank you. | |
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"); … | |
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, … | |
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 … | |
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 … |
The End.