[CODE]a.cpp: In function ‘int main()’: a.cpp:39: error: no matching function for call to ‘find(int&, int)’ [/CODE] [CODE]#include <iostream> #include <fstream> using namespace std; int minutes, seconds; char temp; int array_l; bool* sees; int* a; int saade; int main() { ifstream sisf("raadio.sis"); ofstream valf("raadio.val"); /* * How many songs? */ sisf >> array_l; int a[array_l]; /* * Read info and putting info in array */ for (int i = 0; i < array_l; i++) { sisf >> minutes >> temp >> seconds; a[i] = 60 * minutes + seconds; cout << a[i] << endl; } sisf >> minutes >> temp >> …

Member Avatar
Member Avatar
+0 forum 5

Hey guys, So, I need to add booleans on my project for the final piece. I have all of it done but the booleans. Basically, I checked about 10+ links on google, and none of them really explained how to do booleans. So, what I need is something that does this: [CODE]if (paybackYears <= TEN) { boolean buyIt = true; System.out.println("Therefor, the likelyhood of you making your money back in 10 years is " + buyIt"."); } else { System.out.println("Therfore, the likelyhood of you making your money back in 10 years is " + buyIt+"."); } [/CODE] I know this …

Member Avatar
Member Avatar
+0 forum 8

hey there guys, just starting to learn java and i'm having a little trouble putting code to paper. don't really want to ask the teacher because hes a perv but lets not get into that. okay, i am supposed to make a GUI for electronic voting ballot paper thingy and i made something i think is cool with netbeans ive done everything so far up until the submit button i'm thinking i have to use some kind of array for it but i'm not sure how to apply it the array is supposed to be an error doodad for certain …

Member Avatar
Member Avatar
+0 forum 1

Never mind, my bad, I figured it out. :P

Member Avatar
Member Avatar
+0 forum 1

Is this: A)[CODE]while (!isLegal(move, board))[/CODE] the same thing as: B)[CODE]while (isLegal(move,board) = !!)[/CODE] ?

Member Avatar
Member Avatar
+0 forum 5

The End.