General C++ Programming - October 2013 (Page 38)

Help with a simple counter project
 
Hello guys, I must admit that I have no idea how to complete this task at hand. I am stuck taking this class even though it is not my major and I am completely ...
[1 reply] : here is a hint http://www.cplusplus.com/forum/beginner/112852/ (by Chriscpp)
by LB
Strange error with using type aliases, compiles fine in clang but not MinGW
 
I have code that compiles just fine in clang++ 3.3, but when I use nuwen MinGW 4.8.1 to compile this it gives a strange error that (as with last time) I cannot ...
[5 replies] Last: Yeah. Thanks LB. (by JLBorges)
by GCODE
Populating an Array (1,2)
 
I am writing code for a program that will take user input selection of columns and determine an array based on that. The number of columns will be user selec...
[21 replies] Last: Download boost from here: http://www.boost.org/users/download/#live D... (by JLBorges)
vector of class
 
Hi, I am making a simple program that is suppose to make a list of champions and their items from the game League of Legends. I am stuck on making a vector of ...
[3 replies] Last: Ok, now I don't know how to input from a file into this vector I made.... (by crimsonzero2)
Please help for this problem////
 
Hi The question asks that The one-dimensional array A of integers is given. Increase by 2 each its non-negative element. I made this program but compiler says...
[3 replies] Last: Please do not double post. It clutters forum and is considered inappro... (by MiiNiPaa)
Trouble calling overloaded virtual method
 
Im trying to create a map container with the key being an ID number and the value being a pointer to a class object. Currently Im creating objects and storing t...
[3 replies] Last: Don't forget to delete whatever you new ;) (by LB)
A more efficient way to monitor a file?
 
I have a program that is now working. it reads from a log file and acts according to what was read. once it has reached the end of the file (when peek=-1) it ...
[3 replies] Last: A more effecient method would be to ask the OS for file system changes... (by closed account S6k9GNh0)
Help displaying inverted pyramid
 
The user will enter the number of '*'s on the 1st row (ntop) and then the number of rows forming the trapezoid (nrows). (using <iostream>, cout) For instanc...
[3 replies] Last: #include<iostream> using namespace std; int main() { int ntop=0,... (by Chriscpp)
VGA Sequencer Memory Mode register bit 2?
 
When I look at the freeVGA info on the register (Sequencer register index 04h), it says: O/E Dis. -- Odd/Even Host Memory Write Adressing Disable "When this ...
[no replies]
VGA CPU write address (plane&offset) combined with VGA write plane mask?
 
Anyone knows how to get this done? When CPU writes happen, the function below gets passed a plane number (always 0 when odd/even disable) and a memory address ...
[1 reply] : Part 2: Host address to display address/plane code: void VRAM_writecp... (by superfury)
need help with arithmetic sequence code
 
This code is suppose to display arithmetic sequence after it has to add all the numbers together without a formula. for example: the starting number is 5, c...
[3 replies] Last: Most welcome, please do let us know if you have any further questions.... (by closed account o3hC5Di1)
Why Type casting???
 
Hi everybody, I am new to C++ and I have serious doubts over typecasting.... Why do we typecast in first place?....it makes sesne if we have to typecast amo...
[3 replies] Last: I think the reason he asked not to show that kind of example was becau... (by LB)
Images don't display
 
My code is: #include <iostream> #include <string> #include <cstdlib> #include <windows.h> #include <fstream> #include "SDL.h" #include <map> us...
[5 replies] Last: Thanks for catching that. Updated code: #include <iostream> #incl... (by closed account NUj6URfi)
by kyaaaa
heeeeelp!!!
 
im a beginner in C++ and i need my questions in the program to be randomized and i dont know what im going to do! could someone good at it help me please! my pr...
[9 replies] Last: soooooooooooooooooory about that .. my bad ^_^ well thanks for the pe... (by kyaaaa)
by tegi00
Quick question about using arrays in data structures
 
Hi guys, I've got a quick question about this block of code in my textbook. If someone could clarify exactly what it does I'd be really helpful. int **twoDa...
[3 replies] Last: i si the index to dimension 1. j si the index to dimension 2. i * j is... (by kbw)
by delio
How to read picture in HDC
 
#include "stdafx.h" #include "iostream" #include "conio.h" #include "windows.h" using namespace std; void main(){ HDC hdc = GetDC(NULL); DWORD color = Ge...
[6 replies] Last: Thanks :) (by delio)
Creating a user defined function to count number of vowels
 
The output I'm getting here just counts every letter in the sentence and counts them as vowels. I'm trying to make the user defined function return the amount o...
[4 replies] Last: Also, going by line 26, I take it just want to use single chars?? ... (by ajh32)
by kyaaaa
C++ // GUESS A WORD MODIFICATION PROBLEM
 
can anyone please help me modify my game "guess a word game" i need a question # 2 and 3.. can anyone help me! please!!! // "guess_word.txt" //What_is_appl...
[no replies]
by Daleth
Passing Lambdas as a Template Parameter
 
I've been playing around with this piece of code: #include <iostream> #include <string> #include <algorithm> template <void(*funky)(const std::string&)> void ...
[4 replies] Last: Oh, I did not realize it was an abuse of templates. I am not an auth... (by Catfish4)
Check the Leap Year Program In C++
 
Check the Leap Year Program In C++: #include <iostream> using namespace std; int main() { int yr; cout << "Enter year : "; cin >> yr; if(yr % 4 ==0 &...
[2 replies] Last: thanks agt... (by james005)
October 2013 Pages: 1... 3637383940... 46
  Archived months: [sep2013] [nov2013]

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