I just saw it. Thanks for your help anyway. I should check my sources better.
Type: Posts; User: Gamma_123
I just saw it. Thanks for your help anyway. I should check my sources better.
I was wondering that there is no ifstream too, but the strange thing is, that this are the numbers from my file. So I have no idea why you are getting this values without having the file.
I have an example code for reading a file and working with the values in c++ but I don't understand how it works:
#include <iostream>
#include<fstream>
using namespace std;
class v3d{
It's working. Thanks for your help.
I have an array with an unknown number of elements and want to know ne number of entries.
Here's my code:
#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
No. I didn't want to install the compiler new because it worked well bevor two days. I just don't understand why it's not working suddenly.
It's still not working. However I recognized that it creats a text file. It's a very long text so her's the fitsz few lines:
# 1 "te.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "te.cpp"...
The file MinGW is in C:\
I now set my system environment variable to C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;. The terminal now recognizes commands like ping, but still isn't able to compile.
Rebooting my computer didn't work out. I would like to give you more informations but I don't know more either. I only can tell you that I'm using Windows 10 and a Mingw compiler.
I have written a code and after I compiled it I get a huge error message. I afterwards closed the terminal and when I tried it again, there was no more error. The strange thing is, that it didn't...
Yes you are right. I still don't understand why I need this lane. Why do I need a private variable (generaly) and why do I have to say prozent = pro? I just don't see the advantage of this methode.
I want to write a simple c++ code that will calculate some data for me. Since I'm new with c++ and I want to work with constructors to learn how they work, I have a problem and don't know how to...
I wrote a code to read Data from a file and its compiling without a problem but when I try to run it a window opens and I get the error:
programm has stopped working
How can I fix that?
...
How can I enable these flags? By typing in -Wall, I get the error that the comand is either wrong spelled or couldn't be found.
Thanks userxbw, I think I got it now!
So myThirdFunction would return 5/20 in your example right?
I have written a function which reads Data from a file and calculates the distance between each point.
int read(float Wert1, float Wert2, char *filename);
int read(float Wert1,float Wert2, char...
gcc (GCC) 5.3.0
Thank you very much! Lien #38 was the problem. Can you pleas tell me how to increas my compiler warning level?
I wrote following code for reading Data and storing it on an array.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define MAX_L 100
When i try to pass the filname in the code like userxbw told me, the programm can be compiled but when I try to run it, it never stops! I also tried your code userxbw and its working fine but we...
My actual code looks like this
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
No my main is bassically empty but it's not working with your code as well. Any idea what can be wrong?
Thank yo very much. I have version 5.3.0. I now want to read a file with cmd like: program file.dat and get the perror message and "Invalid argument". Does somebody now why this is happening?