Beginners - October 2010 (Page 13)

Please explain this use of star operator
 
Hello there, I have this vector of pointers to strings, let me illustrate... int main() { vector<string*> strvec; string *str = new string("string co...
[4 replies] Last: Good. I find this last explanation clear enough. I think I must trust ... (by joseplusplus)
by Nohbdy
Low Priority: How am I coding?
 
// I recently have been doing a lot more reading over actual coding, so I made this little simple unfinished-but-working program. Since I have not yet really po...
[14 replies] Last: I think you would get even better comments if you post a non-trivial (... (by jsmith)
by tonnot
'const' keyword can be esential to give speed ?
 
I have read an explanation about the 'const' keyword used at methods and functions. Passing data to methods by reference are faster, and if I use const are e...
[5 replies] Last: (Note that a threadsafe STL would make std::string copying expensive, ... (by jsmith)
Extracting values from "for" loop
 
Hi, I have two issues, I hope you guy can help. Here's an example I have prepared: #include <curses.h> #include <stdafx.h> double Array ...
[4 replies] Last: Thx very much, fixing the the way I was initializing the for loop solv... (by wboustany)
by god
Vector <class>
 
can some one help me or give me the algorithm in this problem: a 'class' named STUDENT has attributes like Name Age ID_Number Grades. i should store in a 'vect...
[4 replies] Last: Simple create a vector as per the page linked by hamsterman. std::v... (by Pax)
by relei
C/C++ and SDL Workshop for beginner in Munich (4/5.12.2010)
 
Hi, as part of the Open Hardware und Software Event in Munich, we provide a C/C++ und SDL Workshop for beginner (in German). http://wiki.openmoko.org/wik...
[no replies]
Whats wrong with my program
 
and i run the program i have no results only have my first cout not the second one.... anybody... please show me my mistake.... int main() { double x,myexp...
[3 replies] Last: well i correct the mistake on the while loop it was expx not(myexpx)..... (by buldogao87)
by wtf
for struct node do I need to do this?
 
template <class item> struct node { node * next; item data; node(){ } ~node(){ delete next; } }; Because I'm...
[4 replies] Last: your problem is that you didn't set 'next' to NULL in the constructor ... (by coder777)
Resizing vector lists
 
Hi All, I have a couple of list containing objects, along with a third list that refers to some of the elements in both of these lists. I want to be able to...
[1 reply] : Okay, I've modified my code so that it shifts the tail of the list up,... (by kamikazeUnicorn)
by rafter
My first step and question in programing
 
Hello, can i have some advises to have a good start in programing with c++. I have studing networking and system ( Windows, Unix and HP-UX ). i have no...
[5 replies] Last: 10x for your advise have a nice day (by rafter)
Another linked list question (infinately repeating loop)
 
Heya. I wrote a program that asks the user for a series of integers, and the program would return them in ascending order. When I run this linked list program, ...
[2 replies] Last: You know, a funny thing happened while running the program on this com... (by Erdrigard)
test my programming and give advice
 
Hi I am working on a program that check whether it is a prime number or not.Please helpe test my program whether it runs ok or not. If any good advice, please p...
[2 replies] Last: Thanks ur advice. u r right. if square, the program can save time... ... (by gongzhen)
How to calculate Math pow with result unsigned long?
 
Hi friends.. I need to calculate really big result value of some value exponent with some value.. Actually, i have already tried to use pow function of Ma...
[7 replies] Last: Hi helios, Thanks for your reply.. Yes you're right, i can store t... (by leomifare)
by rej3kt
Reading and writing to an excel file. (1,2)
 
Is it easy enough to do? I've got my classes finally sorted out, and just as an idea I've thought about making my program read a calculation in excel (like for ...
[25 replies] Last: Because when you were saving out to the file, you were taking the valu... (by Pax)
Templates and derived classes
 
I'm having problems using derived classes in templates. I have a template smart pointer class: template <class type> class RefPointer { public: R...
[2 replies] Last: Thanks a lot for the quick reply, that's exactly what I needed. Not o... (by chortic)
while loop will not stop
 
hey i have a problem with a code this first code it will not stop /* Loop Program CPT-168-A02 */ #include <iostream> using namespace st...
[5 replies] Last: good sample (by myforzhuce)
Working with loops to output justified patterns?
 
Hi everyone! I am having trouble with a class assignment (Intro to C++) where I am supposed output three different patterns using loop statements. The patterns ...
[2 replies] Last: @hamsterman wow, that sure helped! (by vasiqisbewildered)
by seklum
expected `;' before "cout"
 
I am new to c++, my second day actually. I typed up this code from the tutorial site I am using, http://newdata.box.sk/bx/c/htm/ch02.htm . I get an err...
[3 replies] Last: Wow, I am dumb. I didn't even think to look BEFORE the cout that was ... (by jleach)
by jleach
cin.get not taking input?
 
Hi, I've noticed the following behavior using cin.get() and am not sure why... I'm hoping someone may be able to enlighten me. #include <iostream> #in...
[2 replies] Last: It is behaving as expected. The first call to cin.get() gets everythi... (by jleach)
Problems with input
 
In an attempt to make a roguelike game, I've posted two threads so far on this forum. Now their's a problem with keyboard input. I'm using "conio.h" and getch()...
[6 replies] Last: Oh, I see now. I thought something was off with , but I didn't kno... (by Urist McCoder)
October 2010 Pages: 1... 1112131415... 42
  Archived months: [sep2010] [nov2010]

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