Beginners - December 2010 (Page 19)

by ppp
vector/list of structs
 
Hello, I'm trying to create vector of structs and I'm having problems updating it. Let me give you an example: #include <iostream> #include...
[6 replies] Last: thanks, you too. (by ppp)
by san4io
Don't work binary search.
 
Can someone help me with code. I cant get to work my binary search. #include <cstdlib> #include <iostream> using namespace std; //-------------------------...
[5 replies] Last: Anyone? (by san4io)
DECIMAL TO BINARY IN JAVA USING BITWISE. anyone can guide me?
 
i have a problem with my program in java there are one error in my code and i dont know how to correct it pls help me. tnx a lot ! heres my code. package ...
[2 replies] Last: Hi Site name is http://www.cplusplus.com/ (by firix)
GPA average calculator
 
hi, i'm a newbie in programing... my teacher asks me to create a student GPA average calculator. i just can't figure out how...the problem he gave me is this: ...
[2 replies] Last: Create a single-dimensional array as follows: const double NUM_G... (by Zeppfan)
about sorting algorithm..
 
hi, i'm a newbie in programing and i just would like to ask.. cuz someone give me a problem.. he asks me to build a program that uses a single-dimension array ...
[6 replies] Last: any day, that's what these forums are for :D. I found them not too lon... (by ERanz21)
How can i use random and also make use of inheritance
 
I was trying to use random to generate random numbers but it was not going on well with me and i don't know how to do that, please help me come out of this prob...
[1 reply] : for inheritance it would look something like this: class A { ... (by ERanz21)
by Bear
The infamous goto function, justifiable use?
 
Hello, thank you for taking the time to read this. I am very (very very) new at c++, and I've always heard bad things about the goto function. I have construct...
[8 replies] Last: breaking out of loops is also a bad practice No...not really. Onl... (by firedraco)
by cstorm
Program Unresponsive
 
Im currently in highschool, and in a C++ Programming Class Before the end of the year we must creates a game, and I've been working on the project. We have yet...
[5 replies] Last: add cin >> mainMenuChoice; after you display the menu, (by rocketboy9000)
3 x 3 magic square
 
The program i wrote is to check whether the matrix is a magic square. However my program is not complete, because while the program check for duplicates, the co...
[3 replies] Last: Declare a boolean array of size 'x', or 9 in your case: bool array ... (by Browni3141)
class with a static std::map<char,char> member
 
I want to create a class that has access to a std::map<char,char>. I only want to create this map once, not every time I create the new instance of the class. ...
[4 replies] Last: thank you. (by closed account iw0XoG1T)
Making program a function
 
Hi guys, the professor wants us to put all the programs we did into functions in 1 program and prompt the user to select which one he wants to run. I have about...
[2 replies] Last: Thanx a bunch shredded that takes care of my last project for this cou... (by wreidan)
if statement
 
How do I use the cin >> function with the if statement?
[3 replies] Last: //this is for single if statement cin >> variable; if (condition... (by Lucky D)
student with c++ codes
 
I am a student and C + + are not going me so well, so I'd ask the experts for some help. I'm using Visual Studio. I made this topic that I sometimes ask you fo...
[4 replies] Last: I gave the explanation in the comments. I hope you now understand what... (by hakspek)
Including a header which relies on including the first header
 
I'm entirely dumb-founded as how to address this because I get one of 2 errors: error: ISO C++ forbids declaration of `Player' with no type| multiple definiti...
[6 replies] Last: Brilliant, absolutely brilliant. This way the key to the puzzle. Thank... (by Krisando)
by Teit
days between dates.
 
Hey guys, I'm pretty new here and I need some help with a program I'm suppose to do. I have to make a program that counts days between two dates, from 1900 and...
[3 replies] Last: I just made some changes to function daysFrom1900 so now it works to c... (by Teit)
int/char to string
 
Suppose I have an int int d and I want to convert it into a string. How can I do that? Same question for if d is a char.
[5 replies] Last: Or you could use sprintf. There are many ways to do it. int i=123; ... (by rocketboy9000)
Need to translate this line!
 
I have found this code on the internet My.Computer.Clipboard.SetText(WebBrowser1.DocumentText, TextDataFormat.Html) I need to translate it from visual b...
[1 reply] : http://www.cplusplus.com/forum/beginner/1/ (by firix)
by Jsel
Vectors vs. Linked lists
 
What are the pros and cons of vectors and linked lists? Are there any tasks that are better suited for one or the other? Thanks.
[4 replies] Last: Hi, The Vector is a form of dynamic array.The vector is the offici... (by firix)
by firix
Linked list optimization
 
Hi I tried to write the linked list code but, I think many did not succeed. How can I improve this code ? thanks for reading... template<class T...
[no replies]
make a personal image processing library
 
hi i want make a personal image processing library. i dont want use opengl or other library. i want make it with c++ standard library and native code. please...
[1 reply] : Image processing means transforming an image, not displaying it, so yo... (by hamsterman)
December 2010 Pages: 1... 1718192021... 35
  Archived months: [nov2010] [jan2011]

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