General C++ Programming (Page 29)

Merging two int text files
I have come up with code for this, but am currently having issues finalizing it. It seems that it on...
[9 replies] Last: What is the point of passing empty streams? For a homework, nothing,... (by Duoas)
Problem with sorting using rand()
Hello,i'm sorry to bother you with simple question like this but i'm learning c++ and i can't seem ...
[3 replies] Last: Thanks! (by herman13)
Using array initialisation list for my own class
Hi geeks, i'm currently working on a research project and i've been given some specifications, one o...
[3 replies] Last: Thanks guys! This place rocks! Though the solutions aren't what i real... (by Olyboy16)
Checking if a program is running
I have a question, how can I check if a program is running using c++? For example if (notepad....
[3 replies] Last: You use that function that kbw showed you. This unfortunately requires... (by NoXzema)
Help please on basic error
cout<<"************************************************************************"<<endl; cout<<"|\t...
[3 replies] Last: On line 6, remove the ; at the end of the line. Same thing on line 11... (by Stewbond)
How to extract and modify a "sub-vector"
I have a std::vector<int> and I want to modify subset of the elements. I thought I might be able to ...
[3 replies] Last: I mean something like std::for_each(a.begin() + 3, a.begin() + 7, (... (by Cubbi)
C++ Program Bug need Help
Hey, I've got a problem in the following program: (actually it's a little simulation of another ...
[4 replies] Last: thanks man. it's working now :) (by Sleicreider)
need help for typecasting
How can you convert int type to const char*
[2 replies] Last: const char * text = "Some words."; cout << text << endl; ... (by Chervil)
Just starting C++ Curious on what to learn for basic projects
This is what I need to learn by next may, plenty of time, but no idea where to start on these, I hav...
[3 replies] Last: Write a program that takes in a division, and instead of outputting t... (by kbw)
Tag Mobility Code
Hello experts, I really need help with this problem. I divided my question into three sections, Init...
[6 replies] Last: So does that mean you're simulating a vehicle that moves around with a... (by coder777)
by bonho
real time processing
I'm developing a platform that is expecting to receive signals, process them, and react by sending i...
[5 replies] Last: My in-signals are generally network messages or internal messages with... (by bonho)
Given a parameter pack, create any new one from it
First basic kind: template <int OMIT, int TAKE, typename TUPLE> struct partial_tuple_concrete {...
[10 replies] Last: Ok, I think we are done then. And I thought of a very general applica... (by prestokeys)
by JJ1972
Change length of an array using gdb
I have a program with the following code, and I need to be able to either change the value of any or...
[1 reply] : To store values into arbitrary places in memory, use the `{...}' cons... (by kbw)
Pointer data members!
From many literature sources(online and print), one is instructed that if a class has a pointer data...
[2 replies] Last: The compiler-generated copy constructor and assignment operator will c... (by helios)
How to retain fraction form, not decimal of division
I need to set something up whereby the result of 10/4 = 10/4, not 2.5. Basically if the result isn'...
[6 replies] Last: boost::rational<int> r( 44, 14 ) ; // 22/7 int numerator = r.numerat... (by JLBorges)
While loop
I have a question, how could I use c++ to try and figure out a password. If you are wandering, yes I...
[1 reply] : You would launch the batch file with CreateProcess from the WinAPI and... (by Computergeek01)
How to include spaces in counting string characters
So i have this program that's supposed to count all the characters including the spaces without usin...
[5 replies] Last: Ok. For now, you could use a for loop if you wanted to repeat someth... (by Chervil)
by Rosen
Need an advice for a program !
Hello guys ! So I made this program: #include <iostream> using namespace std; enum BOOL { FALSE...
[1 reply] : There is so much wrong with your code, where do I start ? :) Pleas... (by Softrix)
Pass by const copy
I have never seen anyone pass by const copy and there probably is a reason. I know that the compiler...
[10 replies] Last: @Galik I think that your solution of using const qualifiers for the a... (by benbalach)
Radix Sort Not working
Hello, I'm trying ultimately to do a radix sort. I'm going with the implementation using two tables...
[2 replies] Last: naraku9333, I changed that part to: void radix::insert_into_sorted ... (by Joshua Schweigert)
Pages: 1... 2728293031... 40
  Archived months: [may2014]

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