General C++ Programming - June 2011 (Page 25)

enforcing mutability
 
1. suppose I have a class called Cement whose instances are immutable when just read from the database or are just written to the database 2. all other i...
[11 replies] Last: I think I understood your problem, but I don't think you understood wh... (by kev82)
Small error, please help. "Undeclared (first use this function)"
 
Hey guys, this is my first semester in C++ and i'm not grasping the whole thing yet. It's errors like these that have me ripping my hair our because I'm not abl...
[4 replies] Last: #include <iostream> #include <string> #include <iomanip> #include <c... (by junh1024)
by suetam
ecuacion
 
Hola como están tengo la siguiente ecuación: F=(G*m1*m2)/(d*d); donde m1 y d son constantes, pero m2=2000, necesito un código que produzca una tabla ...
[6 replies] Last: Lately, it IS much to ask for people to write full sentences, much mor... (by webJose)
array addition formula
 
Hi There, I am using the following statements in a loop. The last statement is supposed to add them together but all three lines yield the same values. What ...
[9 replies] Last: It's working now. Thank you hamsterman. (by sanehatter)
by rucafe
Using classes to retrieve data
 
I have a file that contains thousands of numeric entries sorted into four columns. The structure of the data looks something like the following: 3 0.2 0.5 ...
[5 replies] Last: Considering that the file has thousands of numerical values, it would ... (by closed account zb0S216C)
Why can't generic types be like regular types.
 
I've been looking at templates where a set of instructions is carried out on any one type of data and I get the gist of it and all but I couldnt help but wonder...
[2 replies] Last: Because then: 1. Depending on what your declaration means, it is more ... (by helios)
by suetam
datos en c++
 
hola tengo este codigo que resuelve una ecuacion. necesito hacer un nuevo codigo que obtenga 1000 datos desde 0 hasta el valor de M2y f para cacer una tabla co...
[6 replies] Last: como puedo agregar la forma de obtener 1000 datos para F y M2 en este ... (by suetam)
must embed operator<<() implementation when using namespaces?
 
Must I embed or is there a way to break out the implementation? Of course, if I embed the implementation on Line 9, it works - however, I prefer to break i...
[9 replies] Last: I think you are worrying too much. AFAICS you aren't polluting it beca... (by ne555)
Simple Problem With Undeclared Statements
 
Hey guys, this is supposed to be a simple program where a teacher can enter the marks of students, find the average, s.d and etc. I have a problem inside s.d pa...
[2 replies] Last: I'd just like to say thank you, it works flawlessly now. (by icedabz)
by jdewey
Screenshot program
 
I currently do have a working program that takes a screenshot of the cmd window when it runs. I now need to make it take a screenshot of a web page and have no ...
[no replies]
Generic Multithreading (Boost)
 
Hello all, Here is my problem: I have 3D containers in which I store any data on which I wish to apply various filters, mathematical morphology, etc. ... So ...
[2 replies] Last: I finally found a way to do it! I just put my function and its paramet... (by TCHATTE)
by Aikon
template multiplications of two matrix
 
I have the folowing code that allow me multiplicate matrix but I want it to void the size's of each matrix. Something like that: template<class T,class S...
[4 replies] Last: Now al work. Thanks you very much. #include <iostream> using namesp... (by Aikon)
Schedule programs
 
Is there a way in C++ to schedule the running of programs, so that they start automatically at certain moments of the day?
[2 replies] Last: cron exists only in *nix world, on windows you could use task sheduler... (by modoran)
Can't Bootstrap Boost Libraries: Required Files Not Found
 
I'm trying to install the Boost libraries in Mac OS X (exactly what version is classified according to Apple, but as far as I can tell, it behaves the same as S...
[1 reply] : I solved this by creating symlinks in /usr/local/include for everythin... (by TechnoCat)
Char Array
 
I am making a program in which i need to assign a string to a char array but when i do so it flags an error - "lvalue required". For example #include<io...
[5 replies] Last: A = "Hello"; while executing this line compiler create a const char a... (by dearvivekkumar)
by GPP
How copy one char from a string
 
hi, Im trying to copy one char from a string for example std:string abet; std::string message = "Hello worlds, of niceness"; abet = ? using <string> ...
[3 replies] Last: string class is a STL container just like STL vector. (by dearvivekkumar)
by rat
time() functionality and tm structs w/ pointers
 
I am writing a Rolodex-type program to store information like birthday, phone number, etc. I have defined a Rolodex structure, and then declared an array of Rol...
[3 replies] Last: Hey I have written one function which takes a string(since I am suing ... (by dearvivekkumar)
Template trouble
 
I wonder why I get a compiler error if I uncomment the two operator definitions? Also I wonder why I get a compiler error on v.push_back(5) if I change the line...
[9 replies] Last: I knew about this - I have mentioned it in other questions on the same... (by guestgulkan)
Declaring struct/class local to a function
 
Hi, Is it correct to declare a class local to any function. Suppose I have a class like : class AnyClass { public: void FunctionA(); }; voi...
[2 replies] Last: The (current) C++ standards documents does say that local classes are... (by guestgulkan)
REMOVE PLEASE
 
MODS PLEASE REMOVE, THANKS
[3 replies] Last: How so? (by firedraco)
June 2011 Pages: 1... 232425262728
  Archived months: [may2011] [jul2011]

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