Search:
Type: Posts; User: ted_kingdom
Search:
Search took 0.01 seconds.
-
Thanks, it can be compiled now, but expected .txt file is not created. Where is a catch?
Never mind. It must be written ofstream. Thanks again.
-
Hello.
I want my function to take 'fstream' object as an input, so the program looks like this:
#include <fstream>
using namespace std;
void test(fstream a){
a.open("test2.txt");
a...
-
Thank you for advice. I'll try to follow it.
-
Thanks, you were absolutely right!
-
So, I have a class Planet:
class Planet {
public:
void Verlet(int, double []); // a method to implement Verlet algorithm
void VelocityVerlet(int, double []);
void...
-
Actually, you are right. Compiler doesn't complain, but I don't get the output as I expected.
So, in my program I need to use a method of the class that takes as an input an array of data type...
-
I commented it out just to let everybody know what was my intention. Unfortunately, I don't know what it does (I asked it, but still waiting for the response as my googling didn't answered it). If...
-
It was complaining that PlanetType was not declared. I found the answer on other forum:
class Planet {
public:
// typedef class Planet PlanetType;
template<class PlanetType>...
-
Hello, I want my method of the class to take as an input an array of data type derived from class. How can I do this?
class Planet {
public:
// typedef class Planet PlanetType;
...
-
Thank you for your answer, but I went a little bit different way:
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
float inputData [6];
-
Hello.
I want my program to read variables from file "input.txt":
Moreover, I want program to read only the numbers after colon. How can I do it?
#include <iostream>#include <fstream> // to...
-
April 18th, 2013, 01:51 AM
No, thank you. Initially I did not create a project at all. Now it works fine. Thanks a million!
Done.
-
April 18th, 2013, 01:29 AM
Online compiler also builds. But Code::Blocks 12.11 keeps yelling:
Build messages:
C:\Users\oniltech\Dropbox\CMS\Molecular Dynamics\Assignment 1\revision 1\BCC_FCC_HCP.o:BCC_FCC_HCP.cpp||...
-
April 17th, 2013, 05:25 PM
When building the program I get the following error: undefined reference to `Atom:: DoBCC(float, int, int, int)'. What am I doing wrong? Thanks in advance.
main.cpp
#include <iostream>...
-
April 14th, 2013, 03:59 PM
Thank you very much. You are absolutely right.
-
April 14th, 2013, 02:59 PM
Hi. I receive unexpected outcome in my programm. Instead of geting all combinations of 0, 1, 2 (i.e. 000, 001, ..., 222) I get only 000 001 002 010 011 012. Can somebody tell me why?
The idea of...
|
Click Here to Expand Forum to Full Width
|