General C++ Programming - May 2011 (Page 10)

Coding problem. help plz..
 
Hey guys, I have coded a program which works as a spell checker. Reads a file and checks a database if the words spelling exists if not prints it. I have ...
[1 reply] : Like if there is a word, "bee" i want to know a method to ignore the ... (by theonealone)
populating binary tree
 
using the standard template library binary tree, i need to read each line of a text file dictionary which is not alphabetically ordered (it contains 1000 words)...
[1 reply] : I'm not following. Are you sure you understand how those classes work? (by helios)
Help with Yahtzee program please
 
Well, so far I have just threw this thing together because I wasn't expecting to have to turn it in for another 2 weeks. I am a beginner at this, but have a fai...
[11 replies] Last: It looks like the main problem is with how the dice are saved between ... (by closed account D80DSL3A)
by beyond
C/C++ Tutor
 
Hello C/C++ experts. I need tutoring support. The object is for me to learn how to develop a simple operating system using C/C++. Tutoring is to be do...
[no replies]
by gizzmo
STL vector
 
Hi, I am trying to do the following with the STL vector. Say we have two vectors, both of the same dimension M. I want to copy part of a vector B into the othe...
[13 replies] Last: I did not define operator= . Now it works. helios: Yes, I know it is... (by gizzmo)
Overloading << and [] operators for Linked List class.
 
I'm trying to overload the operator for my linked list class so that you can access an index with it, rather than having to use the get() function in the clas...
[16 replies] Last: Yes. But if you want the default constructor you should write -> Link... (by m4ster r0shi)
java to c++
 
hi i coded a java class, now i need to change it to c++ code, but i am not expert in c++. can any body change the code to c++ for me? plz i need it!! pub...
[1 reply] : Basicaly the same way, except you can overload operators in C++ This ... (by Mathhead200)
Casting!
 
Hi everybody, I would like to know if there is a way to cast a char* type in to a class type! How I can use s... char text ; cout<< "enter text:"; cin...
[12 replies] Last: BTW, all, constructors should take const char* s. (by Duthomhas)
by suetam
numeros complejos en una funcion cuadratica
 
Hola como estan tengo esta funcion cuadratica. puedo insertar datos para a,b,c. como enteros 1,2,3, o 1.2 3.5 5.4 etc.. y esto da 2 resultados para la funcion...
[8 replies] Last: You have already been given an answer. Use the complex <> class to s... (by Duthomhas)
Updating/Repaiding code for DDoS test lab
 
Hello Everyone, I am working towards setting up a DDoS tool for lab based testing. The tool is based on C++, which I basically have no previous experience with...
[8 replies] Last: I just realized that I had a typo in my last reply. I meant to say tha... (by IDOsomething)
C++ Load Program Issue
 
I'm trying to create a basic console C++ loading program (to be a part of a larger console C++ project I'm working on) and I can't seem to get setConsoleTextAtt...
[2 replies] Last: Why do you need to add indirection nike that? Just store the colors in... (by Duthomhas)
Programming with Laser Range finder
 
Hello, I'm programming a Hokuyo laser range finder in C++. When the range finder is not plugged in the following code works fine, but when I plug in the ran...
[2 replies] Last: lowR is equal to -45 and degree a double. (by amerrill)
Collision Testing
 
I was originally going to post this as a reply to xander333's post about his 2D collision issues, but it really didn't have to do with the original question. ...
[14 replies] Last: Okay my code is huge but here's the relevant tidbits excluding physics... (by Disch)
Quick Question Regarding Threads
 
When creating a thread with _beginthread( ) , are variables created on the threads' stack or the programs' stack? Here's a sample piece of code. This will show...
[11 replies] Last: Cool. Thanks! (by webJose)
Typename AND Class in one template?
 
I've been working on a Linked List class in a header file and I'm confused as to how I should proceed with this... so far, I can create a list of a data type, s...
[5 replies] Last: Try compiling this template<class T> class C{ T* c; }; int... (by hamsterman)
returning to my int main()
 
Hey everybody so im trying to write a code for my computer programming final. Im writing a code that mocks a cell phone and i wanna be able to return to my menu...
[1 reply] : If you want something to be repeated, put it in a loop. (by hamsterman)
by xephon
data accuracy specification in C++
 
Hi all, I'm wondering what's the equivalent for C++ for the following situation? printf("%.3f\t", f_num); I've never thought of it, thus have never dug...
[1 reply] : cout << setprecision(3) << f_num << '\t'; http://cplusplus.com/re... (by Disch)
Organization of Functions...header files?
 
Hi I am a long time matlab user but just getting into C/C++. My question is concerning organization of code. In matlab i organize my useful functions in a...
[2 replies] Last: Thanks. The renaming of cpp to h (etc) is a little confusing to me but... (by lando11)
by aryan
vector of maps
 
i am trying to create a vector of maps. ---CODE-------------------------------------------------------------------------- typedef std::map<int,bool> Connec...
[12 replies] Last: also consider how many maps you expect to have and how small each map ... (by kfmfe04)
assigning coordinates to triangles
 
Hi, I am trying to write a simple program that assigns x,y coordinates to the centroids and angles of trianlges. This is the code: # include <iostre...
[8 replies] Last: You are absolutely right..thank you so much... (by sanehatter)
May 2011 Pages: 1... 89101112... 32
  Archived months: [apr2011] [jun2011]

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