General C++ Programming - September 2011 (Page 4)

release mode question
 
hi all my friend . when i want to release my project in multithread mode the compiler take : Warning 1 warning C4722: 'myClass::~myClass' : destructor never ...
[4 replies] Last: i have several thread in my program just want release them with exitpr... (by ahura24)
by vi87
Return -1
 
Hi guys. How can I return 255 in this function when char& is not const??? char& myString::operator (const int index) { if (index < this->l...
[4 replies] Last: Thanks for your answers guys. Sure thing that exceptions are the way... (by vi87)
USB device as input
 
Basically I would like to know if you can take the output of a USB device and use it as your input for a program that you have written? The second thing is i...
[1 reply] : The computer communicates with a device using a device driver. Assumi... (by kbw)
by Noel
counting words
 
Hello i am just beginning how to program and my assignment is to be able to count the number of character, spaces, and words. well my programs counts the charac...
[1 reply] : I will start with the basic logic pattern: first off I would start wi... (by Azagaros)
Help can't figure out my mistakes
 
Program Description: This test, or driver, program, which demonstrates the "while" // A-1-1-02 repetition statement, determines gro...
[5 replies] Last: In your 'class payroll', you CANNOT have a program running. A class is... (by whitenite1)
by gh24
Help Outputting Data into CSV from C++
 
Hi guys, I am having trouble getting my code to output the data into a CSV file. Here is the main function. Everything runs correctly and the main function...
[5 replies] Last: The file the example creates is CSV format: 3,1.2345 4,6.7890 5,3.14... (by Duthomhas)
Writing my own String-Split function
 
Hello everyone, I have been programming in C++ for about six months now. I was helping a friend with a project when I came across this strange error. My split ...
[5 replies] Last: Playing with string tokenization is something I enjoy. I've written ab... (by Duthomhas)
by vizard
Weird runtime error
 
WHy does this program work when the latter program doesn't? #include <iostream> #include <vector> using namespace std; int main() { vector<int> ivec...
[1 reply] : I would assume it is because in the case where it does not work there ... (by LB)
by LB
Trying to make an INI Parser - almost working!
 
I'm having trouble reading group names in my INI parser... I have this code as part of my class: std::map<std::string, std::map<std::string, std::string> > da...
[no replies]
by Phiru
I am capturing Audio...
 
Hi. Im working about capturing audio from Mic. it works when i use only one sound device. However, I have 2 sound devices, so i wanna record all of sounds f...
[2 replies] Last: Thanks Computergeek01. And Yes, You're right. I am using Win32 API. I... (by Phiru)
any way to run a while loop after an if statement without using else?
 
I want to check something in an if statement, then regardless of its result run a while loop after. and I can't just use if (statement){ //code } while(s...
[6 replies] Last: -- removed since resolved (by navlelo)
String to int
 
I'm reading input from a file and I need to input part of it into an integer. The problem is I'm using substrings to read everything in and when I try to conve...
[1 reply] : Here is one way: #include <sstream> void func() { int i; st... (by Galik)
by Mat001
Knight's Tour - exit condition
 
Hi all, I'm touring a knight on a chessboard in L-shaped moves. The knight needs to avoid already taken squares and not to go off the board. The knight at s...
[1 reply] : In order to know if the user is "stuck", you'll need to check all poss... (by Disch)
problem in compiling a chat server app using a vs 2010
 
im working on a command line chatting app i am done for now but my only problem is that i cant compile my project so plzz if any one can help i appreciat...
[3 replies] Last: seems like it can't find chat_server.h , add it to the directory The ... (by tech junkie)
by Snhr
Organizing My Music Library
 
I've been looking for a reason to get programming in C++ again, and I realized for my to get my music library looking like I want it to, I'll have to somehow ma...
[1 reply] : It seems like a fun project, but programs like this already exist. ... (by Disch)
Eclipse CDT Error: "Type can not be resolved"
 
Hi all, We've got a legacy c++ system under a linux server and using samba to share the code..I am then using Eclipse CDT to modify the system with cygwin gc...
[4 replies] Last: I am experiencing the same error even after taking an existing makefil... (by steowens)
Error Compiling a chat server app with SC
 
im working on a command line chatting app i am done for now but my only problem is that i cant compile my project so plzz if any one can help i appreciat...
[no replies]
liked list method to delete all elements with a given value
 
-- removed since resolved
[6 replies] Last: nevermind, sorted it with an else if -.- (by navlelo)
Secure Coding Course for C/C++
 
Klocwork and Security Innovations have an online course that may be of interest to C++ developers: http://developer.klocwork.com/klocwork-university/security-in...
[no replies]
What is up with this undeclared identifier?!
 
I'm trying to create a simple program that prints all of the prime numbers between 3 and 100 using Xcode 4.1. Here's what I have so far: // // Exercise 6Z...
[9 replies] Last: Can you show me your whole code, updated and with [co de] tags? (by anonymous23323124)
September 2011 Pages: 123456... 31
  Archived months: [aug2011] [oct2011]

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