General C++ Programming - April 2012 (Page 30)

Help with vector problem Runge Kutta
 
hello this is my first post so sorry if it looks all crazy with code. Im having trouble with a 4th order Runge Kutta method problem. I dont know why it just spi...
[4 replies] Last: O makes sense thank you! (by oobie2142)
by arooj
Writing to Sequential Access File with Fixed Point Notation
 
I was wondering how to write a sequential access text file using fixed point notation to 2 decimal places. What I tried in my code did not work, when I inputted...
[3 replies] Last: the outFile in fprintf (outFile, "%5.2f", itemPrice); experiences an e... (by arooj)
Cane Toads Array Program
 
I have been racking my brain all day and night trying to figure this out. A skeleton program was provided by the teacher. #include <iostream> #include <cstd...
[1 reply] : Ok bear with me, it is extremely long and probably completely wrong. ... (by tigerlilycnm)
Looking for alternative vector library
 
Hey there, the class vector is not exportable via windows dll, so i am looking for a replacement... if you can provide a link to a library with the same api ...
[2 replies] Last: > the class vector is not exportable via windows dll Memory allocated... (by JLBorges)
by hay123
standard deviation assistance
 
This is my code so far: #include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main() { float numbers ; float sum, lowest, highest...
[1 reply] : http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance (by ne555)
File input and Data reading , help please!!
 
I have a file with the following content 123456789,123 234567891,345 345678901,234 124356877,456 I have to read these data and check the validity the fo...
[no replies]
i need some help please!!
 
hi everybody, im kind of a beginner to c++ but i have been doing java for a while, im trying to make a basic all function calculator with c++ (add, subtract, mu...
[7 replies] Last: int subtract() { int t; cout << "enter a number: \n"; cin... (by JLBorges)
by hrva07
List declaration - Access violation
 
Hello. I tried to declare list in header file: private list<MyClass*> _objects; In .cpp file I implemented method for appending object: void Docume...
[7 replies] Last: Yes, I solved it for list. It wasn't problem with list. Problem was i... (by hrva07)
by Gldnbr
[simple] Deep copy of a linked list
 
I'm trying to perform a deep copy of a linked list and print out the length and sum of the copied linked list, however, there is some kind of problem and I can'...
[2 replies] Last: I would do it like this: listrec* deepCopy(const listrec*&copy) { ... (by GFreak45)
by tate1
Finals are here and stuck on a couple of questions....take a look??
 
To use a predefined function, the program must include the appropriate header file. TF 2. To use the predefined function abs, the program must in...
[1 reply] : TF 2. I think you have to include cstdlib for the integer version of a... (by Peter87)
Vector front(), Vector back()
 
My functions begin() and end() both work and would return something similar to front() and back(), however I understand I would return a reference to these valu...
[3 replies] Last: Maybie he will not use int as data later? And copies might be undesire... (by morando)
class help
 
Here are the instructions http://faculty.winthrop.edu/olsena/CSCI%20207/c207p6CalcAveClasses-s12.pdf if you see where it says Note: These averages will be...
[6 replies] Last: oh, nevermind, I fixed it! (by TommehTGOD)
Fixing my Mixer project
 
So I know that what I'm about to post seems like an insane amount of code for one post. Bear with me though, most of it is finished. I just need to get one or t...
[7 replies] Last: So looking at the WaveContainer class... you have this public interfac... (by clanmjc)
How to Print the content of boost varint of vector
 
Dear , pls tell me how to print the content of variant of vector.ie just I want to print content of motor_action_rsp_list. #include<iostream> #include<bo...
[5 replies] Last: friend std::ostream& operator << (std::ostream& os, motor_action_rsp&... (by clanmjc)
by ajac
file handling
 
how to find an integer from a string in a textfile using c++.. like first i wanna search for 1 nd den increament it to 2,3,4 so on nd search for all des intege...
[1 reply] : Post a sample of the text file, then post the expected result so we ca... (by webJose)
Reverse a string with no loops #include<fstream>
 
Well, I've been working on this for the past 2 hours, with little to gain... I am supposed to take a string and reverse it with no loops. in this assignment, we...
[4 replies] Last: To answer my own question, it's this(with my other main int at top): ... (by eyesofhope)
Processing Results from Select where columns type is [uniqueidentifier] - Using OleDB
 
I've got an application that parses a result set of a stored procedure, while debugging I noticed that the value of one of my variables was funky, upon inspecti...
[no replies]
by LeonD
Visual Studio Error?
 
Hello, I'm currently using Microsoft Visual Studio 2010 on a Windows 7 rig to get going with C++, and am relying several resources to learn the language includ...
[2 replies] Last: Thanks for the quick reply. It's been bugging me for a while! (by LeonD)
by totooo
save game& pause
 
hi i have a project at school its about making checker game so i am having Trouble with save function and pause if someone can Explains me how can i write them...
[1 reply] : To save data to to file you can use std::ofstream and to load data f... (by Peter87)
I need help and I dont know where to begin
 
dklk closed thanks for the help
[4 replies] Last: thanks for the help i found the solution (by Kelly123)
April 2012 Pages: 1... 2829303132... 49
  Archived months: [mar2012] [may2012]

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