Beginners - May 2011 (Page 3)

by tonnot
Your opinion about using iostream to do big read-write operations
 
I'd want to have a fast method to read - write data from-to vectors form memory-to file and vice-versa. I'm planning to store the data associated with each vec...
[no replies]
Add template library in MS visual C++ express 2010
 
Hi everyone, I am currently learning C++ and am using Microsoft visual C++ express 2010. I am trying to add/install a template library called Eigen which wil...
[no replies]
Im trying to over load the operator <<
 
This is my header file #ifndef DATASTORAGE_T_H #define DATASTORAGE_T_H using namespace std; enum EXCEPTION_ERROR { ALLOCTION_FAILED, OU...
[no replies]
Why is this call ambiguous?
 
namespace A{ template <typename T> T const& max(T const& one, T const& two) { return two<one?one:two; }} int main() { using A::max; std...
[10 replies] Last: ah, yeah, that makes sense @ m4ster r0shi. I guess I never though abo... (by Disch)
Where does uninitialized pointer point to?
 
int main() { int* ptr; *ptr = 56; } This compiles without warning. I thought the pointer had to be initialized before anything could happen. Is thi...
[1 reply] : When you create a pointer like this, the memory for that pointer is al... (by Moschops)
Problem with std::bad_alloc
 
I made function to extract the pilygons and similar stuf, but when I execute it it pus me bad alloc... the coments are in spanish and don't know kow to make it ...
[4 replies] Last: class Arista { private: Vertice3D *v1; Vertice3D *v2; public: Ari... (by Silvermaul)
by bbcc
destructors
 
Hej every one, Could any one explain me what is the meaning of virtual destructor? virtual ~G4VUserDetectorConstruction () Thanks in advance...
[4 replies] Last: if you want the destructors to all of the base classes above you calle... (by kfmfe04)
Including Same file twice
 
Hi, What will happen if we include same file twice in a project. How comiler and Preprocessor handle it. Fro Example #include <iostream.h> #include ...
[2 replies] Last: I guess it would depend on the compiler. In my MS VC++ Express 2010, ... (by Nisheeth)
Menu Driven Program
 
design a program marks.cpp that will be used to analyse a list of marks. This program will be menu driven, and the user should be able to interactively enter or...
[1 reply] : first, we'll get the formalities out of the way, learn how to use code... (by matsom)
Question about doubles?
 
I am quite new to c++ and i wonder if there is any way to check if a double has any decimals? for example check if it is 3.24 or 3.0?
[2 replies] Last: Thank you so much! (by bin262144)
MD arrays as class members
 
how do i declare a multi-dimensional array as a member object of a class when i don't know the size ahead of time? for example: class example{ int array ; ...
[9 replies] Last: as an example you could have class example { example(int height, i... (by LBEaston)
by bbcc
references
 
Greetings, Could any one help me with this please: void SetFileName (const G4String& name) { fileName = name;}; This function gets the address of ...
[6 replies] Last: Hello Buddies, I would like to answer dangrr888 that I am trying to u... (by bbcc)
Overtime compiler
 
I am running in to a single errored line at this point. I've got everything else squared away, or so it would seem. I just cannot get this last one to go away. ...
[3 replies] Last: Keep the console open long enough to see your program's output http://... (by ne555)
no operator error
 
I know that this is simple to most but I dont see what is wrong. #include <iostream> using namespace std; int main () { string firstName = "Ben"; ...
[1 reply] : add #include <string> on Line 2 (by kfmfe04)
by Jeff96
Windows form application how to declare string
 
how do you declare string in visual c++ windows form application. and how do you write serial ports? ty:D
[no replies]
Iterators with classes.
 
Alright, so the past few days, I've been trying to study vectors, list, and maps. I'm currently starting with vectors, then am going to experiment with the o...
[5 replies] Last: Indeed, you are right. My bad for not noticing previously, thanks. I'... (by TotallyLearning)
Trying to place code into a string.
 
Hello all. I am trying to place sections of code into a string and I would eventually like to cout the string and then place in a compiler, so I need all the ch...
[11 replies] Last: Thanks Disch Thats what I was looking for. I did not remember I could ... (by tournamentdan)
by llVIU
Template inheretance?
 
hello, I am a newb at C++, and I am sorry for the layout, no indet or apropriate names for anything (class, doubles, int, etc) + the program is very sketchy, no...
[4 replies] Last: Indent your code. ¿what is the problem? (by ne555)
by Guluck
Parallel Tasks
 
Hi everybody, I'm creating a program with Microsoft Visual Studio 2010, it's a console program. My computer is running on XP. The program created can take...
[2 replies] Last: Thanks a lot ! (by Guluck)
how to sort the letters?
 
if i enter everyone first name, last name. how can i sort the last name?
[1 reply] : What are you storing the names in? (by Moschops)
May 2011 Pages: 12345... 48
  Archived months: [apr2011] [jun2011]

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