General C++ Programming - April 2012 (Page 7)

compiler vs linker
 
Hi, not to get into too much nitty gritty details, but just want to confirm: compiler takes source code and turns it into object code but still cannot be ...
[1 reply] : If a program doesn't compile, it means that the compiler saw something... (by closed account zb0S216C)
by Eyad
help with function
 
done
[2 replies] Last: thx (by Eyad)
reverse string help
 
hi, it's not compiling for my function: string r_reverse(string originalString, int index) { if ( index < 0 ) return originalString.at(0); else...
[13 replies] Last: Awesome. I was wondering what that error meant. Thanks for the info, c... (by Vlykarye)
memory leaks
 
My project is say that it has memory leaks. When I view it in the debugger, it shows the correct values being passed to the pointers. #include <stdio.h> #inc...
[1 reply] : Because if that condition evaluates to true (!false) then pcRet is d... (by clanmjc)
writing a Find and replace program
 
How do I go about writing my own find and replace program? I want to clean_up a file that has too many returns, tabs, dashes, and extra spaces. Also, I want to ...
[12 replies] Last: Thanks all for your help. Now I have a beginning. (by therry1)
Sorted?
 
This program is for movie list. And I made parts of movie program which is searching and adding movie on the list. bool SortedMovieList::add ( const Movi...
[1 reply] : Simply sort the values with std::sort , and , if I understood it corr... (by viliml)
To toupper in C++
 
Hi, How can I make the output to always be uppercase? I tried a few thing but I cannot make work. #include <iostream> #include <string> #include <cstr...
[7 replies] Last: Thank you all for your help! (by fstigre)
Double precision
 
Hello: I'm trying to assign the value 3.51 to a double, but it stores 3.5099999999... So, i'm trying to round it, but I can't use the round function (beca...
[12 replies] Last: You can minimize a bit errors with doubles if you don't subtract them ... (by Bazzy)
Help polishing this pin/password generator.
 
Hello, long time troller first time poster here. I know it's probably been done to death but, I wrote this password and pin generator for the fun of it. I know ...
[no replies]
Reverse and sort arrays
 
Hi, How can I reverse my output array? In other words if user enters 1,8,3,10,5 I wan t them to appear as 5,10,3,8,1. Finally, how can I sort them out hi...
[6 replies] Last: Thanks a lot for your help! (by fstigre)
String to binary file? Best way ?
 
I've done a lot of research and personally I can't figure out which way would be the best way to prompt the user for a name and write it to a binary file. Any ...
[3 replies] Last: std::string MyString; std::getline(std::cin, MyString); std::ofstream... (by LB)
by Eyad
Recursion && Linked List
 
Done
[16 replies] Last: ok, thanks man. (by Eyad)
by tmdm7
Need help with a linked list problem
 
Hello, I'm having trouble with this class that is not to allow duplicates. It appends the items from one object into another. The method worked fine when I did...
[4 replies] Last: Thanks Peter. I looked further into this and found that in fact neith... (by tmdm7)
using pDC pointer in mfc/sdi in vc++
 
i m using pDC pointer in a recursive function........ here's my code... void P_class::recursive_function(int tasks,CDC *& pDC) { CString str,str1,s...
[no replies]
Tic Tac Toe Problem- Code Errors
 
MY CODE Hey all, this is my first post on this forum. I have been trolling around for a while though. Anyways, I was wondering if anybody could correct my co...
[4 replies] Last: Hey all thanks for the replies. I decided to go get rid of the classes... (by jberg85)
How to do i prevent an input of a decimal number in the code below
 
int main(int argc, char *argv ) { if(argc == 3) { int ConvertToDec( char number , int base); int base2 , no , i=0 ; ...
[2 replies] Last: If your question is how to prevent a user from inputting a base-10 num... (by rollie)
mfc/sdi ClistBox vc++
 
how to display 2d array in list box in mfc/sdi vc++... i want to display it as.... 1 2 3 4 5 6 7 8 9
[no replies]
Coding Help Needed
 
So I am developing a program based on Fallout's Hacking screen and I need help designing a loop to accept or reject the passcode entered. I also need it so when...
[no replies]
Abstract base class as value in a map
 
Hi, I'm doing a project which requires me to make a database to hold student information and course marks. I have an abstract base class called student and hav...
[4 replies] Last: That makes a lot of sense. Thanks for your help (by jley123)
Help displaying images C++
 
Does anyone know how to output images C++? I have looked around, but I have never been able to find anything (downloading libraries, searching forums, YouTube, ...
[1 reply] : I assume you mean output images to the screen. You have to use a libra... (by Peter87)
April 2012 Pages: 1... 56789... 49
  Archived months: [mar2012] [may2012]

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