Beginners - December 2009 (Page 6)

by disini
Guess the Capital Game.
 
Hi everyone. Im having problems getting the program to compare strings in the array. The game is supposed to ask the user what is the capital of a random co...
[2 replies] Last: Thanks for the reply. It did help. (by disini)
Coin change Error
 
Hi would You please tell me whats wrong with this Code ?? For This Problem:- http://online-judge.uva.es/p/v6/674.html #include<iostream> using namespace std...
[1 reply] : Firstly, your first for loop in the counter loop is the equivalent of ... (by mcleano)
Where can i get a complete documentation/list of all classes/functions
 
Hi, I've been studying java for a while now. They have something called the api(library) that has all the methods(functions) and classes in them. Where can I ge...
[1 reply] : http://www.cplusplus.com/reference/ (by Bazzy)
Stringstream into object
 
I have a file that shows the assigned number of a person, their name, correct answers and wrong answers on the form "4 Marie 30 8". I'm trying to read this i...
[4 replies] Last: Also, what's a Rum? I'm seeing a Keeptrack constructor, above. (by moorecm)
file names
 
hi! i would like to get a file base name (i have the full path name) i am trying to use strrchr to find the last occurrence of '\', but since it is an spe...
[2 replies] Last: thnx! (by rompecabezas)
I'm getting weird errors about not having operator matches for << and >>
 
#include <cstdlib> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string num; std::vector<stri...
[2 replies] Last: wow, now I feel like an idiot. Haven't written a console program in a... (by Scythe37)
Can't seem to pinpoint my problem? Possible pointer issues in use of my class
 
Hi, I'm working on a textbook question, so far I got the program to at least compile but it crashes immediately upon call to question 1 Header File #if...
[2 replies] Last: Good info Disch, thanks a lot. (by nickg140143)
reaching friend function
 
Here is my code: class A{ void FA1(); friend class B; }; class B{ void FB1(){ A::FA1(); // *from here } }; I need to access FA1 from *. But i ...
[3 replies] Last: Or if the function specifically checks for a null this pointer or some... (by Disch)
by qazwsx
Incorrect makefile - can't launch an action.
 
Well, when it comes to makefile, i'm a total noob, and i've just recently written one for my small project. However, when trying to run 'make debug' option,it...
[10 replies] Last: Try this (The CXXFLAGS on line 1 is used when we say make or make... (by guestgulkan)
Friend classes in different header files?
 
Hi everyone I am building a very easy example in order to understand the basics of classes. I made two classes: CVector and CFriend (CFriend being a frie...
[3 replies] Last: Thanks hamsterman and Disch for the answers! (by archimbolda)
by bamdad
Problem with code "signal SIGABRT"
 
Hi guys i have written the following code. when completed, it is supposed to read data from a Gmsh mesh file. but i keep receiving a SIGBRT signal right before ...
[3 replies] Last: that is ture, but the problem is that i changed the .txt to include a ... (by bamdad)
How to run a program from inside another without stopping the first.
 
Well, I have searched but can not find anything so here goes. I have only been learning C++ for about three days so my knowledge is slim. I am trying to wri...
[2 replies] Last: Thanks man. I talked to a friend of mine today and showed him my code.... (by Compuperfail)
Pointers to classes
 
I have an array of classes. The size of the array is unknown. For this, I used a pointer as follows. myclass *ptr; myclass var1, var2, var3; // test varia...
[7 replies] Last: Alright. Now i know what it is called. thanks. (by kishor8dm)
by Wander
Different Types of Programs
 
The only kind of program I've ever made is a console application. Well, when I create a new project on my compiler, Codeblocks, I have to select what kind of pr...
[6 replies] Last: OK THANK YOU VERY MUCH! (by Wander)
by Wander
Question on a Header File
 
I saw a program on this website with a header file called <conio.h> and inside that library was a function called getch(); I was wondering what they do.
[3 replies] Last: haha thanks for the link :D y not use it? (by Wander)
Biano- beep piano
 
Hei all! I am trying to make a sort of piano that plays music through pc's internal speaker using beeps. this is what i have: #include <cstdlib> #incl...
[6 replies] Last: WOW! LOL! I didn't even think about doing that. I'm still relatively n... (by Wander)
Can you fix my code please? WARNING: There are ALOT of problems
 
#include<iostream> using namespace std; int main() { string a; void apple(void); void banana (void); void orange (void); char c; ...
[5 replies] Last: http://www.cplusplus.com/articles/firedraco1/ (by firedraco)
cant get my class to work
 
im trying to create my first class. my compiler is giving me an error. i also have no idea is this will work at all if there are no syntax errors. #includ...
[7 replies] Last: I'm not giving him advice. It's what his function does. Otherwise why ... (by tummychow)
by qazwsx
A small problem witt argc, argv and getopt() usage
 
Well, the problem is rather general c than c++ oriented, so i hope you won't mind. I have to write an application that gets what to do via argv values. And...
[2 replies] Last: Then, what shall i do then, helios? Is there any other way than manual... (by qazwsx)
by Repxl
ASCII / OpenGL
 
i found this article http://brebru.com/asciicodes.html but the F12 or F10 or ANY F button on keyboard no working you know im making an EXIT button in Open...
[1 reply] : Are you using GLUT? If that's the case, you can use glutSpecialFunc to... (by magicalblender)
December 2009 Pages: 1... 45678... 23
  Archived months: [nov2009] [jan2010]

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