49,761 Topics
| |
Can anyone explain me in simple language and better if with an example [B]why constructor don't have return types :!: [/B] | |
I have a Texas Instrument board and I need to make a GUI on PC and link it to my board via a serial port in order to have communication.(energy-meter calibration monitoring window) Therefore, I decided to use Visual Studio 2010. When I started to use it I found out … | |
can you make a c++ program and link it to a microsoft access database? | |
**i need someOne to solve for me all this Question as soon as possible he can** 1. Write a c program TO take a charcter from keyboard and find ASCII value of that character . Dialog box Enter a character k The ASCII value of k = 107 2. Write … | |
Essentially, I'm trying to go oldschool and make a lil 2D engine, but instead of just importing bmp's or other image files, i'm looking to print each pixel to the screen myself. Firstly, Ive got it so I can display a single image I made, however, for colors such as … | |
| I keep getting a corruption for my array and I do not know why. Can anyone help me figure out what is causing my run-time error to happen? my heapInsert function is at the very bottom #include <iostream> #include <algorithm> using namespace std; //function prototypes int getParent(int index); int getLeftChild(int … |
My problem with this program is within my do while loop. From line 33 to line 47. Please find attached the original intention in the pdf document ` //Program to show loan and interest calculation #include <iostream> // for cin, cout #include <string> using namespace std; const double ANN_INTEREST=0.05; //simple … | |
Write a program which asks the user to either convert the number of days into hours or minutes. Based on the option entered by user your program should calculate the result accordingly. | |
A hardware merchant sells steel bars at a flat rate of Kes 1000.00 per meter, and has announced the following discounts: Quantity of steel bar bought (per meter) Discount (%) <20 0 21-40 5 41-60 10 61-80 15 81-100 20 100 25 Implement the following programs: a) Using if..else statement, … | |
Hi, The problem I am having is that the returned object, from a dll factory, is not lasting for more than the function scope that recieves it. Despite reading [How to prevent the static initialisation order fiasco](http://www.parashift.com/c++-faq/static-init-order-on-first-use.html) I fail to see how it even applies to my code. `g_spEngineLog` is … | |
Hi! I am new to dev c++.The program works good for the first time.Whenever I try to modify the code and compile it again it displays compiler error =**Permission denied ld returned status 1**.No idea what to do.I googled but still cant find a good solution.I've also attached the screen … | |
I am having problem with programming, i have been given a program to perfom and so far i have benn unable to start..can anyone help me? This is my question..1. Create a class called MyString. Within this class, you are to implement, from scratch, two versions of each of the … | |
Hello, I'm a first timer here but I've kind of exhausted all my options for help on this program so this is my last resort... Anyhow, I'm constructing a hash table given a hash table class header file from my textbook. I'm working on the Driver.cpp file and here's what's … | |
Hello all, My assignment is as follows: Write a program that prompts the user for the number of tellers at Nation’s Bank in Hyatesville that worked each of the last three years. For each worker the program should ask for the number of days out sick for each of the … | |
| |
Hi everyone, I have to write a function that will dig into a folder and store all the filenames into an array. I will have to use that Array later to access to each of the file. My function worked, and when i tried to output onto the screen, the … | |
hey all well i have been facing this problem for days ...i have written a program where i am suppose to read a specific number of lines within different intervals and count the number of occurance of r and s and then divide r by s. The program is running … | |
Hi,I'm trying to find a C++ lib which permit an implementation of the standard RBAC in my application. Any help. Thanks. | |
According to Herbert schildt C++ complete reference "A non-static member variable cannot have an initializer." however when i run following code,it runs.. class ABC { public: int a=3; ABC(); }; ABC::ABC() {cout<<a; } int main() { ABC obj; } regards, | |
#include<iostream> using namespace std; int main(){ int fish =6; int * fishp = &fish; cout<<fishp<<endl; return 0;} this runs ok, but i get the same memory address when i cout either fishp or &fishp. how is it possible for a pointer to have the same address as the address it's … | |
Hi, Anyone have a detailed install procedure of QT with ODB on Windows ? Thanks | |
How to write a program that contain a universal set and it union and intersect can be deduce from the universal set | |
Hey there! I am in need of help, to create rather learn how to use a C programming Language to create a Currency Trading Simulation where I can buy/sell at the time of a decrease/increase in Forex Trading Platform or any other trading platform. However I find it really hard … | |
It is supposed to generate two numbers based on the user's preference of the highest number to use. What I want it to do is to divide integers that result in integers or perfectly whole numbers. I do not want to have numbers that don't divide out with remainders. So … | |
cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards, | |
Are exceptions standardized in C++? I mean if the rules of exception handling might be changed in the future. i.e: int Funct1(int) throw(); // does it throw an exception? | |
Hi Daniweb community! I just want to ask how, in general, video capturing works in Windows. Also what libraries that I can use? I would want to use Qt as GUI library. I'm sorry if the question is not clear. I still don't know how to ask this question. Thank … | |
I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example is I give it x = 114 which should translate to 114 pixels from left of screen (0) it will … | |
main.cpp // Give your class a < operator and define a vector of HasPtrs. Give that vector // some element and then sort the vector. std::vector<HasPtr> vecHP; std::string val; while (std::cin >> val) { HasPtr temp(val); vecHP.push_back(temp); } std::sort(vecHP.begin(), vecHP.end()); HasPtr.h bool operator<(const HasPtr& rhs) { return (*this->ps < *rhs.ps); … | |
heyy all ,, i'm trying to get the middle word of sentence contains 3 words using find and substr.. this is the code : #include <iostream> #include <string> using namespace std; void main() { string sentence; cout << "enter a three-words sentence :"; getline(cin, sentence); string middle = sentence.substr(sentence.find(" ") … |
The End.