19,876 Topics
![]() | |
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) { // … | |
is there a possibility to make animation with cpp is there any documentation for this | |
#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 … | |
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 | |
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 … | |
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 … | |
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 … | |
using resultgraph() it returns -3 (asking for graph driver device) i wanna know where could i find this and where i ll put it | |
[i]post deleted-- we don't do homework for you![/i] | |
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 … | |
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 … | |
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 … | |
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 … | |
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]); … | |
i am unable to compile and run network based applications like client/server apps. what should i do now? | |
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 … | |
![]() | [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} … |
![]() | 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 … |
consider the following statement & tell me why it i undetermined or ambigious int i=9; i=i++; PLS EXPLAIN ME FULLY | |
why do we use function definition in header file and function declaration in obj why can,t both be at header file? | |
hi. can someone please explain what are message passing interfaces and how i can code them? regards, naveen | |
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!!!!! :( | |
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, … | |
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 … | |
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 … | |
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 | |
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 | |
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). | |
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 … | |
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 | |
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 … | |
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. | |
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 | |
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 … | |
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. | |
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 … | |
// 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 … | |
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 … | |
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 | |
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 … | |
Hi! I would like to ask on the "find" function. I do not know how to use it. Thanks a bunch! | |
[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 … | |
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 … | |
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, … | |
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 … | |
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? | |
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 … | |
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. | |
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 … |
The End.