49,761 Topics

Member Avatar for
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
316
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
512
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
147
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
314
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
165
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
127
Member Avatar for sabareesh
Member Avatar for mitrmkar
0
63
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
173
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
92
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
158
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
120
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
94
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
164
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
76
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
564
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
157
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
126
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
70
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
103
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
128
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
162
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
108

The End.