General C++ Programming - February 2014 (Page 28)

by mhk313
permutation of 2 strings
 
Hi I want to write a program that gives 2 strings(char type) and combine them in different ways. for example if 2 strings are "abc" and "mn" the program shou...
[2 replies] Last: In c++: #include <iostream> #include <string> #include <algorithm> #i... (by Smac89)
Tilemap with Bounding boxes?
 
I am currently working on a platformer. Just got the view and tileMap working. I also have a square moving around but it still goes through my tileMap. I would ...
[no replies]
Get the surrounding coordinate
 
For example I have this map # #### ## # ...
[2 replies] Last: I cannot grasped your answer What is the condition for a coordinate t... (by rmxhaha)
helping with registry
 
this program should make the hibernate off ; but i dont know what is the problem of my program ! #include <windows.h> #include <iostream> #include "str...
[1 reply] : Are we getting an error when you try to compile? If so then what might... (by Computergeek01)
Program not doing cout
 
So my program compiles and runs correctly but it doesn't do what it's supposed to at the end. It is supposed to display the number of methods in my own code but...
[4 replies] Last: You're looking for method names inside your LOC object. But your LOC ... (by Disch)
by mabbia
heap memory
 
whats the error in this ? #include <iostream> using namespace std; int main() { int size=10; char *p; p=new char ; char *q; q=new char ; q="He...
[1 reply] : #include <iostream> using namespace std; int main() { int size=10; ... (by Peter87)
Completely random distribution of numbers
 
I'm looking to code a completely random distribution of numbers that doesn't affect performance using rand. I believe this code would be ideal but I don't under...
[2 replies] Last: Appreciate it man, I'll check out that header! (by ALEXCX2PLUS)
by phooh1
Calculate wind chill
 
I am new to this and have no experience, so any help would appreciated. Here is my problem: Wind Chill = 35.74 + 0.6215T – 35.75(V^0.16) + 0.4275T(V^0.16) No...
[3 replies] Last: #include <iostream> #include <string> #include <iomanip> #include <... (by Danyal)
const char* as a buffer?
 
I want to use a const char* as a buffer. I am reading values from a file and adding them to a buffer. How to extract the values is simple enough. I am readi...
[6 replies] Last: I hope you don't use strcpy() or other C functions to manipulate that ... (by modoran)
<> TwoDim Array
 
Using a two dimensional array, I have to display a list of totaled scores for a diving contest. Each diver has five scores and there are five dives per diver...
[no replies]
Require Some Insight On Proper Fundamental Type Overloading
 
Hello there. I am currently working with the fundamental types in C++, and there is some ambiguity (which I have tried to solve). I am creating a function...
[3 replies] Last: @kbw That is not helping a lot tho,.. #if defined(__cplusplus) && ... (by Bourgond Aries)
Fitting Routines (Sinus)
 
Does anyone have data fitting routines? I want to fit datapoints with a sinus or with a linear fit. Thanks for help.
[3 replies] Last: GSL? http://en.wikipedia.org/wiki/Curve_fitting#Software Numerical Re... (by keskiverto)
Help...how do i write test program for this copy constructor and assignment operator?
 
ok so how do i write main test program to test the copy constructor and assignment operator in this program...how do i know if its working as its suppose to?i j...
[1 reply] : how do i write main test program to test the copy constructor and ass... (by kbw)
by alsade
operator overloading (member vs friend) question
 
can someone please explain to me whats the difference between both functions (operator-)? #include <iostream> using namespace std; class point{ int x; int y...
[3 replies] Last: I guess one difference is that, if you had an object of a type that de... (by MikeyBoy)
Making a shape move (opengl, c++)
 
Hello guys. I wanna make the body (square) move left when I press the left arrow key. Unfortunately, it's in data structures and I don't know what to put in the...
[no replies]
HEAP CORRUPTION DETECTED: after Normal block (#131) at 0x00827A68.
 
Hi , I have created below String class and same called from Main function. When I execute main function, end of the execution in String class destructor whil...
[5 replies] Last: Yes, I did. Thanks again. (by schashr)
Out of scope and can't fix
 
When I compile my code it keeps giving me an error I can't seem to fix. #include <iostream> #include <string> #include <fstream> #include <cstdlib> #inc...
[5 replies] Last: The only place I can see that you've declared a variable called filen... (by MikeyBoy)
Displaying correct output (with Pointers)
 
Hi so I wanted to display the correct output by using a for loop at the end of my code, but for some reason it's not working correctly. Sorry in advance if I'm ...
[11 replies] Last: [quote=jidder]It works as intended. But it uses 99% cpu Having to go t... (by TwilightSpectre)
don't get random numbers every time
 
This is my program i have to choose for random number between 1-25 and display them the program works perfectly just that every time i run its always the same n...
[3 replies] Last: @giblit The value returned generally represents the number of seconds... (by TwilightSpectre)
How to accept numbers only
 
I am a complete beginner at this program and has no experience but trying my best to catch up. So what I want to do with my program is I want my length, width,v...
[1 reply] : You can check the std::cin fail bit to see if the input failed. Here i... (by TwilightSpectre)
February 2014 Pages: 1... 2627282930... 33
  Archived months: [jan2014] [mar2014]

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