Beginners - June 2009 (Page 15)

by Bv202
Parameter question
 
Hi, What's the point of this: const int& testvar as a parameter? What does it means? Why would you ever use const and why that reference &?
[4 replies] Last: Also, even if it is an int , making it a const reference means that t... (by Duthomhas)
by jethro
Thanks To All!!
 
I am brand spanking new to C++. I haven't done any programming in quite a few years. Other words, Fortran, DOS, and Basic were the norm! I tried Borland Delp...
[4 replies] Last: Wow! Thanks for the help! I am going to down load VC++2008 and give ... (by jethro)
by Claymz
delete in destructor or main()
 
hi i wonder if it is same, if u use "delete" in a destructor of a class or (at the end of) in main(), since destructor gets called when an object is destro...
[5 replies] Last: @Claimz: Given the following code: #include <string> std::... (by jsmith)
by garcia
my invalid key is runing like mad non stop...
 
my invalid key is running non stop how can i stop it this is my following codes: /*create user-define functions this is a user define demo*/ #include ...
[2 replies] Last: See: http://www.cplusplus.com/forum/beginner/11630/ (by firedraco)
weird programm error with getline()
 
Hi everyone. I just started studying C++ and I have encountered a weird error when learning I/O. When I run this piece of code, the programm waits for me to ...
[3 replies] Last: Try adding cin.ignore(); after every cin statement like Duoas advise... (by mcleano)
by evange
Can you take a few min to look at my c++ code....
 
Hi there, i am a c++ newbie.I was asked to write a function that takes in 3 integer parameters and returns two smallest integers among them. Here is what i don...
[5 replies] Last: Why don't you just sort the array? it is so small it'll be super fast... (by kempofighter)
by igi123
problem regarding mergesort
 
hello, this is my first thread at this site,i was wondering if you could tell mewhy my mergesort wasn't working correctly here is code: #include "stdaf...
[1 reply] : [co de] #include <iostream> int main(){ std::cout <<"Hello... (by helios)
by garcia
i have somproblems regarding devc++
 
this is my problems: 51:16 C:\Users\ekkiang\Desktop\miniproject.cpp unknown escape sequence '\S' [Linker error] undefined reference to `IntroPage()' 51...
[13 replies] Last: scanf(" %d",&keynum); keynum=getch(); In this, you are getting a... (by firedraco)
Fifteen Puzzle
 
The original idea for the puzzle is taken from this video http://www.youtube.com/watch?v=2Y-RXvL6CDw the rest of it is written by me the code is not the same ...
[no replies]
by oramiq
reading from file
 
hello i want to read from a file, i know how to read line by line or word by word ,,, iwant combination of them,, for example,, if i have file named "data",,...
[5 replies] Last: thanks Bazzy and chrisname i see the link and it is helpful,, i ma... (by oramiq)
by Bv202
Reversing a string
 
string tekst; cout << "enter a string: "; getline(cin, tekst); int size = tekst.length(); for (int i = 0; i < size /2; i++) { string tempvar1 =...
[4 replies] Last: Ok, thank you very much =) (by Bv202)
namespaces purposes in DLL
 
http://www.cplusplus.com/doc/tutorial/namespaces/ it say "Namespaces allow to group entities like classes, objects and functions under a name. This way the g...
[4 replies] Last: thanks, Huoas it's about 2 identical function name, it's a obvious ... (by chiwing)
hardware store inventory
 
hi..can i ask something this C++ i have a problem that i am not really sure if this is run to the program i am not expert of this C++ i want help of this,
[3 replies] Last: #include <iostream.h> #include <math.h> int main () { int ... (by jamesfroy)
reset streampos pointer
 
I open a file and run through it to see how many lines it has. Then i want to reset the position pointer and start over at the beginning. I have code that acc...
[14 replies] Last: Yay! We both feel bad! /me stupid sheepish grin We could race, but... (by Duthomhas)
Cin not getting hex value.
 
Cin not getting hex value. uint32_t operandA; uint32_t operandB; cout <<"Enter data ra: " ; cin >> hex >> operandA; cout << "ra=0x" ...
[6 replies] Last: Strange, I am seeing the problem again after recompiling :( It seem... (by renisenb)
hi to all....
 
i'm a beginner in the world of c++, i'm having a pretty hard analyzing my c++ problem... it's about the Zodiac Sign... this is the problem: A group of fung ...
[7 replies] Last: thanks bro... a big thanks to you... (by Kirah4me)
by unnati
how to access data from structures
 
Hi all i have 2 typedef structs typedef struct { int a; int offset; int first_val; int incr; } offset_t; typede...
[1 reply] : ptr->time_offset.first_val btw, offset_t is already a standard type... (by jsmith)
*, + and - with Matrices
 
Hi I'm new to programing so close one eye when you look the code the program basicly can multilply, sum and - 2 matrices so here is the code: #include <i...
[1 reply] : Inconsistent indentation, recursion with main(), global data, function... (by helios)
My 1st C++ App (text encryptor)
 
Hi every one! I'm a C++ beginner I wrote some apps. using pascal,VB6 but this is my first (real) app in C++ 6 It's a simple text encryptor (console applicati...
[6 replies] Last: thank you chrisname! helios wrote: It would seem to suggest that ... (by Hash Hash)
by sys7em
class Matrix2 that stores two dimensional matrix
 
Hello guys, I'm a beginner in c++ and i stumbled upon a problem. I have to define a class Matrix2 that stores two dimensional matrix, by keeping its elements...
[4 replies] Last: I got nothing. That's why I'm asking what is the difference. (by sys7em)
June 2009 Pages: 1... 131415161718
  Archived months: [may2009] [jul2009]

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