49,761 Topics
| |
can anyone do recursive binary search using a single argument | |
i need help with this assignment i have this class and i need to implement the functions and the main i've implemented it but i want to check if its right and i have a problem in writing the main [code]#ifndef #define class GBook { public: GBook(); void inputGrades(); void … | |
How do I "pad" my input to a certain number of bits, say 111 bits more than the original input? Any ideas? | |
I have downloaded the source code for the .AVI format but when I compile the project, an error is reported which when simplified, is "[Build Error] *** multiple target patterns.". Also, the line which gets highlighted by due to the error is the line 25 which has the phrase "$(BIN): … | |
I'm a new user to Visual Studio .Net, writing most of my projects in C++. I have this problem with the OO paradigm when I tried to apply it to my projects. Variables for classes which I described in eg. dXmanager.h fails to appear in my dXmanager.cpp; when I try … | |
hi guys i need ur help to do my homework i have this question Write a program that helps students to learn multiplication. Use rand to produce two positive one-digit integer. It should then type a question such as How much is 6 times 7? The student type the answer. … | |
I have to place an * beside any grade that gets entered that is below the avg. I was thinking something like this: Am I anywhere close? [CODE]if (grade < Avg) cout << " * grade";[/CODE] | |
I just started c++ and programming and need some major help. I am trying to convert binary to decimal. I have searched through everything and its all to hard for me to understand,and uses terms ive never seen. I need to convert the binary to dec, using % and / … | |
I have to enter grades and if I enter a negative grade then the program is supposed to terminate. I came up with this code but it doesn't terminate it just asks for another grade. [CODE]if (grade[i]<0) cout << "This is not a correct grade";[/CODE] Any suggestions? | |
I am creating a program that will convert seconds into hrs mins and the remainding seconds. I've got the hours part down but for minutes im trying to use the remainder funtion. [code=cplusplus] #include <cstdlib> #include <iostream> using namespace std; int main() { int secns, mins, hrs, convs, sec, sph, … | |
I have written a binary to decimal program. I have several loops. I was wondering if there is a command... Say the user is done entering binary numbers, cause the program was supposed to be made by entering one at a time. ( homework ) Anyways, The user is done … | |
Hey guys, i need some help with 2 programs that my teacher assigned me.. I just cant seem to figure them out. I'll type out what the program is, but I really dont have much code to show since I dont really know how to even get started so any … | |
Hi Experts! i need some help now i have written a code but my output is not correct its reading everything from text file but not computing it correctly,,,pls pls help. here's my code.... #include <iostream> #include <iomanip> #include <stack> #include <fstream> #include <string> using namespace std; using std::string; using … | |
Hi, I'm a beginner, so please forgive my inadequate knowledge. I'm am trying to write a program that searches one file for specific words and their replacements found in another file. As of yet, all I have is a program that opens my files and counts the words in them. … | |
hey, i've been doing c++ for uni for a few months and have got an assignment which is giving me some problems... i have to use data from a txt file, import it into c++, perform calculations with it, then produce an output file which is to be made into … | |
Hi all, I have a console application, and I want to run it though a GUI. Its a simple GUI. Say there is a button called "Run", when I click the button need to execute the application do the task. Can you guys guide me to do it. I'm really … | |
Iam after doing this program and it isnt working properly , it should give an output like january 1, 1900 february 8, 1985// random number january 1, 1900 may 25 , 1913 // random number january 1, 1900 august 6 , 1912 // random number [code] #include <iostream> using std::cout; … | |
Hi, I'm having problem reading a sequential file, I have done some searches all without any positive result. I trying to read a sequential file, but the problem is that the last record is read doubly. Any help would be appreciate. [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using … | |
Hello thar, I'm working on a problem that needs to input data into a list in sorted order. So far I'm getting some output, but it ignores some of my inserts, (ie "Hammy" in this case) and the output is not sorted. I've looked at this for a while but … | |
Hello everyone..... I hope you could help me with this one..... Is it possible to insert a windows media player using the <windows.h>? If Yes , pls provide me a site where I could learn on how to insert a windows media player. Thanks in advanced... | |
Help! My computer started beeping really loud and now I get this message and am a virtual standstill. I am not coputer savy at all, but I did run HJT and here is the log Logfile of HijackThis v1.99.1 Scan saved at 8:51:58 AM, on 10/4/2007 Platform: Windows XP SP2 … | |
Hello everyone,,, I hope you could help me on my problem I have encountered in creating an ownerdrawn button using the <windows.h> ... I have already created an ownerdrawn button and inserted a bimap but my problem is that the default shape of the button where I inserted the bitmap … | |
This what I am trying to do. An elevator. so if the newdeck selected is different than where the elevator close the door, move the elevator and open the new door where is has issues is the value of edoor2 doesn't increase so the new door doesn't open. edoor1 does … | |
I've tried so hard to do it but I couldn't so I really need help since I have to send it to my professor tonight so please HELP [code=cpp] class String{ char * const cp; // pointer to the first element int Alng; // the N# of the elements in … | |
I have the following code, but compiling error message: "cannot convert parameter 1 from 'float' to 'float " when I call flow(v1, v2, v3, v4). Could any one out there help me to find the problem and fix it? Thank you! [code] #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #define Length … | |
Hi all. I'm a new member [I]I posted the following in the stickied book thread as it seemed the most appropriate place for it. That was 2 days ago and no one responded so I probably guessed wrong. If I shouldn't have reposted, then I'm sorry. Here is the post … | |
Hello there, I would just like ask what to use if you want to know if a variable is of type wchar_t* or char* using it in a flow control statement. Would this work? [code=c++] void Check(void* pVarToCheck){ if(sizeof(pVarToCheck) == sizeof(wchar_t))){ cout << "Variable is wchar_t*" << endl; }else if(sizeof(pVarToCheck) … | |
Hey, I have no idea why this code isnt working, im new to C++ so maybe im missing some fundamentals or something. But to me it looks perfectly fine.. the purpose of this program is to change binary into user code... if someone could help me out it would be … | |
So I have a program with a specification file, implementation file, and a client file, I'll post all three but I know the problem rests in the client file. What's happening is that it reads the first team from my data file which I'll also post, and then it doesn't … | |
The assignment is : Write a C++ program that calculates the volume of 3 different geometric shapes. Your program should give the user a menu like the following and repeat until the user wants to stop. Volume Calculation Program Select the Number of Your Chosen Object 1. Dumbbell 2. Axle … |
The End.