49,761 Topics

Member Avatar for
Member Avatar for SpS

Can anyone explain me in simple language and better if with an example [B]why constructor don't have return types :!: [/B]

Member Avatar for ishan_1
0
733
Member Avatar for henrimontreal

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 …

Member Avatar for tinstaafl
0
231
Member Avatar for diehsi
Member Avatar for Ancient Dragon
0
92
Member Avatar for macki123

**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 …

Member Avatar for macki123
-2
344
Member Avatar for DeeperShade

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 …

Member Avatar for DeeperShade
0
192
Member Avatar for TheFearful

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 …

Member Avatar for TheFearful
0
279
Member Avatar for Ezekiel_1

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 …

Member Avatar for Ezekiel_1
0
440
Member Avatar for hassan.kiani.10

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.

Member Avatar for talha ijaz
0
210
Member Avatar for Mart_webber

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, …

Member Avatar for Mart_webber
0
164
Member Avatar for Elixir42

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 …

Member Avatar for Banfa
0
279
Member Avatar for Vinodhinij

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 …

Member Avatar for Schol-R-LEA
0
219
Member Avatar for It tech

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 …

Member Avatar for David W
0
334
Member Avatar for g12mcgov

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 …

0
185
Member Avatar for c.bordelon

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 …

Member Avatar for vmanes
0
603
Member Avatar for malik.rauf.94402
Member Avatar for hl1202

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for dododero

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 …

Member Avatar for David W
0
166
Member Avatar for frkamal

Hi,I'm trying to find a C++ lib which permit an implementation of the standard RBAC in my application. Any help. Thanks.

Member Avatar for Ancient Dragon
0
423
Member Avatar for ravi_14

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,

Member Avatar for deceptikon
0
188
Member Avatar for samson.dadson.3

#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 …

Member Avatar for samson.dadson.3
0
297
Member Avatar for frkamal

Hi, Anyone have a detailed install procedure of QT with ODB on Windows ? Thanks

0
52
Member Avatar for mido29

How to write a program that contain a universal set and it union and intersect can be deduce from the universal set

Member Avatar for rubberman
0
42
Member Avatar for chachajay.lol

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 …

Member Avatar for rubberman
0
249
Member Avatar for glamiex

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 …

Member Avatar for vmanes
0
230
Member Avatar for ravi_14

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,

Member Avatar for vmanes
0
528
Member Avatar for admiri92

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?

Member Avatar for mike_2000_17
0
287
Member Avatar for nikkoderic.aranas

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 …

Member Avatar for Ancient Dragon
0
132
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
755
Member Avatar for Vasthor

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); …

Member Avatar for David W
0
265
Member Avatar for saja.omarii.7

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(" ") …

Member Avatar for saja.omarii.7
0
4K

The End.