51,593 Topics

Member Avatar for
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
168
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
183
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
204
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
169
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
204
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
94
Member Avatar for Man44ever

hey i want to change the textbox from the dropdownlist.....whatever item is selected from my dropdownlist i want to display in my textbox......i have used the below code but its not working. and i also want to autogenerate the code for employee code for eg. if employee first name Aaron …

Member Avatar for dnanetwork
0
86
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
393
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
166
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
255
Member Avatar for fire_
Member Avatar for lukename
0
333
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
572
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
150
Member Avatar for peter s kelly

I am trying to recompile a games program I first wrote about 12 years ago. It compiled then with a V. 1 C++ compiler and has run since on Windows 95, 98, XP and Vista machines. But it will not run on my new Windows 7 machine, hence the need …

0
45
Member Avatar for myk45

Hello. Can anyone please explain why the following code is not producing any runtime error? [CODE]int a[] = {1, 0}; printf("%d", a[-1]); [/CODE] PS:im using VC++ 2008. Thanks.

Member Avatar for myk45
0
317
Member Avatar for babydol

Hi I have a small program that takes a 10bit key, compresses it into 8bit key and does a left shift 8times, generating a key each time. I am using a one dimensional array to store the key value of each round. the probelm is that the next round over …

Member Avatar for Nemo_NIIT
0
167
Member Avatar for Jack_1

My friend said me a document that contains a large no. of spaces for eg- Where is the CeBit computer show held annually Hannover, Germany What is Error 403 ? Site Access Forbidden/Password Protected What is Error 404 ? Page/Site not found -in HTTP What is HotJava First web browser …

Member Avatar for mitrmkar
0
129
Member Avatar for sabareesh
Member Avatar for mitrmkar
0
64
Member Avatar for Archenemie

I made a quick program as my first venture into c++ but it seems to be buggy. As far as i can see my code seems logical, but the endl; above firaddress seems to be interfeering. Can anyone help please? [CODE]#include <iostream> #include <string> using namespace std; int main() { …

Member Avatar for Valaraukar
0
175
Member Avatar for malvi

Hello, I have made a program based rs 232 port with MFC. I want to get system call which gives me state, wether power is turn on or off. is there any system call which gives information of powerstatus? Thanks to all.

Member Avatar for malvi
0
93
Member Avatar for corby

Hey guys/gals for some reason in my main function my first while loop will not take in more than two values. any reasons why that wont happen? and just to be on the safe side, did I implement my remove function properly? [CODE]#ifndef SORTEDLIST_H #define SORTEDLIST_H #include<iostream> using namespace std; …

Member Avatar for prvnkmr194
0
160
Member Avatar for Mr.Barca

Hi everyone Im just a new student in c++ and im trying to read data from a file this file looks like 36 69 115 226 278 343 345 358 368 370 401 450 489 494 573 577 581 583 610 682 692 705 722 832 862 886 908 923 …

Member Avatar for Mr.Barca
0
121
Member Avatar for ITjulz
Member Avatar for poptop

Write a program that helps the user to consider a range of interest rates for a mortgage over 20, 25, and 30 years. Prompt the user to enter the amount of the loan and a minimum and maximum interest rate (in whole percentages). Then write a text file containing a …

Member Avatar for prvnkmr194
-1
95
Member Avatar for qqwushi12345

A pair of (positive) integer numbers are called twin primes if they are both prime numbers and the difference between them is 2, i.e. they are consecutive odd numbers and they are prime numbers. (3, 5), (5, 7) and (11, 13) are three examples of such pair of twin prime …

Member Avatar for BhaskaR RaO
-1
165
Member Avatar for dusk85

hi,i'm currently working on a project that requires me to use waspmote IDE. I faced problems with using [COLOR="Red"]void printData(char* data )[/COLOR] in my source code as shown below: void setup(){ // Powering BT BT.ON(); // Init if(!BT.init()) USB.println("Init OK"); } void printData(char* data ) { uint8_t uart=0; printString(data,uart); printByte('\r',uart); …

0
33
Member Avatar for dumrat

Hi, I want to expose an API for DLLs. The DLLs will be loaded from the application and there should be API functions DLLs can make use of. These API functions will affect the application. Is there any standard way of doing this? Can anyone give me some keywords to …

Member Avatar for dumrat
0
78
Member Avatar for JaksLax

So what I am trying to do is to have a header file which declares lists in it. Everytime I complie it, it does not know what a list is. Here is my header file called MergeSort.h [code] #include<list> class MergeSort{ public: MergeSort(); bool sortedIsEmpty(); int sortedGetLenght(); bool sortedInsert(int); bool …

Member Avatar for nikash
0
3K
Member Avatar for Stefano Mtangoo

I haven't noticed this until I tried it today and boom! Compiler complained: [COLOR="Red"] error: constructors cannot be declared virtual[/COLOR] Why then Constructor is not okay while destructor is, in such as class as this? Thanks [CODE=C++]class MyAbstractClass{ public: virtual MyAbstractClass(std::string username, std::string password)=0; virtual ~MyAbstractClass(std::string username, std::string password)=0; virtual …

Member Avatar for Stefano Mtangoo
0
577
Member Avatar for TinhornAdeniyi

Can someone tell me what wrong with this code i am supposed to create an array of struct of cars and then add 1 to the car sold then find the inventory value comprising of all car values this is my infile lexus IS 35000 10 bmw 740 90000 5 …

Member Avatar for TinhornAdeniyi
0
163
Member Avatar for bigwhiteegg

the following are my utility.h which i got from my professor there is error 2332 on line 5 & 6 after doing a bit of searching i do understand what does the error means but i just not quite sure how to fix it! can someone explain it to me?? …

Member Avatar for Ancient Dragon
0
130
Member Avatar for chinchan

Can anyone give me an idea of peralel program using mp.i and shared memory

Member Avatar for Stefano Mtangoo
0
72
Member Avatar for Nandomo

Hello I was wondering how can I set a char limitation in my code when I am asking for an int? When you input a char my program goes crazy. Let's put the following simple program as an example: [CODE]#include <iostream> #include <iomanip> using namespace std; int main() { int …

Member Avatar for Nandomo
0
2K
Member Avatar for crodriguez08

Hey there, I'm having trouble figuring out the next step of my program. What I'm trying to do is make a function that will add two polynomials, and I don't know how to exactly fix it. My first question would be if the Polynomial operator+ function is right, or whether …

0
108
Member Avatar for bigwhiteegg

I had just started learning C++ for couple months n this program is involved with pointer there is a bug in my "doInsert" function however, I dont seem to be able to figure out what is wrong with it every time after I enter the "position" the program crashed can …

Member Avatar for bigwhiteegg
0
130
Member Avatar for juvelyn

please help me on my program,on how to compute the interest due,total amount due, and the minimum payment for a revolving credit account.The program accepts the account balance as input, then adds on the interest to get the total amount due. The rate schedule are the following: the interest is …

0
37
Member Avatar for timb89

im trying to write the post order print out of a preorder binary tree reading into a text file though everything i have attempted to do so far as resulted in an error. ive tried reading the preorder into stacks, queues, arrays, and the best ive been able to come …

Member Avatar for timb89
0
164
Member Avatar for lasl0w

Can anyone help me figure out why I have a segmentation fault error occurring during runtime? I'm guessing that I am accessing memory that doesn't exist or attempting to place data into a node that hasn't been allocated, but can not figure it out. FYI - It's a work in …

Member Avatar for lasl0w
0
111
Member Avatar for lainho

I'm currently in a data structure class and i have little programing experience. The assignment is A. In this part, you are supposed to design an integer random number generator that would produce random numbers between 10 and 99 (both inclusive). Design schemes to evaluate its performance as a random …

Member Avatar for lainho
0
139
Member Avatar for jibrownie

please help, the program converts polish notation to reverse polish notation yet when i try to print out any of the elements of string bits or equat it gives me an error [CODE]sing namespace std; string equat, StringBits[26], hold, str; char c = 'a', oc; int i; int main(int argc, …

0
21
Member Avatar for edwalk

This program is suppose to grab the first letter of each name and then output the initials. #include <iostream> using namespace std; const char blank= ' '; const char newline= '\n'; void main() { //Declare character variables char firstInitial, middleInitial, lastInitial; cout<<" Please enter first, middle, and last name separated …

Member Avatar for edwalk
0
89
Member Avatar for fukki

Hello, In some functions of my program this code doesn`t work normally [code] string w1; string w2; cout<<"1st msg: Enter 2 words: "; getline(cin,w1); cout<<endl; cout<<"2nd msg: Enter 2 words: "; getline(cin,w2); cout<<endl; cout<<endl<<"w1: "<<w1<<endl; cout<<"w2: "<<w2<<endl<<endl;[/code] But when i run it is some functions(except main and some others) of …

Member Avatar for Ryaether
0
111
Member Avatar for XenoGearX

I'm a first semester student of Master degree and i need to implement a project in C# that uses a database with transactions and any kind of monitoring. I already know how to connect a database with C# and i know how to work with databases, but i don't have …

Member Avatar for XenoGearX
0
116
Member Avatar for MyrtleTurtle

Is it the boost library? Regex in particular? I have searched and searched, but this is all I could come up with. If this is the correct library, then how do I get it to work in Dev-C++? I managed to add all the boost .h files to my Dev-C++ …

Member Avatar for mike_2000_17
0
370
Member Avatar for maharjun

if a pointer is a dangling pointer and one applies delete[] to it. is the result defined or not. i basically have the following situation [CODE] class A { private: int *p; //other data members public: //rest of class } [/CODE] i intend to initialise p in the constructors. but …

Member Avatar for mike_2000_17
0
1K
Member Avatar for lradske

i have made a program with a vector that is a instance of a class student with three variables. i have stored the information and calculated the class average. what I want to do is get the person with the highest test score and output "this student has the highest …

Member Avatar for Ancient Dragon
0
117
Member Avatar for Suzie999

I'm having a little trouble returning the current date from a dll function. Here is my code [CODE]LPSTR __stdcall date() { int i; char dateStr [10]; _strdate( dateStr); LPSTR string = ""; for (i = 0; i < 10; i++) { string += dateStr[i]; } std::cout<<dateStr<<"\n"; return dateStr; }[/CODE] I …

Member Avatar for Suzie999
0
133

The End.