49,757 Topics

Member Avatar for
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
164
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
556
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
101
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
160
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
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
137
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
88
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
107
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
363

The End.