General C++ Programming - March 2012 (Page 5)

coding help I'm a epic noob !! lol
 
Only part of the code that doesn't work, Trying to get this part of coding to accept one decimal e.g 2.34 and if there was 2.3454.54 the output would be X. I k...
[2 replies] Last: No i'm checking for decimal points which is the dot "." anything wit... (by code builder)
help with messy SetWindowText
 
hi im trying to change a windows text from a dll that is injected to a program. what this dose is when you click the + key it adds +1 to the count and puts it...
[6 replies] Last: Sorry, my mistake. You call it, but you must check for NULL. char b... (by kbw)
Brute-force attack TLS encryption
 
I can't find the solution through google: Question: In the worst-case, how long would it take to brute-force attack a TSL encryption key (HTTPS)?
[1 reply] : You multiply the number of possible keys with the time to test one key... (by Peter87)
What's the difference between copy and uninitialized_copy?
 
//What's the difference between copy and uninitialized_copy? ////Why can't I replace uninitialized_copy with copy here. // std::uninitialized_copy( firs...
[3 replies] Last: You can and should replace uninitialized_copy with copy in this partic... (by cire)
Reading strings in from a text file
 
Hi all, I'm new to C++ and I've playing around with some code but have come up with a problem. I have a text file that i want to read into a 2D array of strin...
[1 reply] : can i no the exact output u want. if u want to read the file, line by... (by Ebenezer justin)
Help!!
 
I got this question Write a C++ program such that its execution will keep asking the user to enter a pair of integers, start and finish, and will terminate wh...
[no replies]
How to read in text file
 
writing a program where i have to read in grade and credit hour values to calculate gpa. this is my input txt file ID# Grade cr hrs Grd cr hrs Grd cr hr...
[6 replies] Last: try this.... while(!infile.eof() ) { if( grade !=-1) { ....... ......... (by Ebenezer justin)
Boost regex troubles
 
Hi, this is the brute-force decrypt function I wrote, but it's not really working properly. I just need to find sub-expressions and then the key i is returned, ...
[2 replies] Last: Hi, I actually started off w/o spaces... (by closed account 4ET0pfjN)
Boost Regex library
 
Hi, does anyone know how to use Boost Regex library for C++? I need some basic lessons, so any would be appreciated.
[4 replies] Last: thanks (by closed account 4ET0pfjN)
Date / Time Classes.
 
I need to find the best time class to use with a program that works with a date/time number in the following format: yyyy.mm.dd hh:mm:ss.ms. Essentially, I am ...
[5 replies] Last: Does anyone know how to import this through a DLL? I suppose it would... (by mcertini)
vector to output file?
 
I am unfamiliar with vectors but I still decided to use them in my project. I am trying to output to .txt files from a vector, and i'm lost. Heres what I ...
[6 replies] Last: aha! thank you! (by noonmoon)
Recursive delete function errors
 
template<class _TYPE, class _VAL_TYPE> bbst<_TYPE, _VAL_TYPE>::~bbst () { if (this->left != nullptr) delete *this->left; if (this->right != nullptr) delete *...
[10 replies] Last: You have not seen the code yet and it does work I have been testing it... (by GFreak45)
Metroworks Codewarrior C++
 
Can someone point me in the direction of obtaining a C++ compiler by Metroworks Codewarrior (whether it is free or has to be purchased). I'm in a CmpSci class r...
[3 replies] Last: @Moschops. that would be extremely appreciated! please post. i'm curi... (by psycho342)
neverending Error!
 
Error code: 1>------ Build started: Project: Game1, Configuration: Debug Win32 ------ 1> Main.cpp 1>c:\users\jeremy\documents\visual studio 2010\projects\ga...
[2 replies] Last: cout<<Player1::level<<endl; -> cout << player.level << endl; And st... (by GFreak45)
Getting a crazy number??
 
Why doesnt this work? The problem lies where i declare answer3. When i build and run this it gives me some outrageous number. #include <iostream> using nam...
[5 replies] Last: Correct, C++ reads left to right and top to bottom just like a person ... (by Hippogriff)
by obdo
2d arrays using dynamic memory
 
Hey, I'm trying to make 2d arrays using dynamic memory in c++. I have been looking up ways to do this but a lot of them seem pretty complicated (and disputed...
[7 replies] Last: This is no problem, you can use reserve() to make the vector big enoug... (by closed account o1vk4iN6)
error LNK2001
 
1>------ Build started: Project: Game1, Configuration: Debug Win32 ------ 1> Main.cpp 1>Main.obj : error LNK2001: unresolved external symbol "public: static ...
[16 replies] Last: dont list to what stewbond said, hes wrong, what he said would be righ... (by GFreak45)
STL algorithms
 
I know that the STL includes algorithms for sorting containers as well as the ADTs for the containers themselves, but can anyone explain in detail in detail (no...
[3 replies] Last: I don't understand your question. You want to know how to sort (sortin... (by ne555)
Error C2660
 
it says 'battlepahse' : function does not take 0 arguements. #include <iostream> #include <string> #include <ctime> #include <cstdlib> using namespace s...
[3 replies] Last: So presumably this is what your main function now looks like: int ma... (by Moschops)
Overloading the Assignment Operator in Derived Classes
 
Hey, can someone please help me out here in understanding the syntax behind a derived overloaded assignment operator? The C++ Primer gives an example of one de...
[4 replies] Last: That makes sense, thanks! (by poisontree)
March 2012 Pages: 1... 34567... 49
  Archived months: [feb2012] [apr2012]

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