General C++ Programming - April 2014 (Page 7)

by birbal
heap corruption
 
Works char* lastStr=new char[strlen(this->data)+strlen(st2.data)+1]; delete lastStr; //delete...
[2 replies] Last: you are exactly right, i have copy and concat function between this. I... (by birbal)
project attraction - 2
 
project attraction 1.there are six cabins ( from a - f ) ; 2. i need program to ask in which cab...
[3 replies] Last: No need to crosspost. If you post the code you have so far on the othe... (by wildblue)
How to transfer values set in privates of base class by an object of one derived class to an object of another derived class?
 
I have my main.cpp like this: #include <iostream> #include "curve1.h" #include "curve2.h" ...
[3 replies] Last: @AbstractionAnon Thanks for replying... No, I am forced not to use t... (by Silver Falcon)
Problem
 
I have the following problem on my C++ Program and I am not sure why it is not working. I am creatin...
[3 replies] Last: I still don't see code tags or any kind of indentation. (by AbstractionAnon)
Need help with little thing in creating game using SFML
 
Hello guys, I'm currently working on a 2D space shooter game in C++ using SFML library. What I need...
[1 reply] : There is some variable commonly known as velocity. Set the velocity of... (by Aceix)
vector with function
 
Write a function palindrome that takes a vector parameter and returns true or false according ...
[4 replies] Last: > + line 17 bugs says erreur Line 17 is a range-based for loop (added... (by JLBorges)
by vinnyo
Need some help with HW
 
This is the question: http://gyazo.com/b2ef477a7edade0fdd3a40ac084cd441 Now I have the binary nu...
[1 reply] : I have another simple method for solving this. #include <iostream> ... (by iQChange)
String In c++
 
How to define string in c++. When I try it it gives errors like given below #include<iostream> ...
[2 replies] Last: Thanks Lachlan Easton.now its working well.The problem was occurred be... (by mayur21)
infinite loop
 
Write your question here. on executing the program it goes to infinite loop,where should i make cor...
[4 replies] Last: Member variables 'r' and 'c' are not initialized for matrix "m3" in "... (by NVTKrishna)
Deque/Vector:push_back() memory leak
 
I hope someone can help me. I could not find the problem. I have an std::deque as class member vari...
[3 replies] Last: Leave it. If someone else stumbles across this thread, your solution m... (by helios)
Overloading < For Class
 
I thought this would be very simple, yet after searching forever and seemingly doing it right accord...
[2 replies] Last: Oh...yeah. Thanks! (by Eagleheart)
Need help with C++ program crashing after it executes everything...
 
Crashing after the whole program executes! Please help! main.cpp #include <iostream> #includ...
[1 reply] : Duplicate: http://www.cplusplus.com/forum/general/130293/ Please don'... (by cire)
Bubble sorting
 
hey i'm trying to make a c++ program of this but i don't know how to use the bubble sorting. i reall...
[5 replies] Last: @ mutexe LOL, you tried to get OP to use his brain and discourage sim... (by Duthomhas)
2d vector
 
How do I iterate through a two dimensional vector? To iterate through and print the elements of a s...
[2 replies] Last: Or, C++11: std::vector<std::vector<int>> v ; for ( auto& row : v ) ... (by cire)
HELP how do i create multiple sine waves
 
#include <cstdlib> #include <iostream> #include <math.h> #include <cstdio> #include <stdio.h>...
[8 replies] Last: #include "stdafx.h" 02 #include <stdio.h> 03 #include <tchar.h> 04 #in... (by angiemailo)
pizza price by size
 
Helo guys. How can i write a program that allows a user to enter a size of pizza and then print the...
[3 replies] Last: Depends on which programming language you are using but logic is essen... (by angiemailo)
Class with Pointers and Dynamic Arrays
 
(solved)
[2 replies] Last: Thank you so much! (by Cynthia401)
by Stom
How to change directory
 
How to change directory in c++ ( windows ) I want to go to the folder "example2" and I delete so...
[7 replies] Last: The directory at the end of the active path is called the current dire... (by angiemailo)
Help with saving a text file?
 
So, I am making a program with just a big text edit box in the middle. A word processor, really. I h...
[8 replies] Last: yeah I made a word processor in qt after iQChange sent that link. That... (by AceDawg45)
vector conversion to linked list
 
#include "guesser.h" #include "game.h" #include <iostream> #include <fstream> using namesp...
[no replies]
April 2014 Pages: 1... 56789... 41
  Archived months: [mar2014] [may2014]

This is an archived page. To post a new message, go to the current page.