General C++ Programming - September 2011 (Page 31)

Big arrays and memory
 
I've got a question for you here: what's the best way creating a huge array of (quite) big objects ...I've got a class consisting of like 30 double precision va...
[5 replies] Last: Ok thank you both! I think I got the idea...I'm afraid it was not all ... (by ZED0815)
clear screen "TERM environment not set" runtime error
 
How do you clear the screen with c++? I'm using a mac os x 10.3.9 and writing a program in c++ ... I am currently using the basic system("clear") command but I ...
[2 replies] Last: why are you running 10.3.9? we up to 10.7.1. It could your outdated sy... (by cscho0415)
How to pass a cout-style stream into a function.
 
I'm trying to write a logging function that multiple users can use in their functions with minimal effort (1 line required, no extra variables). Forgive me if I...
[4 replies] Last: If you have studied classes, you should create a Logger class, not a L... (by webJose)
Eclipse - How include Curl libraries
 
I have curl installed in my linux Ubuntu. I tested it from terminal and it is ok. Now I want to include in my Eclipse project. I just wrote /usr/local/curl-7.21...
[3 replies] Last: Then you don't have a correct libcurl installation. The *.imp, *.rc, a... (by helios)
setprecision
 
Hello, the following line is printing -0.00 cout << std::setiosflags(std::ios::fixed) << std::setprecision(2) << std::setiosflags(std::ios::showpoint...
[no replies]
Invalid Operands!!! Help ME!!!
 
I ve to add strings using + operator. I am using strcat function to add and I am getting following error In function ‘int main()’: cppfirst.cpp:44: warni...
[4 replies] Last: Thanks i'll work on it.. (by Max9970)
Sum Digits using Recursion problem
 
My instructions are: Create program definition for sumDigits Function. Function will receive and return an integer. The Main method will: ask for numerous n...
[12 replies] Last: Nope is not the same result. trace it, example: Considering n = 5 Su... (by mrkhn)
C++ If String = "x" or "y"
 
Hello :D I am making a C++ console app in VS 2008. I am wondering how I can write the command: if string = "x" or "y" {command} else {other command} I tried i...
[2 replies] Last: Thanks! It works now :D (by Muhasaresa)
where is the error for the mark8[]?
 
where is the error for the mark8 ? any expert can help me detect and tell me how to solve? #include <iostream> #include <fstream> #include <string> us...
[4 replies] Last: opps sry, yes I commented it at mark8 because the program can get inp... (by jornason)
by mrkhn
CArray + Structs Error...
 
Hi all, First at all thanks for the possible answers ;) I tried to find a similar post... but i couldnt find it. Sry if there is one like this. Well my probl...
[7 replies] Last: Solved and Works. Header: struct Met{ CString a; CString b; C... (by mrkhn)
discussion about array parameter?
 
different between two declare void fn_Test(char arr and void fn_Test(char arr )
[2 replies] Last: yes, i also think that, thanks so much. (by binladenvn88)
by cdd
Why am i getting this output?
 
Im trying to write a program that outputs the next permutation of a numerical string in lexcographic order. My issue is why my program is outputing in a wierd ...
[3 replies] Last: ok new problem, i modified it so the program computes all of the permu... (by cdd)
Can't get IRC bot to connect
 
Sry
[no replies]
September 2011 Pages: 1... 293031
  Archived months: [aug2011] [oct2011]

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