General C++ Programming - January 2015 (Page 22)

Standardizing size of float across multiple systems
 
Hey all, I've got an interesting question for you that's more about application deployment than anything else. I'm currently writing a cross-platform on sc...
[3 replies] Last: A simple XOR-based encryption should suffice. Otherwise, display an er... (by S G H)
Need an example for OpenGL (1,2)
 
Hi. Could someone give me a short example in OpenGL with a moving or rotating 3D object? I'd like to see the source code, to understand how it works. I'll als...
[38 replies] Last: [quote=NoXzema]Oh? What company have you been hired at that showed thi... (by Avilius)
Vehicle routing problem
 
Hi guys. I am learning about vehicle routing problem using tabu search and I was wondering if any of you know a site where I could get source code for C++? I...
[no replies]
Problem with do...while
 
I want to input only values between 2 - 7 what is wrong? do{ cout<<"Podaj wykladnik\n"; cin>>b; }while(b<=2 && b>=7);
[2 replies] Last: Hey Robsonmg, b <= 2 ( b is less than or equal to 2) and b >= 7 (b i... (by closed account jh5jz8AR)
by FASI
A LITTLE HELP NEDEED WITH GAME HANGMAN
 
HELOO!!! I AM WRITING A CODE FOR A HANG MAN GAME AS MY FINAL PROJECT *i am new to c++ as its my 1st semester the code has a problem i want that if user inputs a...
[8 replies] Last: thanks again :D (by FASI)
Console window closes
 
I would like my program to be able to save input then make it possible for the user to make an input again and see if it matches the saved input? what am i d...
[2 replies] Last: A very simple way to save input between instances of your program is t... (by bugbyte)
by Gyiove
Check if i can do 'delete pointer'
 
Hello everyone! void myfuncion() { int *a = new int ; int b ; int *p = b; delete a delete p } I cant delete b and/or p ...
[5 replies] Last: What do you mean by out of scope? When a function exits, all the lo... (by AbstractionAnon)
Problem with fstream
 
Hello i am from Poland, so sorry for my language mistakes. I have to solve problem with my homework. Program have to write numbers for exaple "one" if i input ...
[2 replies] Last: oh.... yes, why I didn't think about case thank you very much! (by robsonmg)
Rational Type - Feedback appreciated
 
Hi there, I wrote a Rational class, which allows calculating with Rationals/Fractions. I have the code on github: https://github.com/Raincode/Rational If you ...
[10 replies] Last: All right, after thinking about this, and also asking on another forum... (by bugbyte)
by anhnha
Carray:: GetData() Return Value
 
I am confused about the return value of the function GetData() in Carray. const TYPE* GetData( ) const; TYPE* GetData( ); From the page: http://msdn.micro...
[3 replies] Last: I don't know why they use a cast. It looks totally unnecessary. (by Peter87)
Reachability Time Complexity
 
Hi everyone, I am trying to solve the following problem: I want to implement a DETERMINISTIC algorithm for direct graph reachability problem. I know that the...
[no replies]
not accepting that == sign
 
#include<iostream> #include<string.h> using namespace std; class laptop { private: enum {max=80}; char name ; int passwd ; char company ; i...
[1 reply] : Use std::strcmp to compare C strings (char*) or use == and make sure a... (by Peter87)
Programmer Wanted
 
Not sure if this should be posted here. Let me know if this message should go elsewhere. ------------------------------------------------- Looking for a C, C...
[1 reply] : <--- "Jobs" ^^ Happy new year! (by iQChange)
Exceptions : interesting problems
 
Hi, In order to test catching exceptions from an initialiser list, I deliberately did bad practice by hard coding an argument to a ctor that would cause a s...
[2 replies] Last: Hi, Thanks for your reply :+) For instance: What would the OS need ... (by TheIdeasMan)
program to print upper half of matrix.
 
This is a program to print upper half of the matrix. #include <iostream> using namespace std; int upperhalf(int n, int apu ) { cout<<"The upper hal...
[3 replies] Last: Thanks man :) (by gaurav97)
How would I get the Harmonic Pieces of a given Frequency
 
Hello, I am able to get a frequency from a data set using the FFTW algorithm, but I was wondering how could I get the top harmonic frequencies from the FFT...
[no replies]
morse code program c++ please help!
 
This is the text file: .- ...- ..--- .-- .... .. . -.-. -..- ....- ..... -... .... ...-- The text file outputs: AV2WHIECX45 BH3 If there are two spaces ...
[2 replies] Last: Thanks! (by stephanie4582)
c++ please help
 
This is the text file: zero;two;five;seven;eight;four three;seven;eight;nine;two The output is: 0257847892 The output is supposed to be: 025784 ...
[7 replies] Last: Thank you! (by stephanie4582)
read and rewrite lines in file in C++
 
I need little help with my homework in C++. My task is to write a function for borowing books form library called borrow(name,surname, student_id, book_id) , w...
[4 replies] Last: Thanks, it is very good now (by croatplayer)
How can I pass a pointer to member function (polymorphic structure)?
 
I am trying to create a callback system for input events in my game engine. Here is a cut down version of the EventManager.h file #include "Controls.h" #incl...
[6 replies] Last: Ohh ok. I almost had it correct, I just underestimated what std::bind ... (by mashedtatoes)
January 2015 Pages: 1... 2021222324
  Archived months: [dec2014] [feb2015]

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