General C++ Programming - March 2017 (Page 18)

by rp2345
Connect four game program
 
You are to create a knock-off of connect 4 that: allows for three players (I recommend using tokens X, O, B for the three players) looks for an 'L' of pieces ...
[2 replies] Last: well, you need a board, probably a (conceptually) 2-d array of charact... (by jonnin)
PPP2 Chapter 11 Exercise 2 (1,2)
 
Exercise specifications: Write a program that given a file name and a word outputs each line that contains that word together with the line number. Hint: g...
[22 replies] Last: If it interests you, try extending this so that if the word being sear... (by JLBorges)
How to use add_lvalue_reference as a template function parameter?
 
I have seen functions where add_lvalue_reference is used as a template function parameter. Eg: template<typename T> void f(typename add_lvalue_reference<...
[4 replies] Last: > template< typename T > void f( typename std::add_lvalue_reference<T... (by JLBorges)
Automatically saving the operation through passing the command line argument
 
I already have a save function in my tool as like a normal tools. Now I would like to add auto save function, that has to save all the operation that made in th...
[5 replies] Last: You could use timer. When the timer fires you call the save function (by Thomas1965)
Help Duplicating Array
 
ok so here it is. Here is my code to read my file 'CSC1244N.txt' and sort the integer values and float values in ascending order using a structure. #inc...
[5 replies] Last: ok so i was piddling around with my previous assignments and finally g... (by Jubberwacky)
Duplicate array??
 
I am trying so make a structure to sort int and float values from a file using an array. How can I print the printmaking array? The code sorts them but when I h...
[8 replies] Last: ok so i was piddling around with my previous assignments and finally g... (by Jubberwacky)
Header file and .cpp - Bugs ! - C++
 
Instruction: For practice write a header file code that includes your code, and write a .cpp file that tests your header file. Your .cpp file must test for th...
[3 replies] Last: The problem with the bugs are it is one after another. The problem w... (by cire)
Can public members of base class be initialised using initialisation list in a derived class.
 
Hi Guys :) I am trying to initialize a public data member of a base class (Animal class in my example) from a derived class (Cat class in my example) using ini...
[2 replies] Last: > all the public members of base class are inherited by the derived ... (by ne555)
Need help with win xp WIN32 console app
 
Would you mind converting my project https://drive.google.com/file/d/0B-ZE5xJRLFgwc3ZBUXFGcTFCSVk/view?usp=drivesdk to Win32 XP console application. I have trie...
[4 replies] Last: Thank you. However, I have used DEV C++ to build a new project directl... (by Codelyoko2409)
by rudi
Template function pointer argument
 
I have a container of variables that are created from template class and types are detected in runtime (stored in type as string). But.. Let's for example say ...
[8 replies] Last: Consider plain-old inheritance --store owning pointers to base classe... (by rudi)
arrays and strings
 
im having a hard time with a hangman game i have to read in the file of the sentences that will be use and the shapes each time a player get a letter word it pr...
[no replies]
Problem in Looping back to Start
 
now I'm Having problem in repeating the loop after it finished doing the first and i want to try it again without exiting the program? I've been using while loo...
[1 reply] : you can wrap all of main in a bool done = false; while(!done) { ev... (by jonnin)
Problem declaring typedef TOKEN_ELEVATION using windows api
 
Hello, i am trying to create one program to check if its running with admin rights or not and show a message at the user showing how he is running this applicat...
[3 replies] Last: TOKEN_ELEVATION is a type. See: https://msdn.microsoft.com/en-us/li... (by coder777)
Help!: Printing out all monotonic functions
 
Dear Cplusplus friends, I am a rookie in C++ programming language who is trying to learn the C++ through working with problems in computational mathematics. ...
[3 replies] Last: the program will run until numerical limits are reached which will tak... (by jonnin)
Cross Correlation of Two Signals
 
Hi, I'm fairly new to programming and cross correlation but I'm attempting to develop a DSP to automatically time align a signal from a mic and a signal from a ...
[1 reply] : If anyone might have any advice on this, it would be really useful for... (by EdJames94)
Encryption/Decryption Function
 
My encryption/decryption function will not run correctly. I am able to grab the command (encrypt or decrypt) and grab the string of character/words to work with...
[3 replies] Last: Got it, thanks for all the help. (by glennyballs)
Euclidean distance between std::vectors
 
Hello People, I am stuck with a problem here, so I need your wisdom. The following is a template for computing the euclidean distance between two std::vec...
[2 replies] Last: Excellent JLBorges! Thank you very much! (by dariodem)
Memory Access Error Vector
 
Hello, I'm gettin a memory error. I'm not sure what's wrong. Program received signal SIGSEGV, Segmentation fault. 0x0000000000401e8d in std::__copy_mo...
[3 replies] Last: Looks like the line // Generate patch ... (by elbanono)
-Wreorder
 
Hi all, I'm working on a project that uses a hash table I wrote a while ago. I'm getting the following warnings (AFAIK, it's not actually affecting anything ...
[2 replies] Last: It's logical to assume that the member variables will be initialized i... (by Peter87)
Send Unit8
 
Hi all I want to do my project using openvibe and another software. i made a connection between these two software. in OpenVibe we have a sign change detec...
[no replies]
March 2017 Pages: 1... 16171819
  Archived months: [feb2017] [apr2017]

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