49,761 Topics
| |
(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 … | |
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 … | |
Hello. How can i make count-down timer on MFC program? Thank you | |
Is there a way to list all open file handles for a certain process using the pid? | |
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 | |
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 … | |
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. | |
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 … | |
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 … | |
| |
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() { … | |
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. | |
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; … | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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?? … | |
Can anyone give me an idea of peralel program using mp.i and shared memory | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.