General C++ Programming - March 2011 (Page 2)

multi-threaded sorting program
 
Hey guys, whats up? I made a program for school that uses 5 different sorting methods and outputs the results. I thought it would be fun to see if a multi-t...
[5 replies] Last: Oh... Well, usually, you want to have one sorting algorithm implemen... (by m4ster r0shi)
by rpar
deprecated conversion from string const to char*
 
I am having an error after compiling the program with above warning. i believe i'm doing something wrong my code is as below. program terminates with seg fault ...
[2 replies] Last: thanks Zhuge for quick reply, i understand the why... but dont get it ... (by rpar)
double to float and caused problems
 
I have a project with lots of files. I used double anywhere and now want to make it float by this #define double float . I also used some functions from <math...
[3 replies] Last: Search/replace and use a typedef like suggested. #define double float... (by firedraco)
Registration of arguments acquired using variadic templates and tuples unpacking question.
 
Hello, I am currently working on an Event library based on Variadic templates, and I need your expertise to help me optimize my approach of the delayed events....
[7 replies] Last: I was not aware of the move C++ technique and Rvalue references (I am ... (by naaokth)
Sentence Tree Program Issues
 
hey everyone, I'm trying to write a program to get a sentence from input, create a tree of the sentence in alphabetical order moving left to right, output the t...
[2 replies] Last: mind explaining a bit? EDIT: seem to have fixed it(i think) ... (by iiiiaann)
Help me with XOR encryption? (1,2)
 
I need to make a program that asks the user to input a file name, then a key, then an output file name. I need to use an XOR encryption that encrypts character ...
[20 replies] Last: it's a useless attempt at ambiguating the results =) It this weren't ... (by ultifinitus)
Converting input to integer on one line
 
Basically, my intention is to do something like this: while (stack.push(cin.get())) { cout << "\nInteger " << stack.peek() << " was put onto the stack....
[2 replies] Last: That works, but it wasn't exactly what I was looking for. Thanks. ^_^ (by HappyDas)
by ashly
files .ini
 
i want to know how we create files with extensions .ini and how manipulating them in a program? my exact prroblem is that in my application i have to acess to ...
[5 replies] Last: Thanks a lot PanGalactic you made all the project's classes clear now ... (by ashly)
const reference to stl vector
 
i have a function that takes a reference vector bool checkSum(const vector<int>&,int,int&); If the vector is passed as constant refrence, an error messag...
[4 replies] Last: vector::begin() is overloaded (one const) and which one is called can ... (by moorecm)
PLEASE HELP ME MAKE MY CODES SHORTER USING FUNCTIONS
 
Hi Guys. I'm just new here. I just want to seek help. We have a project in Visual c++. #include<iostream> #include<time.h> #include<windows.h> #includ...
[4 replies] Last: Try with Question questions ; questions = Question("= CATEGORY: H... (by naaokth)
sscanf help, please :)
 
well then, I'm implementing a serial interface with my arduino and I'm having some trouble parsing a string. the string is: char * temp = "t "; I wante...
[5 replies] Last: You don't need to additionally specify 's' suffix when already using t... (by simeonz)
by nushki
system() function, evoke other programms grom *.cpp
 
Dear All, i need to evoke other program from a *.cpp and i use system() function. i do it in a cycle and feel like system() spends much more time loading tha...
[6 replies] Last: this earth - Orion game sounds fun!!! thank you for your reply. It'... (by nushki)
Creating vector of objects.
 
I am writing a program that takes one file and compares its data to that of some bunch of other reference files. I created a class that takes a file path and us...
[2 replies] Last: Sorry, that's a typo. I'll fix it. Thanks. (by WarPhalange)
by avnis
i need help at figuring this out
 
so here is what i got as of right now //main.cpp #include"city.h" #include<string> #include<iostream> #include<vector> using namespace std; vector <...
[no replies]
Command Line Warnings
 
Lately I've been flipping through graphics programming books trying to get a feel for it but I've been stopped short by either my compiler or some other fa...
[no replies]
Problem with function
 
Hi All Can anybody tell me what is wrong with this function. int inputAndValidate(int entranceHourP , int entranceMinutesP, int exitHourP, int exitMinute...
[2 replies] Last: You can only return one value from an function. :/ When you pass vari... (by Albatross)
Newbie here, could use some help :)
 
I am taking an intro to Computer Science and have been doing pretty well so far. Alot of the programming is getting tough as of late and my assignment is to do ...
[14 replies] Last: Programmers don't fall asleep or get tired It's natural for humans t... (by closed account zb0S216C)
c++ dll protection
 
Whats the best way to ensure that a dll written in c++ can only be accessed by "authorized" applications? I thought about a password but information is so easy...
[13 replies] Last: You are wasting your time to do all this super complex stuff. If you ... (by Duthomhas)
problem to link c++ and fortran
 
Hello everyone, I am trying to use a Fortran library in my C++ code. I have already succeeded in calling a routine of this library in my program. But now, th...
[4 replies] Last: Thank you all for your answers. Finally, I have found my mistake. It w... (by nicolas bachelard)
March 2011 Pages: 1234... 31
  Archived months: [feb2011] [apr2011]

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