Cplusplus

Doubles are giving me problems
Ok so, first of all i made a double = 0.05, but when running the debugger it shows up as 0.04999. I know this has something to do with how doubles sto

Calculating n! using vector
#include #include #include using namespace std; int main() { //declaration int i,n,num,

Dynamic memory problem
Hey, At the beginning of my code, I have this line: Shape* gShape = 0; As this is dynamic memory, I delete it at the end: delete gShape; gS

How to add an image/C++ OpenGL?
Hi, I have been trying to look online for this and, so far, I haven't found anything useful. I would like to add a .bmp image to an OpenGL window.

trouble printing an array....
I'm having some trouble printing out an array forwards. I'm figuring out the high and low of an array and did soo, but can't print out. My result is z

Program with calculate Meteorologic measurements
Hello I'm a beginner and I want to make a program with calculate Meteorologic measurements: base classe - time( hour, minutes). Derivative class -

Problem in String replace program's output
Hi all, I was trying to make a program which accepts a string and replaces it with another string accepted using pointers.The code following is error

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of integers of size 2^N, each of whose entries range

output printing as hexadecmal... XD
Everything works except the calcem call for the totusold and totuprice. The out put shows up as hex. Im not positive but i think i might have to use P

Any meaningful project for a new C++ programmer?
I want to do some meaningful program, so I can help myself to learn Assume I know the following # Chapter 1: C++ Fundamentals This module will

Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code: 1234567891011121314151617181920212223242526272829

read integers that returns a negative or prints the average
Im trying to finish this homework assignment by tommarow afternoon and I keep getting stuck. Write a Function that reads integers from the keyboard.

Multi dimensional arrays
If I put in this code: 123456789101112131415 #include using namespace std; int place[10][10] = {{0,1,2,3,4,5,6,7,8,9},{9,

function not returning the correct value
I have a program that needs to return a value from a function. I have an output statement inside the function just to see what the output is, and it s

Libraries in C++
Hi all, I have two libraries. one is based targeted on linux platform and uses another library which is windows based by default. By following

Check Digits and extracting digits
I think I can figure out the code for this but I am having a very hard time getting past the first step. Any suggestions are greatly appreciated.

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to report the cumulative sum of the entries to date. Th

Converting numbers to months
The porgram works -just need the last function(month_convert_ to convert numbers to months -thanks. #include #include

problem in program for counting no of chars using pointers
Hi all, I was trying to make a program which counts number of chars in a string using concpt of pointers. Following is the code: #include

constructor ?
i have written this program and made 3 constructors in the class and i want to call them in the main and i cant can any one help me and tell me how co

 

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash