Codeblocks stops to work when i run this code, can someone tell me why?
Type: Posts; User: funnydarkvador
Codeblocks stops to work when i run this code, can someone tell me why?
Hi everybody, something may be wrong in my code even if there are no errors of compilation. But i don't know why!
Any help would be greatly appreciated.
My code :
#include <iostream>#include...
Yes, but the problem is i think i have to pass finalArray because i use it in my function toto, but contrarily to what you said i want to return each value of the array finalArray in the code coming...
Yes, i just want to return each value of the array at n,n
Hi everyboy ! While compiling, i get this error :
I don't understand where does it come from. Here is my code :
#include <iostream>#include <iomanip>
#include <cstdlib>
using namespace...
What a stupid beginner error!! OK thank you i have to write : cin >> array_of_coefficients[x];
Hi everybody ! I get this error while compiling this code :
#include <iostream>
#include <iomanip>
#include <cstdlib>
using namespace std;
OK. Finally, the code with 0 errors is :
#include <iostream>#include <iomanip>
#include <cstdlib>
using namespace std;
OK i don't have to return my array in this exemple, so is this code right ? (i deleted :
#include <iostream>
#include <iomanip>
#include <cstdlib>
using namespace std;
Sorry i meant a
The problem has now been resolved !! Thank you everybody for your help !
I just had to add a in my outter loop of my function printOutArray as Neo1 told me, but i have to tell my error to all the...
If someone would give me the simple code that displays an array of 6 lines and 6 columns filled with zero i would greatly appreciate it
What is '\n' , is this what you call a newline (sorry english is not my native language)? And where do i have to put it in my code?
I just tried what jimblumberg told me to do but it doesn't work any more. Please could someone give me a piece of code that would help me understand because honestly, i still can't see how to make an...
i try to understand what you Neo1 are explaining me, so i do this :
#include <iostream>
#include <iomanip>
#include <cstdlib>
using namespace std;
void initArray(float...
Elysia, to answer your question, my code is not finished, i return it because i will use it later as i said
i try to understand what you Neo1 are explaining me, so i do this :
#include <iostream>#include <iomanip>
#include <cstdlib>
using namespace std;
void initArray(float largeArray[6][6]){
i changed it, i put 6 everywhere i had 5 in order to have 6 lines and 6 columns, but the result is exactly the same.
i also tried to put an endl by typing this :
cout << largeArray [x]...
Does anyone have a solution to change correctly the line?
Ok i understand, however i'm changing the line when i do this :
for (int x=0; x < 5; x++){
So could you tell me how to do correctly change the line because i can't see how to do
...
Sorry, I forgot to say hello, so Hi everybody !! Any help would be greatly appreciated even if i know it may be some classic beginner error
I don't understand why my code doesn't display an array of 6 lines and 6 columns as i wish.
My code displays an array with 10 columns and 3 lines.
Than you in advance for the help.
Here is...
Thank you for your advice laserlight. I think i don't need to use std::cout because i did #include <cstdlib> at the beginning of my program, so that i use cout whether than std::cout
Anyway i've...
[QUOTE=laserlight;1151378]Consider this program:
for (int i = 0; i < 10; ++i)
{
std::cout << numbers[i] << ' ';
}
std::cout << std::endl;
}
Yes that's what i want to do, but i don't understand your idea to use a simple loop to assign the values, can you explain me a little bit please?