General C++ Programming (Page 33)

Can extern and static be used together in a variable declaration.
 
Hi guys, I am trying to write a singleton class with a static pointer as a member variable and also...
[no replies]
Problem updating array and array pointer in "parallel_for" function
 
I'm trying to learn parallel programming, so I started by calculating prime numbers in parallel and ...
[4 replies] Last: JLBorges Thank you VERY much!!! This solved the problem!!! (by tigerlcf)
string to int
 
Hello, I am facing problems to convert a string(consisting of digits only) to an int variable...as ...
[19 replies] Last: Hello Again... Sorry for that...I was late in getting back to this thr... (by kinjal2209)
Filling three arrays at once.
 
Hey, I wanted to know if there is a more efficient way to fill three arrays of different size at onc...
[7 replies] Last: With these sizes const std::size_t N1 = 100, N2 = 10'000, N3 = 1'000'... (by JLBorges)
Linked Lists Problems
 
I am a college student trying to write a program that has a user enter a tracking number, type of an...
[4 replies] Last: In my class we have not used vectors yet. Just using classes, structs,... (by crm2017)
A design issue. How to design when we include a header file in different header files and try to use them in a cpp file.
 
Hi Guys :), I am facing class redifinition error when I include a base class .h file in two diffe...
[3 replies] Last: Thanks @AbstractionAnon :) (by kapil2905)
help with a function
 
im trying to get this program to run and i get errors that dont make much sense and i dont know what...
[5 replies] Last: void number_file (char in_stream, char out_stream); Line 8,27:... (by AbstractionAnon)
by B3b3L
Can some1 explain me this Problem!
 
Provide the implementation of the Update function that moves the object from his position to the des...
[15 replies] Last: this is true, i called it time, its sort of pseudo code. the importan... (by jonnin)
Single Linked List
 
Hey guys I am supposed to write a cpp file with the implementation of a single linked list data stru...
[1 reply] : First, please edit your first post to include code tags. Highlight th... (by doug4)
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...
[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 tha...
[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: ...
[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 ...
[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 flo...
[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 p...
[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 t...
[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 examp...
[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/vi...
[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 runti...
[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 u...
[no replies]
Pages: 1... 31323334
  Archived months: [feb2017]

Cannot post in this page. To post a new message, go to the first page.