19,876 Topics

Member Avatar for
Member Avatar for madref

This program won't print the menu number the user enters??? /* Currency equivalence to the Dollar*/ #include <stdio.h> float Australian_Dollar; //Australian Dollar float Euro; //Euro Dollar float British_Pound; //British_Pound Dollar float Japanese_Yen; //Japanese_Yen Dollar float Swiss_Franc; //Swiss_Franc Dollar float count; int menunum; /* Dollar conversion */ int main(void) { // …

Member Avatar for red_evolve
0
851
Member Avatar for tahataha

is there a possibility to make animation with cpp is there any documentation for this

Member Avatar for tahataha
0
106
Member Avatar for vivekgalatage

#include <stdio.h> #include <stdlib.h> class A { int a; public: A() { a=100; } int get() { return a; } }; int main() { A *a=new A(); int *p=(int *)a; printf("%d\n",a->get()); *p=200; printf("%d\n",a->get()); system("pause"); } its out put is - 100 200 so can any body help me to avoid …

Member Avatar for Chainsaw
0
156
Member Avatar for shalin

Hi all here is small C program main() { int i=2; printf("%d\n",++i * ++i * ++i * ++i); } it gives o/p 480 why..? Thanks for u r reply. shalin

Member Avatar for pursottam tiwar
0
139
Member Avatar for pranavjec

hi guys, can anyone here give me c program about any file which would in binary format . the program will copy some content of binany file which would be on a tape drive (or any drive) & paste it another text file that would be in disk. thanks in …

Member Avatar for WhataNerd
0
124
Member Avatar for pranavjec

hi guys, i have no idea how these lines work the given c program(see attachment).the program is about Read SEG-Y input data from disk file (stream of bytes) to properly structured SEG-Y with proper IRGs on tape.The program didnt include any path of the file.does theses line works as path …

0
88
Member Avatar for morgan drutchas

In Microsoft Access 2000, I have a form that is for adding a new record and contains 2 subforms that each link to different tables. The subforms are connected by a user ID. I do not want the user to type his user ID twice, so when the user types …

0
75
Member Avatar for tahataha

using resultgraph() it returns -3 (asking for graph driver device) i wanna know where could i find this and where i ll put it

0
81
Member Avatar for RITZY_G
Member Avatar for tanner0035

I am currently getting 33 linking errors like the following: c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'WSAASYNCSELECT' : unresolved external c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'GETHOSTBYNAME' : unresolved external c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'WSASTARTUP' : unresolved external in each one is a different socket function. Each function listed in the errors appears nowhere …

Member Avatar for glSuccinct
0
120
Member Avatar for tnorton

Using this code: Fees = ovrh + (wr * z); I am getting the following error: error C2440: '=' : cannot convert from 'double' to 'float [6][3]' Fees, ovrhd, wr and z are all declared as float. I believe if I can figure out what the problem is, I will …

Member Avatar for Dave Sinkula
0
333
Member Avatar for fang221914

Pls help me regarding with this problem show me a complete program of a Commission or Brokerage Problem what is written below. The amount of money paid to an agent for buying or selling goods C= Commission R= Rate of Commission S= Sales Formulas: C= R * S R= C/S …

Member Avatar for alc6379
0
105
Member Avatar for Maineboy

I want to change the direction of movement of a shape (Circle) on a Form, using up,down,left,right, buttons placed within a panel also on the Form. The form contains a shape(Circle) and a TTimer component. I can get the Circle to move across the Form using : Circle->Left = Circle->Left …

0
58
Member Avatar for Mahen

OK, since i am not getting the answer am looking for, i am showing you a small source code of my program, i really hope that u understand it & sorry fot the newbie codez. [ #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { int numa = atoi(argv[1]); …

Member Avatar for Dave Sinkula
0
99
Member Avatar for Naveen

i am unable to compile and run network based applications like client/server apps. what should i do now?

Member Avatar for hivework
0
313
Member Avatar for Mahen

Hi everyone, Some questions in my previous post is still left unanswered. Here it is again: How can i accept decimal numbers from STDIN and perform arithmetic operations on it in C. How can i create a subroutine within a program, that can be called again & again at different …

Member Avatar for Dave Sinkula
0
182
Member Avatar for kohkohkoh

[font=Times New Roman][left]here is the question:[/left] [left]Use a two-dimensional array called [/font][b][font=Times New Roman]price [/b][/font][font=Times New Roman]to hold the prices for Proton’s car[/left] [left]regarding to the models and CC as listed below. [/left] [left]--------------------------------------------------------------------------[/left] [left]in 2d array..i could get[/left] [left](for example)[/left] [left]void disp(a[][3]);[/left] [left]int main()[/left] [left]{[/left] [left]num[3][2] = { {1,2},{4,5},{7,8} …

Member Avatar for freesoft_2000
0
134
Member Avatar for kohkohkoh

Do anyone know what's the problem with my Visual Studio 6.0. the program that i wrote sometimes can compile and sometimes can't, and yet sometimes can execute, sometimes can't.. the meaning of can't is..my whole VS frozen.. at the bottom, a message bar(whatever they called it) only shows Linking...(the word …

Member Avatar for freesoft_2000
0
113
Member Avatar for Sukhbir

consider the following statement & tell me why it i undetermined or ambigious int i=9; i=i++; PLS EXPLAIN ME FULLY

Member Avatar for alc6379
0
115
Member Avatar for policeachan

why do we use function definition in header file and function declaration in obj why can,t both be at header file?

Member Avatar for Dave Sinkula
0
139
Member Avatar for Naveen

hi. can someone please explain what are message passing interfaces and how i can code them? regards, naveen

Member Avatar for Chainsaw
0
160
Member Avatar for bigbiffa

i have the message c:windows/system32/autoexec.nt on screen when i try to unistall avg anti virus.It also says system file is not suitable for running ms-dos and microsoft windows applications...help!!!!! :(

Member Avatar for DMR
0
90
Member Avatar for zrixter

as title mentioned, i face problem with convert a jumbled text file to unjumbled text file, some of you might not clear what i am saying, well a example will give a clear idea what this all about. jumbled text file contain a few line of number, after unjumbled it, …

Member Avatar for FireNet
0
146
Member Avatar for Mahen

Hi everyone, i have just startted programming with C and i have got 3 Questions: 1. How to calculate with decimal numbers in C. 2. How to convert strings into numbers and perform calculations on it. 3. Where to find a book that explains all the header files. Tahank you …

Member Avatar for Mahen
0
131
Member Avatar for matt768

I have to create a program in c using this formula, y=ax(cubed)+bx(squared)+cx+d, I have to ask the user to read in the four coefficients of the cubic, Ask the user for start and finish values for x, ask the user to view the graph and Plot a graph using grx20 …

Member Avatar for Chainsaw
0
79
Member Avatar for rishiraj_bayerd

Hi meabed & Naveen, thanks lot for your help. As per your advice i get lot of things.It is out of my expectation.I hope that in future you again help me. Thanking you...... Rishi

Member Avatar for meabed
0
172
Member Avatar for Sukhbir

CONSIDER THE FOLLOWING CODE: int *p[]; // THIS IS ARRAY OF POINTERS int (*p)[] // THIS IS POINTER TO ARRAY. CAN SOMEONE EXPLAIN ME SOME MORE ABOUT THESE TWO STATEMENTS

Member Avatar for Dave Sinkula
0
65
Member Avatar for Sukhbir

LOOK THE FOLLOWING CODE: void main() { char a[]={'a','b','c',d'}; int b[]={1,2,3,4,5}; printf("%d %d",&a[3]-a,&b[3]-b}; } OUTPUT: 3 3 CAN SOMEBODY EXPLAIN ME WHY THE OUTPUT IS SAME. ACCORDING TO ME OUTPUT IS (3 6).

Member Avatar for Naveen
0
166
Member Avatar for flory

Hello,all! Can someone help me Write a batch file that takes 4 arguments and passes them onto your C program. The C program takes each of the arguments and multiplies that argument by 10. Example of how this is done: Z:>SAD1.BAT 3 5 7 8 What will be displayed on …

Member Avatar for Ral
0
173
Member Avatar for rishiraj_bayerd

Hi Junior Techie, thanks lot for your help. As per your advice i get lot of things.It is out of my expectation.I hope that in future you again help me. Thanking you...... Rishi

0
84
Member Avatar for Trevor@Taran

I am trying to get the Microsoft Mappoint OCX working in C++ Builder 6.0 Pro. So far I can place pushpins and delete them but I cannot attach a name or note. When the compiler is in Debug mode the code will compile without any error but crashes when running …

Member Avatar for Trevor@Taran
0
119
Member Avatar for smithag261

Can I get a list of C programmes so that I can see the solution of any program I want. Any website related to it? I have an interview next month on C.Please suggest.

Member Avatar for brnprasad630
1
97
Member Avatar for rishiraj_bayerd

Hi everybody, I am quite familier in C.But i don't any thing about printer port programming.Can you help me......? thanking you... rishi

Member Avatar for Naveen
1
159
Member Avatar for blessedrose82

i need to pass up an operating systems project on the 19th of july. can anyone please help me do this project. i cant manage it by myself :rolleyes: . this is the question: Develop a program to simulate a computer using a Round-Robin scheduling algorithm with a time slice …

Member Avatar for meabed
0
652
Member Avatar for Naveen

Hi guys. Check out this tut on the web. [url]http://guideme.itgo.com/atozofc/[/url] good help with programming in c and dos. its a free ebook with individual files for each chapter. around 70 files. too good to miss. hope u like it.

Member Avatar for FireNet
1
292
Member Avatar for freesoft_2000

hi everyone, I need help on a single document interface (sdi) i have created. I created the sdi using the CRichEditView as its base class. I know that the printing functionality is already added by default but what i need is that when the program is executed by me a …

0
71
Member Avatar for Msh84281

// This program will write the name, address, telephone number // and college major of the programmer. // Michael Hawkinberry #include <iostream> using namespace std; int main() { cout << " Michael Hawkinberry\n6393 Harlem-Grovetown Road, Harlem, Georgia, 30814\n(706) 556-3731\nComputer Science " << endl; return 0; } Is this program error …

Member Avatar for Dave Sinkula
0
275
Member Avatar for jamal2004
Member Avatar for KSGuan

Greeting to all, I have been trying to apply "fprintf()","fopen()" and "fclose()" into the following source code but still fail to get the right way. As I do not have any C program book to refer to, I really appreciate it if someone could show me how should I go …

Member Avatar for Dave Sinkula
0
200
Member Avatar for nesbel

Hello all: How can I capture events generated in an instance of TCppWebBrowser created at runtime? Another question: how can I know which TCppWebBrowser is the sender if I have more than one in my application. Thanks

0
74
Member Avatar for Chris Wong

Hi guys, I'm new in programming and I just started to learn C language. I got this assignment question that requires me to use random number generation. I know how to create a simple random number generation using seed. But this question is giving me a headache. Please spare me …

Member Avatar for FireNet
0
170
Member Avatar for biel_andrada

Hi! I would like to ask on the "find" function. I do not know how to use it. Thanks a bunch!

0
79
Member Avatar for Blizt3r

[FONT=Comic Sans MS][COLOR=Red][COLOR=Red]hey dude, I need help regarding my project. Its about creating a program of a vending machine. It said i must include these in the vending machine system menu a) Replenish the system b) Buy Drinks c) Transaction Report d) Quit >> Enter Choice : X I wish …

Member Avatar for Blizt3r
0
141
Member Avatar for flory

Please , help me to Write a program in a new eclipse project called piglatin that converts a string to its Piglatin equivalent . the string begins with a vowel, add "way" to the string. For example, Piglatin for "orange" is "orangeway". 2. Otherwise, find the first occurrence of a …

Member Avatar for Chainsaw
0
123
Member Avatar for nufanvandal

Hey everyone. im having issues with my for loop: basically it reads in from a file using unix redirection and stores the integers into an array, that all works fine, but i need to return the number of integers that were read in, and logically i thought [COLOR=Red]this[/COLOR] would work, …

Member Avatar for nufanvandal
0
117
Member Avatar for Helter

I have an Edit Box on a form. The text entered in it is stored as an AnsiString. I must pass the input AnsiString data to a function that requires a const char* as a parameter. How can I pass the AnsiString as a const char*? I would appreciate any …

Member Avatar for Helter
0
150
Member Avatar for sroberts82

Im accepting a float from the user. I want to protect from him inputing a char cos it messes everything up. How do i do this?

Member Avatar for Dave Sinkula
0
155
Member Avatar for Preston

Hello, i have a rather strange request, I'm looking for someone who can produce a program that hooks into windows's input chain for a game I play and blocks the mouse up event message. Basically I need for the left mouse button to be continually pressed in whichever way is …

Member Avatar for Preston
0
81
Member Avatar for timetogo

Would like to have one example of complete walk thru (start to finish) of a program with afore mentioned software. Something like "first C program"! For the obvious reason...Don't know how to do so...I am at the pre beginners stage, thanks.

Member Avatar for timetogo
0
88
Member Avatar for nita

hi I have problem with file. The problem is I have to compare two file 1)master file and 2)transaction file. both have accno, amount,id and code(d-deposit,w-withdraw). the accno is in char[10] ,amount double, id integer and code character[1]. my problem is how to compare accno from master file with accno …

Member Avatar for kc0arf
0
88

The End.