Beginners - December 2010 (Page 15)

Yes or no
 
Is this a recursive bool function? #include <string> #include <iostream> using namespace std; bool Function(std::string str) {//this function remove ...
[12 replies] Last: http://www.cplusplus.com/doc/tutorial/functions2/ bool Function(cons... (by ne555)
by lssam
0xa0 error
 
l ran this code , and l get this error 19 times . what that error is for ? error : --------------------Configuration: examen final - Win32 Debug-------...
[4 replies] Last: Hi Try compiling again and give us the full error message and we mi... (by shredded)
Adding fraction class and gcd functions
 
I'm completely clueless on what needs to be done here can you help?? Heres my instructions: "My solution to the Exam2 fraction calculator is in the subfolder ...
[no replies]
by Maerle
looking for a easier way to use strings
 
Is there a simpler way of changing the vowels by another character of a name using string functions without be this way? #include <iostream> #include <coni...
[1 reply] : 2) std::reverse or operate it backwards (the user do not need to know)... (by ne555)
by Maerle
Using the up, down, left and right keys
 
How can I directly use the up, down, left and right keys to make a moviment instead of use a swicth with cases 1, 2, 3 or 4.
[4 replies] Last: What some ramdom dude said got fine. But it hapens some problems in my... (by Maerle)
Static casting to <int> in a for loop?
 
I'm doing a sieve of eratosthenes problem and I'd like to loop to sqrt(number). Is it possible to do this in the loop with the sqrt() function provided by math....
[3 replies] Last: Ah, that makes sense! Thanks. I figured there may have been a better w... (by Darkenor)
by nm486
Default parameter question
 
Hi, I was wondering for default parameter values, if we could set a default value to be the return value of a function. Specifically, I'm asking if I can do th...
[2 replies] Last: Thank you very much for your reply. That solved my problem completely... (by nm486)
overloading a const member function
 
Hi, all: I defined a class A as follows. struct A { void f() {cout << "A::void f()" << endl;} void f() const {cout << "A::void f() const" << endl;}...
[3 replies] Last: Hi, PanGalactic and Disch: What you said is especially helpful. I t... (by mathwang2)
GUI
 
Something I do not understand in C++ is how to make graphical user interfaces if C++ does not have graphics support. Does that mean it is not possible to make a...
[4 replies] Last: Your talking GUIs now, back in the DOS era, I made my own with VESA vi... (by closed account 3pj6b7Xj)
by rcorty
reading input from text file in XCode IDE
 
hi all, I've read through the documentation on how to use filestreams and I feel very certain that I'm doing it right. My computer disagrees. Here's the co...
[1 reply] : problem was the commas in the input file....replaced them with spaces ... (by rcorty)
by wtf
really weird problem.
 
OK this is really weird. I have encountered a runtime error and isolated it to a line that has not yet been executed. I won't post all of my code, alt...
[16 replies] Last: intricacies (by filipe)
by firix
singly linked list and doubly linked list
 
Hi everyone, I have configured singly linked list and doubly linked list but I could not understand the following concepts.Could you explain briefly with an ex...
[4 replies] Last: template<class T> class List{ public: struct node{ T val; ... (by firix)
How to transform it?
 
Can anyone give me the direction to how to transform the code below into recursive bool? #include <string> #include <iostream> using namespace std; bo...
[no replies]
by lssam
error runing simple code
 
Hi l am trying to run this simple code , l get a error which l don't understand why so that l can solve it . #include <stdio.h> void main() { dou...
[3 replies] Last: I think you complicated things a bit too much. Why aren't you using a... (by chronokitsune)
A function within a function.
 
Hello fellas, I'm having 1 final problem with my final project. We are asked to froup all the projects in one as functions, my problem is some of my projects (a...
[6 replies] Last: You are confusing yourself on what you need to achieve. You need to ma... (by Zaita)
problems with dequeue function for my linked queue class program
 
I am working on this linked queue class program and it runs without any compiler errors but there is a break point in my dequeue function. It is pointing toward...
[1 reply] : This is a very general question that probably requires a thorough unde... (by rcorty)
ifstream garbage output.
 
Hello peepz, trying (for practice) to write a program that reads a list of names and throw them out in a specific order... but that's really not the problem,...
[5 replies] Last: string line, cont; ifstream file; file.open("test.txt"); i... (by closed account DNwq5Di1)
I am stumped by wrong cout
 
This is a small portion of a program I am making. When the correct answer is entered, it still says incorrect. It is probably really simple, but I cant find m...
[3 replies] Last: Thanks, I will put that into effect. (by noofootheodd)
Operator definition doesn't return *this?
 
I was making a vector class for fun and when I made the = operator function, the compiler doesn't require me to add return *this; to be valid? Is this standa...
[2 replies] Last: I don't know why but some compilers won't complain if you don't return... (by Disch)
Does friendship indeed not inherit?
 
Hi, all I am learning C++ with the book C++ Primer, 4th edition. In section 15.2.6, it talks about friend and inheritance, the basic conclusion is that frien...
[14 replies] Last: Weird. Maybe I'm wrong on that one? *shrugs* It errored for me ... (by Disch)
December 2010 Pages: 1... 1314151617... 35
  Archived months: [nov2010] [jan2011]

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