49,757 Topics

Member Avatar for
Member Avatar for waway

Hie , Am teaching my self C++ ,this is my first attempt to code..,any ideas.. I am writting a C- program to deal with any two complex numbers. The program must contain at least five functions - Add – to add two complex numbers passed to it - Subtract – …

Member Avatar for waway
0
87
Member Avatar for glenak

I want to begin writing C++ codes in Eclipse. When I try to create a new C++ project I am given the option of choosing an executable project type, a shared library project type or a static library projec type. What's the difference between all these project types and which …

Member Avatar for glenak
0
212
Member Avatar for crodriguez08

Hey there, I'm having trouble creating a multiplication function for the program as I have two classes to keep in mind (Monomial and Polynomial). And if possible, a little advice on how to make my for statements in the arithmetic operators more flexible to user input such as i<PolynomialSize, which …

Member Avatar for crodriguez08
0
2K
Member Avatar for prakash02

i have to crreate a splash screen to display messages at various instance of my project .So any one can provide me an example how to create a singleton instance for the creation of Qt widgets.

0
38
Member Avatar for Baby_girl

hello...i want to ask something about the GUI in c++.. how can i develop the program for stereo vision image using GUI in c++?? i don't have any idea to develop this program. Can u give me any idea to solve this problem

Member Avatar for Stefano Mtangoo
0
31
Member Avatar for YingKang

Don't know why I keep getting error messages. This is first the error message: 5 F:\DPR226\Homework\Customer\Customer.h:3, from main.cpp In file included from Customer.h:3, from main.cpp Could anybody help please? Thanks [CODE] // main.cpp #include <cstdlib> #include <iostream> #include <string> using namespace std; #include "Customer.h" int main(int argc, char *argv[]) { …

Member Avatar for Stefano Mtangoo
0
126
Member Avatar for keeda

Hi, I am trying to read values from a text file that has exactly 5 numbers in each line and all numbers are "tab" separated. numbers could be one digit or two digit. I am reading it as : [CODE] if (map.is_open()) { int i = 0; int num; while …

Member Avatar for nbaztec
0
95
Member Avatar for ganesh_IT

Hi Guys, I am using CDateTimeCtrl in my project.I dont know how to get Date, Month and Year Separatly. If you Know explain me with simple code Thanks in Advance

Member Avatar for Ancient Dragon
0
80
Member Avatar for nubore

[CODE] string CTriangle::TriangleType(string TypeOfTriangle) { if ( ValidTriangle() ) { if ( SideA == SideB && SideA == SideC && SideB == SideC ) { TypeOfTriangle = "Equilateral Triangle"; } if ( int(AngleA()) == 90 || int(AngleB()) == 90 || int(AngleC()) == 90 ) { TypeOfTriangle = "Right-Angled Triangle"; } …

Member Avatar for nbaztec
0
173
Member Avatar for Anthony Ajax

I have to create a program that will read both of these files and print them to the Win32 Console. After it does this, I have to reread the file replacing every fifth word with 10 underscores. My code works correctly for the austin.txt file, but it counts the first …

0
93
Member Avatar for shirleyyu

This assignment will exercise reference parameters, value parameters, and (most important) program decomposition. This program will act as a bank. The general behavior will be: • User walks into the bank • User opens an account. This consists of: o Asking the user for a name. o Asking the user …

Member Avatar for shirleyyu
0
2K
Member Avatar for anthonette

write a c program which takes five names as input and prints them in alphabetical order

Member Avatar for myk45
0
53
Member Avatar for networkZombie

Ok so i have to write a program called hailstone numbers. Its basically asking the user to enter a number and if its even divide it by 2, if its odd multiply it by 3 and add 1 and then output the number of iterations. I made my program but …

Member Avatar for networkZombie
0
232
Member Avatar for onako

I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive …

Member Avatar for princess cesxo
0
158
Member Avatar for jmcorpse

Hello, I'm a little lost as to how to get the day part of my function to come up properly without a garbage number as it wants to do at the moment. I have everything else working well until it doesn't return the day on line . [CODE] #include<iostream> #include<cmath> …

Member Avatar for kes166
0
119
Member Avatar for kes166

I was asked a question, and now I'm determined to find a solution. I'm trying to disable a mouse touchpad on an hp2730p without messing up the pointer stick located in the middle of the keyboard or the mouse buttons. The hp driver conflicts with a security program that is …

0
84
Member Avatar for XodoX

I'm trying to code a sentence editor. So, basically the input comes form a file, and the code sorts the words. The input in the file is I not do know, theoutput is I do not know. This is what's gonna be in the input file, but it can be …

Member Avatar for XodoX
0
164
Member Avatar for bmos

How would I go about finding the first/bottom element 'pushed' into the linked list stack? would I need to copy the stack, then pop the elements until I reach the first element? I'm not even sure how I would go about doing this. The only thing I can think of …

Member Avatar for Ancient Dragon
0
180
Member Avatar for burcin erek

[CODE] #include<iostream> #include<fstream> #include<conio.h> #include<stdlib.h> using namespace std; void write(); void rear(); void search(); void write() { int no; char name[80],surname[80]; ofstream file("student.txt",ios::out|ios::app); cout<<"name:"; cin>>name; cout<<"surname :"; cin>>surname; cout<<"number :"; cin>>no; file<<name<<""<<surname<<""<<no<<"\n"; file.close(); } void read() { string line; ifstream file("student.txt",ios::in); if(!file){cout<<"file not found.\n"; getch(); exit(1);} while(!file.eof()) { getline(file,line); cout<<line<<endl; …

Member Avatar for burcin erek
0
201
Member Avatar for yingfo

I'm having trouble with this windows program its in Visual C++ and it's my first time really using and type of windows console. I'm trying to get the program to where the program starts up there is nothing on the screen but then the user left clicks a 'X' appears …

Member Avatar for nbaztec
0
167
Member Avatar for fandango

I have a struct "Telegram" which contains a time offset, the Sender ID, the Receiver ID, and the Message itself: [CODE]struct Telegram { int Msg; // Message unsigned long Time; // Time offset (i.e., GetTicks() etc.) int Sender; // ID of Sender int Receiver; // ID of Receiver Telegram(int tMsg, …

Member Avatar for fandango
0
186
Member Avatar for Fbody

I'm doing some self-study concerning statistics right now and while doing so I want to get some practice with templated classes. As a result, I'm working on a collection of templated classes designed for statistical analysis. What I would like to know is how I would handle creating typedefs for …

Member Avatar for nbaztec
0
1K
Member Avatar for myk45

Hello. im quite new to Trees. i have been practicing with Binary Search Trees. Well, here the way of building a tree is just comparing a value with the current node and deciding where the new value is put. i mean: say 3 4 1: 3 goes first then 4 …

0
58
Member Avatar for helpfullProgram

Hello fellow Daniweb members! Really this forum can't be what it is without you guy's... Just a quick question, can you incorporate the windows file explorer in a C++ application to save and open to a chosen file path? I am asking because I have seen it in other app's …

Member Avatar for nbaztec
0
92
Member Avatar for cortez716

1st off, just want to say if you're reading this, thank you for taking your time to help me out, I really need it. Ok now on to my question: Using C++ I'm attempting to use a "for"loop to ask user to input two integers, then the loop should add …

Member Avatar for dalymiddleboro
0
369
Member Avatar for cogitoergosum18

(sorry i miss-typed dev c++ IDE) hi, i am a CS class right now, and my professor uses VS 2010. I on the other hand am cheap, and i opted to get dev c++ as a Integrated developing environment. I wrote this code for a project due tomorrow and it …

Member Avatar for Ancient Dragon
0
163
Member Avatar for RobBobSmith

Hello all, I have a text file called: concentrations.dat The file contains a lot of different data. Here's the data that I'm interested in: # ET: list of elements <ET> 'Cu' 'C' 'Sr' 'He' 'Mg' 'O' 'Cr' What I want to do is read the elements into a vector called …

Member Avatar for RobBobSmith
0
249
Member Avatar for fire_
Member Avatar for lukename
0
315
Member Avatar for jimmys_

Is there a way to list all open file handles for a certain process using the pid?

Member Avatar for jimmys_
0
505
Member Avatar for Stefano Mtangoo

There are many decent sites for C++. However, some of Dev, including me, works most of the time offline. So I need to have one for reference. If anyone knows a decent one then please post a link Thanks

Member Avatar for onoffon
0
146

The End.