Beginners - October 2011 (Page 10)

by tonnot
Is there any other way to call non const function from const function rather than make mutable some elements ?
 
I have a const function provided by my framework (QT) from where I call to a non const function. As might be expected, I have the tipycal error ( .... discard...
[2 replies] Last: thanks coder, but I'm affraid you answer to another question.... (by tonnot)
by zarzak
file being read twice
 
Hey all, I am a C++ newbie, and am working on some code. My code has several functions, one of which pulls data out of a file and puts it into some vectors I ...
[6 replies] Last: That fixes it! The file given was provided by the teacher, and we've ... (by zarzak)
Factorial Program Help
 
I have looked through all the forums and have not found out what I needed(despite all the topics about Factorials) I am to write a program that will take in ...
[6 replies] Last: Ahh okay, Thanks for explaining that for me!! (: (by knicole89)
by banan
how to make the combuter differentiate between capital or small or digit ??
 
hi, i'm new student in the c++ programming .. my homework tell us to enter differentiates between a set of characters read A character could be an upper cas...
[1 reply] : http://cplusplus.com/reference/clibrary/cctype/ http://cplusplus.com/d... (by ne555)
by homsta
Using time function, can I get specific variables like month or day?
 
I have a type "transactions", with different types including some ints for date. I saw some functions like ctime that, from the what the cplusplus site shows, w...
[2 replies] Last: ... or any of the time functions. Read the documentation for the <ctim... (by Duthomhas)
pointers
 
#include<iostream> using namespace std; int main() { int x ; double a ; int *b ; int(*c) ; cout<<sizeof(&a)<<endl; cout<<sizeof(a)<<endl; cout<<sizeo...
[2 replies] Last: It's important to note the reason this operator exists. That is, that... (by moorecm)
by alend
Dangling Reference work perfectly!
 
Hi In a c++ book, I have found an example of Dangling Reference: #include <iostream> using namespace std; const int& min(const int& i1,const int& i2) ...
[12 replies] Last: In C++ const reference is a kind of hybrid. if there isn't a variable ... (by coder777)
by ToniAz
C Strings help
 
Hello Everyone! I'm not a fan of C Strings, but it's the only way I know to get an argument string to be used in my program. Could someone please point ou...
[1 reply] : cout << "http://"+string(argv ) << endl; (by Athar)
by alend
Null terminate
 
Hi Are all array in the c++ or c terminate with Null (\0) char?
[1 reply] : if you create an array, it has random information until initialized. ... (by Azagaros)
by tonnot
Cant access to a pointer-vector map element,
 
I have a similar question posted as an answer (and I think the post are going to be forgotted) and excuse me but I need your help: into my private section I ...
[2 replies] Last: Thanks , uf what a such simple mistake ..... (by tonnot)
by tonnot
Vector of pointers to vector<map<int,structure> >
 
I dont know how to write this. I have: vector<int> vector_of_pointers; void create_vector() { vector<map<int,structureA> > my_vector; vector_of_pointers....
[3 replies] Last: 'buffer_current' is a pointer to vector< map<unsigned short int,col_d... (by coder777)
by zz77z
copy a string into a dynamic array
 
hello .. help me with this : i have a function that recieve a string name and i need to copy this string into a dynamic array of char type!
[1 reply] : i've manipulate this method while im searching string FileMeasure=... (by zz77z)
converting inputted character to its integer code
 
#include<iostream> using namespacestd; void readonechar(char) int main(){ char ch; cout<<"enter a character"; cin ch; readonechar(ch); return 0; ...
[4 replies] Last: A character already is its integer code. All you have to do is cast i... (by Disch)
by gh24
Line Numbers In VB 2010
 
Hi, I'm using VB 2010. How do I get line numbers to show up next to my code? I have finally advanced to code that is to hard to debug without line numbers ...
[no replies]
need help with basic c++ please
 
I was assigned an assignment that my professor did not teach us how to do at all, so can someone please help me out. here are the instructions: Write a prog...
[5 replies] Last: Thanks! I appreciate this a lot! (by tmfrosch9)
by shravz
c++ program
 
My assignment is to write a program -- Write a function named celsius that accepts a Fahrenheit temperature as an argument. The function should return the tempe...
[6 replies] Last: First of all, shravz, out of the assignment given to you, what do you ... (by JokerDan)
by WskOsc
Logical operators and the headaches they bring
 
I've recently taken up learning programming, finding that Java just wasn't for me I've headed over to C++ which I've taken to like a duck to water. I'm working ...
[5 replies] Last: [co de] "Please use code tags" [/co de] Any idea why the debugge... (by ne555)
Need help with Big O notation
 
I have no problem finding the run time complexity of expressions (such as 5n^5+n^2), but I am having trouble finding the max number of executions in a function....
[no replies]
by Yezman
Reverse Number program almost there, 1 last error
 
int reverseNumber(int n) { { int a = 1; int b = 1; int y = 1; int x = 0; while(b != 0) { a = n % 10; x = x * 10 + a; b = n / 1...
[1 reply] : If you hard coded these numbers in your source file, I think your resu... (by EricDu)
Help with while statement with reading and writing on input and output.
 
Okay so I'm guessing the problem here is a very very small one. Its a long program that I have but I'm sure its in the while statement where the problem lies. T...
[no replies]
October 2011 Pages: 1... 89101112... 59
  Archived months: [sep2011] [nov2011]

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