General C++ Programming - July 2011 (Page 10)

nonlinear regression
 
quick question: Is any resources for non-linear regression here? thanks!
[3 replies] Last: This is working but not always.. //-------------------- nonlinear r... (by fotoni2)
[Help] C++ Object Oriented Programming
 
Solved thank you
[1 reply] : Would I be correct in assuming you were provided the bicycle class and... (by closed account DSLq5Di1)
by banu
Deleting pointer which is already deleted
 
Hi , In our code we are deleting already deleted pointer. What will happen when we do that. code snippet <code> scrRequest{ HttpWrapper * pHttp = Http...
[4 replies] Last: http://www.cplusplus.com/forum/general/46599/ The behavior is undefin... (by ashishkumar)
for loop
 
Hi I am not quite sure what this for loop means for (sum=a , k=i-1; k>=0; k--) sum -= a ; Why is there a sum=a in the for loop ? Is it initiated every...
[1 reply] : The FOR statement takes 3 statements, and the first one is run once at... (by webJose)
simple SFML project gives lots of LNK errors
 
I was learning SDL but then heard that SFML is like a more dated version, so i started learning SFML. here is the errors im getting 1>------ Build started: ...
[6 replies] Last: but now i have another ...which is...? (by Disch)
by corey
Help with splitting const char?
 
Hi, I am having some trouble with getting this working. I am working on some base code that I have. And I want to split the buffer and replace some things. I ha...
[4 replies] Last: Thanks, I'll try this out when I get home. It looks perfect for my sce... (by corey)
Boost library
 
Hi I want to use boost filesystem part only on mac. For that I have builded the library. And extracted the filesystem library(from lib dir) and headers files i...
[4 replies] Last: Install boost via macports, then all you have to do is add /opt/local/... (by kev82)
average timespecs
 
I have a stl vector of timespecs and need to determine the average of the timespecs. The size of the vector wont be any larger than 5k. What I have doesn't ...
[2 replies] Last: You don't appear to initialize sumTime. (by Galik)
artificial intelligence
 
1) Suppose you are searching for a girl’s name written using only the three letters L, O and A. 1a) How many strings of four or fewer letters are there? ...
[5 replies] Last: 1a) How many strings of four or fewer letters are there? (1) 0 lette... (by shacktar)
'System.AccessViolationException' dll
 
Hello All, I am pretty stumped on this one... So I have a c++ dll (interface.dll) that uses another c++ dll (myDll.dll) and is exporting functions for a c# ...
[no replies]
Problem with declaring constructor in VS 2010
 
Hey, I am getting the following error: "missing type specifier-int assumed.Note:C++ does not support default-int" for this line of code in Visual Studio 2010: ...
[5 replies] Last: Maybe you got your constructors identifier wrong? It's always a possib... (by closed account zb0S216C)
Code help please
 
I need help writing a loop function. I need to use a while loop to find the smallest integer (n) so that n*2 > 12,000. (n*2 is exponential (pow function)) expl....
[3 replies] Last: I think it's because I used to using while true from perl and python, ... (by creekist)
Help with typedef struct
 
Hey, I am working on converting C++ code from Visual Studio 6.0 to Visual Studio 2010. I have came upon the following code and don't fully understand: type...
[3 replies] Last: I use type-defined structs most of the time. It's best to read upon t... (by closed account zb0S216C)
assignment overloading using pointer
 
I am writing an assignment using operator overloading. The assignment using reference works fine. I also try to use pointer, however it does not seems to use ...
[2 replies] Last: Good point, thanks a lot. (by coder1998)
Continuing to next iteration of loop
 
I know that break; will exit out of a loop entirely. What's the command / function call that will skip to the next loop iteration?
[1 reply] : continue (by quirkyusername)
Help with base pointers
 
Could any show me how to code a for loop that assigns a base pointers to a series of already initialized derived objects. I don't know where to even start with ...
[2 replies] Last: Also: int n = 5; // oops int n = 4; // ... //for (int i = 0; i >= ... (by Galik)
User Input Starts from Right To Left (Closer to Solution)
 
This question is actually a follow up on how to get the user input start from right to left. The idea is to simulate a Windows calculator where every time a use...
[1 reply] : Try this int main() { console_t console; int key = 0; ... (by hamsterman)
by ane
list.remove() not deallocate the memory?
 
I have difficulty in getting the list (list of std) to the end and read your data. when I remove all elements, the list is never empty and never goes out of t...
[1 reply] : 1. you have too many {s (the unnecessary one is on line "{ temp = d->a... (by hamsterman)
convert
 
Need to convert python 3 to C++ A.'city' as a null terminated string. B. C++ function bool isVowel(char c) def scoreCity(city) score = 10 for ei in City: ...
[1 reply] : Not that I know python, I guess int scoreCity( const char* city ) { ... (by hamsterman)
by rucafe
adding values to a 3D array
 
I have a large data base that looks like the following: Energy position 5.639792 1.36 4.844813 1...
[2 replies] Last: Do you want a histogram ? http://www.cplusplus.com/forum/beginner/469... (by hamsterman)
July 2011 Pages: 1... 89101112... 30
  Archived months: [jun2011] [aug2011]

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