General C++ Programming - May 2012 (Page 29)

Finding the include library (1,2)
 
How do I reconfigure C++ 2010 so it can always find the boost include directory library when I put an #include <boost_1_47> statement in my code (I hope thi...
[26 replies] Last: You are correct, I cannot open the solutions, however, I did open the ... (by therry1)
by viliml
variadicizing theese classes
 
I got this code from sole archived post here: template < typename C, typename T = std::char_traits<C> > struct basic_teebuf : public std::basic_streambuf<C...
[no replies]
Differences between "iterative" and "repettive" cycle
 
hi... i'm new in this forum.. i have to ask you a question and i wish you have an answer for this.. what are the differences between " repetitive " and " itera...
[1 reply] : Iteration means cycling through memory from 1 point to another. Rep... (by closed account zb0S216C)
read from file
 
Hello I need to write a program that uses data from an extra file in the same directory as the main program this is the program im using at this moment: #i...
[3 replies] Last: This should help you even gives some examples http://www.cplusplus.co... (by candyfreak)
Two classes that need each others include file.
 
I looking at a state manager Online that someone has kindly decided to share http://gamedevgeek.com/tutorials/managing-game-states-in-c/ and it gets to the poin...
[2 replies] Last: Thank you. I knew there would be a simple solution. Thanks again for t... (by ubernoob)
Analyzing buffer text
 
Hi Guys ! i don't know how to analyze buffer text, getting from user, here is my code don't know where is the problem // here i'm getting and readi...
[2 replies] Last: Hi Peter87 ! Thanks for help and reply, just wondering how to give vo... (by menewbie)
complie .h file
 
how can i include a re-compilation/update for my own ".h" files within my makefile. This is my makefile: COMPILER = g++ SOURCES = main.cpp APP = e...
[5 replies] Last: Hi Guys ! thanks for showing concern, your help is appreciated and wa... (by menewbie)
"return" is not working fine (i'm trying to return an iterator)
 
Hi there, first, I'm new in this community, so hello everyone (and sorry about my english, I'm from Spain and maybe I'm not speaking well) Second, I am tr...
[2 replies] Last: Oh my God.. Great, the problem is solved... Thank you Peter87!!! Se... (by Kasswed)
const_iterator not able to convert in char pointer
 
hi all, I am trying to run a c++ code, which is a open source. And already tested visual studio 6 and .NET 2003. I am trying to run it on VS 2005. The code i...
[9 replies] Last: hey Peter, thanks buddy. It;s working now. cheers!!!!! I made two ch... (by mini20071985)
read two characters at a time from file
 
i am a total beginner who wanted to store two characters from a file at a time into an integer array for instance 65678393//content of file array =65 ar...
[1 reply] : Your best bet is studding, for example start here: http://www.cpluspl... (by codekiddy)
by rucafe
Problem Compiling in Release Mode
 
Hello. I have created a program in debug mode. I am trying for the first time to compile the program in release mode to increase performance. I am running visua...
[2 replies] Last: Error 1 error C1083: Cannot open precompiled header file: 'Release\fi... (by codekiddy)
Terminal closes after 13 seconds
 
Hi I am using Visual Studio 2010 and no matter what code I run, the command line interface closes about 13 seconds after I run the program! It is incredibly fru...
[1 reply] : You should either run your console program from the console (as you ou... (by Zhuge)
C++ programming. Please Help!!!!
 
This program is supposed to read what user inputs backword. The errors I get are: Line 33: expected primary-expression before ']' token Line 34: expected prim...
[6 replies] Last: if I put integer, I get the error: Line 33: invalid conversion from '... (by Zhuge)
help with book problem
 
I am taking a c++ course and we have an assignment out of the book, he gave us an answer sheet but the program does not work correctly. when it runs we get an e...
[1 reply] : Try using a debugger to figure out when the error is occurring. (by Zhuge)
by h9uest
Socket programming: unable to connect across network
 
Hi: I have a laptop and I'm doing some socket programming on it. I want to write a server listening on a port and serve requests from anyone who connects to...
[6 replies] Last: @naraku9333: Thank you very much for the reply. I've resolved the issu... (by h9uest)
How to compare a certain character in a string WITHOUT the .at() function?
 
I need to compare a string's letters to another char (a guess in my hangman program). The string temp; comparison bombs out and stops working in the if statem...
[7 replies] Last: My apologies for the lack of information; the declarations are as foll... (by Confusedx)
Writing binary file
 
Can any one give the explanation of these two statements?? outf.seekp((c.acctNo-1)*sizeof(client)); //position from beg outf.write((char*)&c, sizeof(client...
[2 replies] Last: (char*)& means that the data is type-casted to a char pointer refern... (by slicedpan)
by phoemi
Inherit from cout - how to override "<<" operator & forward to base
 
Using c++11, but I don't think that matters here. output.displayHeader() must execute before the inherited from ostream (cout) executes streaming data, or ba...
[no replies]
putting includes in seperate files?
 
if i wanted to put all my includes inside of one file, so that i could access them all in one line, would i have to use a .cpp or .h file? also could this cr...
[2 replies] Last: thanks :) (by even821)
Running out of time
 
I have this due really soon and I have no time to spend on it! Is there any chance someone could do it for me? I know it is extremely selfish but I would be bey...
[8 replies] Last: I really appreciate all the work you did. I really really do! I just... (by donfrema)
May 2012 Pages: 1... 2728293031... 41
  Archived months: [apr2012] [jun2012]

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