Hello, everybody. I was wondering if anybody could help me with something. I don't know if I'm taking things too fast but, I was wondering if somebody could help with this program I am making. I'm currently writing a "fake" bank script. Basically you start with a set amount of money, and you can deposit it, withdraw it, and check your balance. However, when I make the deposit and then check my balance, I shows up as the balance being 0, instead of what I had deposited... Could somebody help me out?? Here's the code: Bank.pyw: [CODE]#THIS PART IS NOT …

Member Avatar
Member Avatar
-1 forum 13

Most common quiestion is: [quote]Is there any C++ GUI API?[/quote] My answer is MANY. There are many API's for making GUI applications. Here are some. [B] 1. WinAPI: (C based)(MFC is C++ based)[/B] [I]Its a great API and the best solution if you are windows programmer. First code will look a bit difficult, but later (after making few apps.) you will see its not so rusty. I like it, because you can do almost everything with it (in windows). The only bad thing is, that you cannot make applications for Linux with it. Tutorial: [URL]http://www.winprog.org/tutorial/index.html[/URL] [/I][B]2. Qt4 / Qt3 (C++ …

Member Avatar
Member Avatar
+0 forum 3

I'm trying to script a deep freeze thaw with deep freeze 6. I have 400+ computers to thaw then remove deepfreeze from, I DO NOT want to do this manually! I use the DFC.exe that is on the system and use the dfc OUR_PASSWORD /BOOTTHAWED It will always result in "Internal Error Executing Command" It doesn't matter what system I run it on, fresh install of xp, win 7, etc... Same issues. Any ideas experts? Thanks.

Member Avatar
Member Avatar
+0 forum 7

`The exercise is to enter one number (n1) and after the user has to enter n1 numbers.Then it has to be printed the number of negative numbers out of the n1 numbers added. So if the user decide that n1=5 and then add 5 numbers : 3,4,5,-1,2 the program should say that there is one negative number. The program i made is as follows:` import java.io.*; class MyProgram { public static void main(String args[])throws IOException { InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); System.out.println( "insert a number"); int n1=Integer.parseInt(br.readLine()); int i; int count=0; for(i=0; i<=n1; i++){ System.out.println( "insert a number"); int …

Member Avatar
Member Avatar
+0 forum 5

Hi all, Suppose if I write two programs of same functionality but with different methods and want to measure the run time efficiency how do i know? I mean to say i want to measure the run time of each code how do i do it? Should i check the efficiency of code upto milliseconds?

Member Avatar
Member Avatar
+0 forum 4

*How can one make a program autorun(that is make it begin on the start of the computer like a password program) *What is the best way to start learning windows programming(graphical user interface)

Member Avatar
Member Avatar
+0 forum 3

Can SQL 2005 Run on Windows Server 2012?

Member Avatar
Member Avatar
+0 forum 2

Hi, I am trying to use the mysqlnd_ms plugin on my php installation but when I run any code trying to utilise the "myapp" variable I have set up as per the tutorial it just gives the error: PHP Warning: mysql_connect(): Unknown MySQL server host 'myapp' (1) in /var/www/settings/database.php on line 10 database.php line 10 looks like this $success = mysql_connect ("myapp", $mysql_user, $mysql_password); The mysqlnd_ms php.ini config extension=mysqlnd_ms.so mysqlnd_ms.enable=1 mysqlnd_ms.force_config_usage = 1 mysqlnd_ms.config_file=/etc/mysqlnd_ms_plugin.ini mysqlnd_ms.multi_master=1 mysqlnd_ms.disable_rw_split=1 and finally mysqlnd_ms_plugin.ini... { "myapp": { "master": { "master_0":{"host":"192.168.1.202"}, "master_1":{"host":"192.168.1.203"} }, "slave":{ }, "filters":{ "roundrobin":[] } } } However, it doesn't work. What could …

Member Avatar
Member Avatar
+0 forum 4

I have some JQuery code where an if-then statement is being run after a .slideToggle event. I just don't understand why the if section is still being run when it would appear the if statement is false. Code incoming: JQuery: $(function() { var pull = $('#pull'); menu = $('div#nav ul'); menuHeight = menu.height(); head = $('div#welcome'); down = true; $(pull).on('click', function(e) { e.preventDefault(); menu.slideToggle(function(){ if(down = true){ $(head).animate({paddingTop:'287px'}, {duration: 0, queue: false}); down = false; } else{ $(head).animate({paddingTop:'125px'}, {duration: 0, queue: false}); down = true; } }); After the .slideToggle event runs once it seems to work fine, but run …

Member Avatar
Member Avatar
+0 forum 7

and i have more than one class this is my java file and im using netbeans import java.applet.*; import java.awt.*; import java.net.*; import java.awt.event.*; import javax.swing.*; public class sb extends JApplet { Thread threadABC; AudioClip gong; /** * Initializes the applet starbucks */ @Override public void init() { resize(920,700); /* Create and display the applet */ try { java.awt.EventQueue.invokeAndWait(new Runnable() { public void run() { gong = getAudioClip(getCodeBase(), "/Users/haneenmegren/NetBeansProjects/starbucks/build/classes/my/song.wav"); gong.play(); initComponents(); } }); } catch (Exception ex) { ex.printStackTrace(); } } /** * This method is called from within the init() method to initialize the * form. WARNING: Do NOT …

Member Avatar
Member Avatar
+0 forum 3

I have saved a javascript in notepad with an .htm extension. When I go to file then open and type in the file name, it just opens up a it as an address in the address bar. I want to run the program in internet explorer, how do I do that?

Member Avatar
Member Avatar
+0 forum 13

#include<iostream> #include<string> using namespace std; int counterofanalog=0; int counterofdigital=0; int counterofsmartwatch=0; int num=0; //class for Genwatch class genWatch { private: int watch_id; string brand; int price; string colour; int date; public: genWatch() { watch_id=0; brand=""; price=0; } void adddata() { cout<<"Please Enter Watch ID:"; cin>>watch_id; cin.ignore(); cout<<"Please Enter Watch Brand:"<<endl; getline(cin,brand); cout<<"Please Enter Price: Rm "<<endl; cin>>price; cin.ignore(); cout<<"Please Enter Watch colour:"<<endl; getline(cin,colour); cout<<"PLease enter date:"<<endl; cin>>date; system("cls"); cout<<endl<<endl<<"New item has been succesfully added!"<<endl; system("pause"); } void editdetail() { int a=0; cout<<watch_id<<"\t"<<brand<<"\t"<<price<<"\t"<<date<<endl; ED: cout<<"Do you want to continue editing?:"<<endl; cout<<"\t1:YES\t2:NO"<<endl; cin>>a; if(a==1) { cout<<"\nPlease Enter New Watch ID of the …

Member Avatar
Member Avatar
+0 forum 6

I tried to make a way to let the user choose to which piece of the program it would go, i first tried *for* but later went and used *if*, this is the code: while True: whichcode = 1 #set the variable for the first time. while True: if whichcode == 1: print "code nr one" print "where to go?" x = raw_input("1 or 2 or 3? ") if x == 1: whichcode = 1 if x == 2: whichcode = 2 if x == 3: #let the user choose whichcode = 3 #which piece of code it should go …

Member Avatar
Member Avatar
+0 forum 3

Hello. I need help with my assignment urgently. This is my assignment question and the follwoing is my code. It compiles but it doesnt give me the right output. 1. Run length encoding. Example: if the input is “AAABBCCCDEEFFA” the output will be “A3B2C3DE2F2A” 1. Input takes the form of alphabetic characters only 3. Must read in the input from standard input. 4. Can't use C++ string data type or vectors. Only use dynamic arrays implemented with pointer. #include <iostream> #include <cstdlib> #include <cstring> using namespace std; int main() { char str[26]; char *ptr; ptr = str; cout << "Enter …

Member Avatar
Member Avatar
+0 forum 4

I am using codeigniter if ($this->form_validation->run() ) always returns false. please help me out with this Here is my controller and view page as shown bellow This is controller admin.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { public function index() { $this->login(); } public function login() { //echo 'This is admin controller login function'; $this->load->view('admin/admin_login'); } public function login_validation() { $this->load->helper('form'); $this->load->library('form_validation'); $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email|xss_clean'); $this->form_validation->set_rules('password', 'Password', 'trim|required|sha1'); $email = $this->input->post('email'); $password = $this->input->post('password'); print $password . $email; if ($this->form_validation->run() == TRUE) { //redirect('admin/profile'); $this->load->view('success'); } else { $this->load->view('errorrr'); } } } admin_login.php is …

Member Avatar
Member Avatar
+0 forum 2

hello, i recently joined the USACO's training gateway [url]http://ace.delos.com/usacogate[/url] I made the first problem([URL="http://ace.delos.com/usacoprob2?a=n4y3olVXOJ9&S=ride"]http://ace.delos.com/usacoprob2?a=n4y3olVXOJ9&S=ride[/URL]) and it ran successfully in my dev-cpp compiler. but the online grader threw some runtime error. it was like [COLOR="Red"]Compiling... Compile: OK Executing... > Run 1: Execution error: Your program (`ride') exited with signal #6 (abort()). The program ran for 0.000 CPU seconds before the signal. It used 2928 KB of memory. ------ Data for Run 1 ------ COMETQ HVNGAT ---------------------------- Your program printed data to stderr. Here is the data: ------------------- terminate_called_after_throwing_an_instance_of_'std::ios_base::failure' __what():__basic_ios::clear ------------------- Test 1: SIGNAL 6 (0.000 secs, 2928 KB)[/COLOR] debugging using cerr, …

Member Avatar
Member Avatar
+0 forum 4

run.exe is absent from my windows and no game is running on my pc showing debugging message. I think some file had been deleted . Please HELP !!!

Member Avatar
Member Avatar
+0 forum 1

i have installed xampp server in my pc.i couldn't run programs in browser.when i write http//localhost then it screen comes with written iis7.please help

Member Avatar
Member Avatar
+0 forum 3

Hi, I am not able to "run as different user" in my windows 7 (domain login) machine. For example if i'm trying to start iexplore (run as diff user) It returns the error : "The system cannot find the file specified". Please help me. thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

Hello, I have created a project in C#.net and I want now that created exe run only once on any particular machine after installation. Can any body told us how to do it. Regards Avadhesh

Member Avatar
Member Avatar
+0 forum 11

The End.