No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- Guitar
13 Posted Topics
Hi: I want to get some movement into some words. The only things I want to change are the layervisibility and the layerposition. This code below works fine in IE and Opera, but doesn't do anything in Netscape 8 (except when watching in IE view). How come: thx :) [CODE] … | |
I want to create several files at once containing the same data. Is this possible? I tried using a variable in the file pointer and file name: [CODE] int tel; for (tel = 0; tel < 200; tel++) { FILE *bestand_patienten[tel] = fopen("patienten/patientent[tel].txt", "w"); fprintf (bestand_patienten[tel], "hallo"); } [/CODE] Didn't … | |
I would like my program to execute some code using random variables. Whether this happens is dependant of three conditions: 1) a variable (first) should be bigger than an other (second) 2) a variable (third) should be equal to an other (fourth) 3) it should check these thing maximum 5 … | |
Hi I have a sequence that I want to put into a seperate function: The variables I want to take into that function and back to the main function are declared globally. declaring the function and the testing variable: [code]void sanction (); int test[10];[/code] my main function: [code] int main(int … | |
this the full code, which works like a charm, except for the error when i close the program. (a normal 'send report' / 'do not send report' error). I've narrowed it down to one line (a variabele being read from a file -> posted in red), but can't seem to … | |
The code below works for the first question (first half of the code), the program then proceeds to the second questin, but it never stops to await the answer. I can't seem to figure out what I'm doing wrong? Thx [code] #include <stdio.h> using namespace std; char answer; int main(int … | |
Why won't the 'luck' function get executed? Pasting the code of my tutorial in my compiler creates the exact same error as the little test code below: 'luck' undeclared. First use this function. I use dev c++ Thx ;) [code] int main() { printf("hellow (printed in main)\n"); luck(); return 0; … | |
hi these are some variables: [code] struct TIJDSTIP { int dag; int beginuur; int operatiekamer; }; struct ALLE_PATIENTENDATA { int nummer; char naam[20]; struct TIJDSTIP tijdstip ; int leeftijd; int discipline; }; [/code] first I only fill: nummer, naam, leeftijd and discipline (so the main strucure) using scanf. example: [code] … | |
I have made a txt file out of integers and chars that contains numbers and words. When I read the file and get to a line that contains a number, I would like to put it into back into an integer. How do i do this in c++? thx | |
I've set the promt window size to full screen. But now I can't return it to 'window', because it hasn't got a blue header anymore where i can acess the properties. Does anybody know how to set the console window back to 'window' when I press F9 (compile and run) … | |
I would like the program to repeat the "how many" question until the input is an integer: [CODE] int X = 0; number_patients: cout << "how many?\n"; if (! (cin >> X)) { X = 0; cout << "please enter a number\n"; cin.clear(); goto number_patients; } [/CODE] This creates an … | |
hi I'm new to C++ and was wondering if it is possible to create variables in runtime. example: If I ask how many patiënts have to be operated, the program should create a variable for each patiënt that can contain their individual data. thx |
The End.