49,767 Topics

Member Avatar for
Member Avatar for MugANDGlass

can anyone help me? i got problem count the monthly installment. //class class vehicle { public: char model[20], color[20], brand[20]; float price, deposit, rate, monthly_installment, newprice; int term; public: void calculate_installment(); }; class car:public vehicle { private: float installment, newprice; public: void calculate_installment(); }; //main program #include <iostream> #include <string.h> …

Member Avatar for DeanMSands3
0
176
Member Avatar for vicky30312

I cant figure out why my second switch stament is not working. Can you please help? I am still new at this still. // Project 8.4. Guesses the number the user enters between 1-100. #include <iostream> #include <ctime> using namespace std; char H,L,Y,N; int UsersNum, YesNo, HighLow, Re_Use; int n …

Member Avatar for vicky30312
0
150
Member Avatar for Memo143

#include<iostream.h> #include<conio.h> #include <stdlib.h> int main() { int *ptr[5]; int a[] = {1,2,3,4,5}; //declaring and integer array char b[] = {'a','b','c','d','e'}; //declaring and Character array *ptr=a; //assign values of integer array to integer pointer array for(int i=0;i<5;i++) //by looping, Print values of array a, pointing to pointer { cout<<"A["<< i+1 …

Member Avatar for Schol-R-LEA
0
126
Member Avatar for anukavi

*Hi, Greetings to u all ... I am new to this website as well as in C++. I got a question in c++. I need to remove decimal point from amount (declared as CString) Eg. Amt is 145.76 I need the final output as 014576 and same to be stored …

Member Avatar for anukavi
0
101
Member Avatar for soujanya.bhat.184

I am not able to understand the concept of virtual functions. When a member function of base class is redefined in derived class,the redefined function can be used to get desired output. Then why there is a need to use virtual functions? For instance, the following two codes produce the …

Member Avatar for Agni
1
199
Member Avatar for sujskiez

I need help with this program where i need to create a book record program where the program can view, update, add and delete books. Now this is the main menu: MAIN MENU 0. Exit 1. Search for a book 2. List books of a category 3. List books in …

Member Avatar for arghasen
0
247
Member Avatar for wanu

Please, help me about bisection method in C +? Obtain the local minimize of the function f(x) = X5-5X3-20X+5 on [-3,O] and [0,3] by bisection method >> and run it in a loop help me++++

Member Avatar for arghasen
0
81
Member Avatar for slygoth

I am trying to store some values return from a function. Its returning three values that i want to use in the main function. int display() { int iter; int num[4]; if(dl!=-1) { for(iter=0 ; iter<=al ; iter++) { cout<<t[iter]<<", "; num[iter]=t[iter]; } } else cout<<"EMPTY"; return num[0]; return num[1]; …

Member Avatar for Despairy
0
203
Member Avatar for main()

Hello, I would like some help with a problem presented in this video: http://www.youtube.com/watch?v=sceTbcz_WGc The problem is titled "Extra Credit" and it is near the very end of the video. I managed to complete the first problem, but this one seems a lot harder and I'm not sure where to …

Member Avatar for Despairy
0
112
Member Avatar for jamd200

Someone asked me to code a program that translates French-language PDF files to English, and I thought that maybe I could convert the PDF files to Word documents or some other text document with a program I coded in C++, and then translate the text using Python's xgoogle library. Is …

Member Avatar for zarfishan
0
2K
Member Avatar for daino

I'm tryhing to configure, then build f**ontconfig version -2.10.1** on **Windows XP**. My compiler is **MinGW 4.4.1.** Initially I try to configure this using MSYS and I get an error telling me I'm missing **intl.dll** . I eneded up downloading this then runing the **./configure** command again and I get …

Member Avatar for daino
0
298
Member Avatar for daniel.moore.5099940

okay so i have this program that is basically like moving the sides to a 2 dimensional rubiks cube. for example 111 222 333 is a 3X3 two dimensional array and when coordinate (0, 1, 2 being 1, 2, 3) 1, 1 (meaning in our number system as 2, 2) …

Member Avatar for daniel.moore.5099940
0
3K
Member Avatar for sean.walker.3785

I am making a maze that consists of 48 nodes and the user needs to start in A1 and make there way to H6. The maze is created by reading a file, each line in the file looks something like A1 A2 B1 - - - where A1 is the …

Member Avatar for sean.walker.3785
0
189
Member Avatar for pjh-10

trying to do a 2D array of a square sorta shape, and want to display it in the format 1-12 in the order 1 2 3 4 5 6 7 8 9 10 11 12 im an absolute novice if you cant tell, just wondering how i go about this.trying …

Member Avatar for pjh-10
0
134
Member Avatar for TexasJr

I'm writing a program for my class that is due tomorrow. I thought I was done, but as I starting using it to get an output file, I ran into a problem, and I can't get past it. I have also gone over my code to see if I made …

Member Avatar for TexasJr
0
176
Member Avatar for Growl

Hi, friends! I got a serious problems... Tomorrow I need to send this assignment to my professor. I tried a lot of hours but still no useful results.. :( You guys are my last hope :(! > There is an integer n. > Find numbers that: > *can be expressed …

Member Avatar for NathanOliver
0
123
Member Avatar for leecheneler

you can delete my request but not the thread i want deleted which makes less sense than the request thread. Please delete it

Member Avatar for deceptikon
-1
101
Member Avatar for yamna1

I need help in my home work urgent. Write a program in C++ which asks user to enter two binary numbers. Store these two numbers in two different stack variables (objects) bit by bit and calculate its sum and store it in another stack variable and display its sum. Solution …

Member Avatar for yamna1
0
229
Member Avatar for sanghai45

I am trying to implement program in modular way or you can say that OOPS way .. This is begining so wish to get help to implement it My problem is I can think of modules but then I am not able to convert it in to coding Firstly I …

0
54
Member Avatar for Tinnin

Hi all. I'm starting to learn a bit about template functions and I have a question regarding declaration in a header file. My code is as follows (from "Accelerated C++, chapter 8"): #include "Split_Template_func.h" #include <iostream> #include <iterator> using std::cout; using std::cin; using std::string; using std::getline; using std::ostream_iterator; int main() …

Member Avatar for Tinnin
0
11K
Member Avatar for az-mi51

I have to make a multiplication table. The program works correctly but I need to put the numbers multiplied in the array also. EX. x 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 answers 2 3 4 5 6 7 8 9 10 …

Member Avatar for faroukmuhammad
0
121
Member Avatar for slappy5star

I am having problems comparing the arrays in the following code. I commented where I "think" the problem is. Any help would be appreciated. #include <iostream> #include <conio.h> #include <cctype> using namespace std; const int NUM_QUESTIONS = 20; class TestGrader { private: char correctAnswers[NUM_QUESTIONS]; char studentAnswers[NUM_QUESTIONS]; public: void setKey (); …

Member Avatar for Daniel BE
0
266
Member Avatar for ikra61893

ok so for this program i have to make a main program that calls four different functions. the introduction function doesn't return anything and it only prints what the program will do. the second function aretheyvalid receives three integers that represent three test scores. the third function is the one …

Member Avatar for ikra61893
0
155
Member Avatar for Transcendent

I'm trying to install GCC 4.7.2 for windows and linux but I can't seem to do. Anybody know how I can do that. I have eclipse Juno

Member Avatar for mike_2000_17
0
1K
Member Avatar for TexasJr

I'm writing a program for my C++ class, this is a short clip of it: for(customer = 1; customer <= 5; customer++) { customer_Num[customer][2] = rand() % 999 + 1; // Receipt number cout << "Customer Name:" << endl; getline(cin,customer_Non[customer][1]); cout << "Customer's address:" << endl; getline(cin,customer_Non[customer][2]); cout << "Customer's …

Member Avatar for TexasJr
0
125
Member Avatar for willygstyle

Ok so I have my .dll working correctly however I can't get my hook to load properly. When I use GetLastError() to figure out what went wrong I get error code 1428. ERROR_HOOK_NEEDS_HMOD 1428 (0x594) Cannot set nonlocal hook without a module handle. I've seen a ton of examples that …

0
286
Member Avatar for tim van asselt

I have a program that does multiple database connections to multiple database servers. Language is C++. I use CDatabase OpenEx ( "DSN=DSNName;UID=SQLUserName;PWD=SQLUserPasswoard;Trusted_Connection=No", CDatabase::noOdbcDialog ); Updating the program to windows 7. Running on a Win 7 x64 box. Use C:\Windows\SysWOW64\odbcad32.exe to configure DSN. There are two DSNs - primary and secondary. …

0
42
Member Avatar for az-mi51

I am trying to multiply two single arrays and printing out a 2D array...basically I'm making a multiplication table. I keep getting SEGMENTATION FAULT error. Any suggestions? #include <stdio.h> #define COLUMN_SIZE 12 #define ROW_SIZE 12 #define SIZE 12 int main (void) { int i, j, k; int column[COLUMN_SIZE] = {1,2,3,4,5,6,7,8,9,10,11,12}; …

Member Avatar for az-mi51
0
225
Member Avatar for Carc369

Basically this function is supposed to accept a user inputted string, and the amount it is supposed to be transposed by 'x' amount (between 0-25). The idea behind transposition is that if the user enters "abc" for the string and then wants to transpose it by 1. The new string …

Member Avatar for Carc369
0
160
Member Avatar for Starship12

I need no make a program with stacks. Due tomorrow! But I suck at structs, so I spent 3 days trying to make the program and still have it not done yet :( I need your help!!!! I need to put 10 int numbers into the stack in an increasing …

Member Avatar for NathanOliver
0
121

The End.