49,761 Topics
| |
How would i keep track of money spent? and items bought when i loop and how do i say i want multiple items meaning if i want to purchase more than one teeshirt or mug. /* SIUE's bookstore is having aspecail sale on tiems embossed with the cougar logo. For … | |
Can someone quickly point out what the problem is here? I'm sure it's something small but I've been coding for too long to see it. The problem is that in the balance method call, the first parameter is an array. if I hard code a test array, or if I … | |
I have a panel called panel1. What I wonder how it is possible to do is that when you click the mouse on the [B]location 304,369[/B] in the panel, I want to display a messageBox. How would that be possible to identify the location in code ? [code] private: System::Void … | |
Hello, I am working on a program that takes an integer array filled from a random number generator. These values are suppose to be from -5000 to 5000, 2500 of them. Then I want to find the standard deviation of the numbers in the array. I am required to use … | |
I've been trying to fix this error for a while now, I could really use some help. C:\Users\Clayton\Documents\CH4P11.CPP(71) : error C2676: binary '>>' : 'class std::basic_ostream<char,struct std::char_traits<char> >' does not define this operator or a conversion to a type acceptable to the predefined operator code: #include <iostream> #include <iomanip> using … | |
When you use char(130) you get the é. When you do int('é') you get -23... and with my program to get value it is -126... How on earth can I get the 130 value when entering the é ? Thanks for looking. With this program I printed out the letter … | |
I'm writing a C++ program in which I need to display the bits that represent both a 32-bit and 64-bit floating point number. I had no problem properly displaying the 32-bit number, but I'm having trouble with the 64-bit number. This is the code that I'm trying to use: [CODE] … | |
Im trying to figure out how to error trap this program so if the user doesnt put in a valid response then a message will cum up and they will go back 2 the beginning until they do it correctly. also i want to subtract the money they spend and … | |
NOTE: ~this code is in c++ ~you need not change anything in the code ~the commented lines are there just in case you want to see how the program works in real time - simply uncomment them and run the program, these commented lines are not necessary for the program … | |
How can i make this into a menu where you select a letter and you get a response that reads you have choosen "a" which is $2.50 /* SIUE's bookstore is having aspecail sale on tiems embossed with the cougar logo. For a limited time, three items, mugs, teeshirts, and … | |
Problem: Write a class that defines a car. The car class stores the following data about a car: [B][U]Member Name Data Type[/U][/B] make string model string vin string owner string doors int mileage float gas tank float trip float gas remaining float Create methods to set data into the data … | |
Hello-- I've been writing some code in C++ to test the [I]tffs-lib[/I] library, which is written in C. The library provides functions for directly accessing a FAT file system from within a program. Although most modern operating systems have drivers for accessing the FAT filesystem on SD cards, I am … | |
OK I need some help... so far ive been able to get everything on my own but...im making a program that selects questions from an array numbered 1-40. i put in a random fuctions so the questions are chosen randomly. but i want to have it so that theres no … | |
I have been having a lot of trouble getting my overloaded operators to properly with each other, especially in cases such as a=a+b+c When I execute the program, I get an error: "Unhandled exception at 0x01201f10 in Project1_v3.exe: 0xC0000005: Access violation reading location 0xcccccccc." But I am not sure exactly … | |
Hi All, Can anybody help me with source code to obtain dynamic run time binding without using virtual functions in C++. I would like to use my own pointer just like VPTR and a table (array) like VTable. Thanks in adv, Regards, JE | |
(1)which are all access specifiers are applicable for class and why? | |
| |
It doesn't compile, why? [CODE]#include <iostream> #include <string> using namespace std; int main() { for(int cnt1 = 0, int cnt2 = 10; cnt1<10; ++cnt1, --cnt2) { cout << cnt1 << "--------Hello!---------" << cnt2 << endl; } system("PAUSE"); }[/CODE] | |
Dear All, I want to do two mathematical operations, say [CODE=c] a / b [/CODE] and [CODE=c] c / d [/CODE] then test whether they are equal. I'm really very bad at computer errors, I think I need to read more about it (any reference is welcome). So, my question … | |
I wonder if anyone can help me. I'm suppose to write a program to ask the user to enter the file they want to display and display the file they want 24 lines at a time. It pauses at 24 and asks them to press enter and displays the next … | |
hi all....i have small problem with replacement of part of a character array..... my problem is i have character buffer buff[] the content in it is "DESCRIBE rtsp://<ip-addr>:9000/2.sdp RTSP/1.0 CSeq: 1 Bandwidth: 384000 Accept-Language: en-US User-Agent:Windows NT 5.1Service Pack 2)" now here i want to replace "9000" with the number … | |
I have a std::string (char *, std::string::size_t ) constructor failing and I am not sure why. For my small test file there was no problem, but when using ifstream::read() with an unsigned int sz of 1Gb (1073741824) (I think that I used a pos_type 1st time) and the resulting char* … | |
Hi guys, I am supposed to implement a sequence using linked list. But I seem to have an error in the code. As I am getting trash for the results of the concatenate function. It might be a problem with my constructor too. I am not sure. Please help. I … | |
my code includes this function void read(set<string> &mySet); but when i put this line in the header file, i get the following errors: error: variable or field 'read' declared void error: 'set' was not declared in this scope error: 'string' was not declared in this scope error: 'mySet' was not … | |
My only problem is the spacing..... to make it right.... i need to make it inverted pyramid pattern... like this: [CODE] 9 8 7 6 5 4 3 2 1 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 9 8 7 6 5 … | |
hi, i need to send keystrokes an application (including, "enter", "left arrow", "right arrow", etc). but how do i do that? i do not see any short and useful examples to doing it. all i have got at the current moment is to get the foreground window using HWND foregroundWindow … | |
I am having problems with the new operator() specifically within std::string I appear to have hit a memory limit in visual studio. Ideally I would like someone to help me find one of the following solutions: 1 - Can I access the memory in a very big file directly without … | |
Hi, I'm able to write a copy constructor for a class which contains pointer as a data member. However, when I have a reference as a data member, the copy constructor does not help, i.e. when I change that member for one object, the change is reflected in another one … | |
Hi, Im pretty new to c++ programming so plz dont be offended if i ask "stupid" questions. Im want to open a file named "Alexander". The name of the file is stored in an Ansisting. So i want to add an ".txt" extension to open the file. Then i want … | |
HEllo everybody !!! i have a little problem.. i m making a program in which i have to do bitwise addition. mean if the 1st input is 111 and the 2nd input is 11 then the output is 1010 i have made my logic but where i have the problem … |
The End.