19,876 Topics

Member Avatar for
Member Avatar for cranfss

(#143734) 915186754 SendMessage: sender 1, receiver 2, group 1000000000, type 24050, length 384, source 0 (#143781) 915248646 ReceiveMessage: receiver 1, sender 3, group 1000000000, type 24050, length 256, source 0 (#143658) 914941174 Collective: process 1, collective 11, group 1000000000, root 0, sent 0, received 0, duration 242440, source 0 (#143657) …

Member Avatar for vijayan121
0
137
Member Avatar for fskhan

Hello, Hi I Need To Flip The Bits In An Integer (not Toggle Them But To Actually Get A Mirror Image With Respect To Bit Positions). The Problem Is That I Am Taking An Input Data In Integer Form From A System But It Places The Msb At 0th Position …

Member Avatar for jephthah
0
3K
Member Avatar for wollacott

A company pays its employees as managers (who recieve a fixed weekly salary), hourly workers (who recieve a fixed hourly wage for up to the first 40 hours they work and "time- and a half"-1.5 times their hourly wage-for overtime hours worked), commission workes (who recieve $250 plus 5.7% of …

Member Avatar for jephthah
0
133
Member Avatar for atish00

How to make c++ fullscreen (sort of) in vista :- [URL="http://img167.imageshack.us/img167/4783/45870184ss2.jpg"]http://img167.imageshack.us/img167/4783/45870184ss2.jpg[/URL] Your screen should look like this :- [URL="http://img518.imageshack.us/img518/6136/sshot3td7.png"]http://img518.imageshack.us/img518/6136/sshot3td7.png[/URL]

Member Avatar for atish00
0
287
Member Avatar for newport

I'm trying to make a program that asks the user what he/she wants to do, but when invalid inputs are entered, the program does not tell the user right away. Also, the sentinel value does not work. Thanks. [code] #include <stdio.h> int main () { int selection; float sum, difference, …

Member Avatar for rhish.franks
0
198
Member Avatar for Tommms

Hello everyone! I have a specific C question that I have not been able to solve. How do you count the number of particular numbers inside an integer variable? For example: int variable; The user inputs 22222 into the variable. The program displays "You entered five twos". How do you …

Member Avatar for rhish.franks
0
219
Member Avatar for loimarie

Hi to all viewers and members! can anybody help me or gave me any idea about parallel port interfacing that accepts input from a switch instead of keyboard and that input will be displayed in a seven segment.just a sample c program that has an input(inport) and ouput(outport) through the …

Member Avatar for Colin Mac
0
337
Member Avatar for haroonob

hi I have to made a program which read all blocks of hard disk and after reading give me hard disk capacity and its bad block i C language. Kindly tell me how can i read hard disk blocks and how i can know this block is bad or ok …

Member Avatar for Ancient Dragon
0
100
Member Avatar for dinosaurclover

Can one of you geniuses out there help me please. They say that compiling and running hello world is the hardest bit. They're right. I've got debian on my laptop. I read a so-called tutorial that reccomended gcc hw.c OK. So I get a file called a.out. Allegedly an executable. …

Member Avatar for plgriffith
0
144
Member Avatar for wollacott

can anyone help me finish my program please. thank you [code=c] #include <stdio.h> #include <math.h> int main() { int product; float product1 = 2.98; float product2 = 4.50; float product3 = 9.98; float product4 = 4.49; float product5 = 6.87; float quantity = 1; double unitprice; float result; double total; …

Member Avatar for Aia
0
114
Member Avatar for nukem

when editing windows XPs explorer.exe using C:\windows\70 exporer.exe in safe mode in MSDOS where can i find START part Like in windows 98 its in the line 2390, but where can i find it in XP.

0
55
Member Avatar for peteefb

[code=c] //* By peter blatcher *// #include <stdlib.h>; #include <stdio.h>; #include <math.h>; float trap(float b, float Xo, int n); float integ(float X); int main() { float Va, Ve, difference, n, area, Fao, kCao, y, X, a, b; char c = n; n = 2; Fao = 0.4; a = 0.8; …

Member Avatar for Ancient Dragon
0
147
Member Avatar for jbd

Hi I'm adapting some code I've written using 2d arrays (to represent matrices) to handle large arrays such that double matrix[][] goes to double **matrix and then I'm using malloc. It seems to work fine for part of my program up to where I have to find the matrix transpose …

Member Avatar for Duoas
0
193
Member Avatar for mayank24
Member Avatar for cplus2x

Candy Machine Simulation Write a program to simulate a candy machine.Your machine offers candy for 75 cents, gum for 50 cents, and chips for $1.You should ask the user repeatedly which of the three items she wishes to purchase, or whether she wants to quit.If she chooses to purchase an …

Member Avatar for Slate2006
0
384
Member Avatar for mayank24
Member Avatar for mayank24
Member Avatar for mjoshi

Hi, I have written a program that copies one file to another while making format changes to some lines The relevant part of the code is the following" [code] while(fgets (cbuff, 80, f1)!= NULL) { if ( (isdigit(cbuff[5])) && (isdigit(cbuff[11])) && (isdigit(cbuff[17])) ) { strncpy (c1, cbuff+1, 5); c1[5] = …

Member Avatar for Ancient Dragon
0
100
Member Avatar for vinaygarg

[CODE] Struct threshold { long value; int exponent; }t1,t2; t1.value = 2; t1.exponent =3; t2.value = 3; t2.exponent =4; [/CODE] The first structure (t1) is 2 x 10^3 The second structure (t2) is 3 x 10^4 I want to get the result after division of the two structures. The Reault …

Member Avatar for vinaygarg
0
94
Member Avatar for mmcshmi11

I need to print out a number that begins with 7, without the seven. For example, print 71011 as 1011 or 701 as 01. I've tried many techniques and just can't get it to work. Is there a printf format that will let me print out everything left of the …

Member Avatar for invisal
0
117
Member Avatar for prljavibluzer

I need to write something like this, just plain and simple c. 1. Program starts and prints 5 news titles 2. You select one and it prints news body 3. after viewing you select close and select other one or exit program 4. after that it prints "sort by views" …

Member Avatar for WaltP
0
177
Member Avatar for awelex

Hi, I'm new here, so please be gentle :) For an application I'm working on I need to implement a callback function that takes a va_list as an argument. Inside that function, however, I need to pass the va_list (or rather all arguments of the callback function) to a function …

Member Avatar for Narue
0
262
Member Avatar for francisprite

I'm using Linux and I'm trying to send mail using C but I'm not sure if my code works: s_Mail[999] = "mailx -r \"Sender\" -R \"Recipient\" -s \"Subject\" -F \"Message\""; mail(s_Mail); This is the part that sends the mail...the -F for the message part is really hazy...

Member Avatar for francisprite
0
80
Member Avatar for poojagupta

My question is to calculate the mean of a comma separated dataset stored in a file. The program will be run on a system with no floating point library. Obey the following rules: 1.Maximum 100 values in dataset 2.Each data entry in the dataset is a byte (0 - 255) …

Member Avatar for Narue
0
114
Member Avatar for sid_arth2020

Ques. Write a function which prints the cards which are missing from a set of playing cards.Cards are represented in the form of string whose first letter represnts type and second is the card number. S-1=one of pade S-A=A's of spade C-k=King of clubs H=j=jack of Hearts....so on

Member Avatar for Nick Evan
0
74
Member Avatar for certem

Hello i have spent hours and days and couldn't find how i can make a variable that has rounded to 2 decimal digits. But i dont want to use myVariable.value....or myVariable()....styles. In the net i have seen something like BCD that is related for official accounting issues but i coudn't …

Member Avatar for John A
0
245
Member Avatar for ninaijanai

so here's the code. [CODE]#include<stdio.h> #include<conio.h> void main() {struct { char seat; }a[19]; int x,z; char y; a[0].seat='A'; a[1].seat='B'; a[2].seat='C'; a[3].seat='D'; a[4].seat='A'; a[5].seat='B'; a[6].seat='C'; a[7].seat='D'; a[8].seat='A'; a[9].seat='B'; a[10].seat='C'; a[11].seat='D'; a[12].seat='A'; a[13].seat='B'; a[14].seat='C'; a[15].seat='D'; a[16].seat='A'; a[17].seat='B'; a[18].seat='C'; a[19].seat='D'; clrscr(); printf("Flight Seat Reservation:"); printf("\n\n\n\t1\t%c\t%c\t%c\t%c", a[0].seat, a[1].seat, a[2].seat, a[3].seat); printf("\n\t2\t%c\t%c\t%c\t%c", a[4].seat, a[5].seat, a[6].seat, …

Member Avatar for Passmark
0
328
Member Avatar for cinger

[code=c] int main() { int a,b,c; a=b=c=1; c = ++a || ++b && ++c; printf("%d %d %d", a,b,c); } [/code] here the expression is considered from left to right. but the confusion of mine is: && has got higher precedence than that of ||. so ++b && ++c should be …

Member Avatar for gkbush
0
150
Member Avatar for nehamore

i am writing a pogram where i have to find out which all computers are up on my lan...for this i have called shell script program from my C code which pings to all computers on lan....now i want the shell script to return to the C code "1" incase …

Member Avatar for jim mcnamara
0
408
Member Avatar for sid_arth2020

Ques.Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array …

0
65
Member Avatar for rafikul

[code=c] #include<stdio.h> #include<conio.h> void main() { float a=6; clrscr(); printf("%d",a); getch(); } [/code] here the output is some garbage value.here the error lies in %d instead of %f.for float value the identifier is f.is this the proper answer of my question?

Member Avatar for VernonDozier
0
100
Member Avatar for sid_arth2020

Hi iam working on a problem given to me by my teacher.The problem is !.People from different states send their application to participate in the dance competition organised at the country level.Only 30 people will be selected to take par in the competition.Participants will be selected randomly from one state.No …

Member Avatar for plgriffith
0
79
Member Avatar for gallantmon1
Member Avatar for nvnq

WHO HAS ALGORITHMS OF PROBLEM : PLACE k<=8 QUEENS ON THE CHESSBOARD SO THAT THEY CONTROL (EXAMINE) ALL CELLS OF CHESSBOARD 8X8. THANKS!

Member Avatar for technogeek_42
-2
147
Member Avatar for technogeek_42
Member Avatar for prljavibluzer

Well, this is what we got for writing this holidays at school using plain C and the most simple methods. Any solutions available? Create program for defining hierarchical file-system structure in which node can be file or subdirectory with limitation that file can only be a leaf. Capabilities that program …

Member Avatar for prljavibluzer
0
124
Member Avatar for complete

While trying to run someone elses example code, Visual Studio 2005 never produced an executable even though the build process was successful. Do you have any idea why this might be?

Member Avatar for JerryShaw
0
58
Member Avatar for Blythe24

Hello(repost)- I am reposting because I didn't get the answer I needed. My teacher gave us this problem in a lab and I need help with it. Basically, he wants us to write an algorithm to count symbols. The user will provide anywhere between 3-10 symbols and then an initial …

Member Avatar for jazzman05
0
106
Member Avatar for neknek

hi, i'm new in this site.. i'm working on a airplane seat reservation program.. we were asked to design a program that chooses the users' desired row number and the desired seat number (or rather in this case, seat letter)... here's my code [CODE]#include<stdio.h> #include<conio.h> #include<string.h> void main() { struct …

Member Avatar for neknek
0
116
Member Avatar for woozyking

Say I have an infinite loop, and I want to start over or terminate depending on what user inputs. [CODE] while( 1 ) // start the inifite loop { printf( "Enter your number: " ); // prompt scanf( "%d", &operand1 ); // store user entered number into operand1 if ( …

Member Avatar for invisal
0
94
Member Avatar for gaurav2589
Member Avatar for esy928

Im creating a slot machine program and used the kbhit command to stop the reels. Right now im tryn to change how the program works instead of stoping it all at once i want the reels to stop one at a time (everytime a key is pressed one reel would …

Member Avatar for esy928
0
237
Member Avatar for wollacott

ok people i wrote this code myself. i just need your help so this program can accept any digits and print the decimal equivalent. i worte more than i needed too because i wasnt so sure how muchi needed. i dont think it works very well. i tried 1101 and …

Member Avatar for VernonDozier
0
140
Member Avatar for wollacott

Input an integer containing only 0’s and 1’s( ie. “binary” integer) and print its decimal equivalent. {hint: use the remainder and division operators to pick off the binary numbers digits one at a time from right to left. Just as in the decimal number system, in which the right most …

Member Avatar for WaltP
0
297
Member Avatar for kxh29

Hello All! I am running AIX4.3 UNIX OS. I am developing using the C-Programming Language. I have inherited code which creates a dialog box. [code] dialog(box_height, box_width, position_x, position_y, "message")[/code] The requirement [B][I]now[/I][/B], is to place a list of say numbers in the box and grow it dynamically. Problem is, …

Member Avatar for Ancient Dragon
0
133
Member Avatar for Blythe24

Hello- My teacher gave us this problem in a lab and I need help with it. Basically, he wants us to write an algorithm to count symbols. The user will provide anywhere between 3-10 symbols and then an initial number. For example: user: 01234567, initial number: 106 output: 107, 110, …

Member Avatar for Narue
0
85
Member Avatar for complete

Is a COM object included in a project in the C# IDE much like it is in VB where you so include it graphically in a design view?

Member Avatar for Ramy Mahrous
0
44
Member Avatar for kv79

Hi ,i am creating some file and i need to open an exe file. Like this ,I creating preface application because installation of the game . So i need that when Computer finish the installation that he start another exe file who have nothing with my preface application. I using …

Member Avatar for zhelih
0
63
Member Avatar for sn_sundeep

Hi, Is there any way so that I call mspaint through my C program and edit the resolution or resize my photos? Sundeep

Member Avatar for Belrog
0
81
Member Avatar for jeme

i would like adding tow number by postfix when the inputs like : 5,7 then the out put: 57+ i hope there is recommendable code for that program

Member Avatar for Belrog
0
95

The End.