199,114 Archived Topics
Remove Filter ![]() | |
I am mainly into system dev, writing kernels and kinda just building everything from the ground up... But I also like game dev and is interisted in the whole concept. So I am going to make this easy, seing as a lot of things can change the output. A programmer … | |
| |
#include"Gradebook.h" #include<iostream> #include<conio.h> #include<string> using namespace std; Gradebook::Gradebook( int balance) { if(balance>=0) { balance=balance; Withdraw(balance); } else { cout<<"Balance can not be negative\n"; } } void Gradebook::Withdraw(int) { cout<<"Enter amount to withdraw\n"; cin>>credit; if(balance>credit) { cout<<"invalid credit greater than balance\n"; } if (balance<credit) { int total=balance-credit; cout<<"Current balance:"<<total; } getch(); … | |
I just started to learn java, and the first program I have to create is called PizzaRun, here is description: PizzaRun is a simple program that calculates the number of pizzas to buy based on the sum of the slices entered on the command line arguments after the first argument, … | |
I am using windows media player in my vb6 form using wmp.url = "link" But it doesnt play online url eg."www.music.com/song.mp3" i found a solution : open local windows media player software --> type same url ---> MESSAGE APPEAR ASKING TO CONNECT OR "WORK OFFLINE" --> click connect and it … | |
Hai everyone, i have a problem, the program just read the first entered `Quantity` value in the program and apply it to all rows in database and the value of first and second row are same, even though in the beginning, first and second row value are different. First of … | |
![]() | CSCI-15 Assignment #1 — Functions and files review (40 points), due September 9, 2013. Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The … |
So, I've been through a class in java so I know a little bit of what I'm doing... The assignment I have is to create a program that takes a string and converts the letters four away in the alphabet (ie: a becomes e and so forth). I've gotten most … | |
Suppose you have this file named func.py: def func(x): y = raw_input(x) return y func(z) And then you have this calling code: z = raw_input('Type a request for input and hit enter: ') omega = execfile('func.py') print(omega) Why does the output always end up being "None?" | |
Hello everyone.. Would anyone know why I can't do the below. I'm not the best programmer in the world so I'm wondering why the below won't work. I get an error 'A template declaration cannot appear in block scope' No doubt it's due to my lack of understanding of the … | |
i am given this topic array - object oriented programming for report. i just some of your advise do i need to discuss OOP? including like inheritance, encapsulation, polymorphism ..etc.. or should i discuss only concepts of arrays definition etc... any addition to my outline: definition of arrays types (single-multi) … | |
I am getting Wrong Answer on submission. Problem link:http://www.lightoj.com/volume_showproblem.php?problem=1039 Code:http://ideone.com/1iMkOX I implemented the BFS inside the main function instead of coding it in a seperate function. | |
How to add the string before increment values with letters like A0001 increment to A0002---- please help me | |
I don't know if the title is clear enough, but what I'm basically asking is help with the organization of Resources in an application. Like, how do you go about doing that in YOUR applications? So, when a project is created in Visual Studio, we got like a bunch of … | |
Hi all. I need help with one HTML form. I taked a web sie template and formed it to suit my need but at the end the form build in it was not working. I have add php file and action to use the php file from what i have … | |
i have a index.php i just want only logged in user can access the page my code . in the index page is <?php error_reporting(0); $authorized=false; @session_start(); if(isset($_SESSION['$myusername']) && isset($_SESSION['$mypassword'])) { $authorized = true; } if(!authorized) { header('location:login.php'); exit(); } ?> | |
please correct the below query. i want to display variable value to textbox using echo command. variable can have both null and non null values. <td>First Party*:</td><td><input type="text" name="firstparty" value="<?php echo is_null($firstparty)? "":$firstparty;?>"/></td> error message error message:<br /><b>Notice</b>: Undefined variable: firstparty in <b>C:\xampp\htdocs\claim\claimform.php</b> on line <b>134</b><br />none. However issue is … | |
Hello, I am trying to create a script that will compare one word at a time from one file to every word in a second file. I know how to design nested for loops to read the first entry in file1 and compare it to every entry in file2, so … | |
Display 100 random integers in [10, 25] 14 14 18 24 12 25 16 12 18 16 15 16 16 15 17 19 10 21 14 25 21 24 10 19 25 17 19 13 25 24 23 25 15 25 18 23 18 14 24 11 21 12 20 … | |
/* `I have some dynamic checkboxes and corresponding textboxes. When a user ticks a checkbox and enters data into the corresponding textbox and submits, the value of the checkbox and textbox should be inserted into the database. I can insert the checkbox values perfectly, but the textbox values have issues. … | |
Is there code in visual basic 2008 where i can set my program to expire every 30 days ? Thank You | |
Here is exercise in error handling, while looping and for looping with itertools.chain. It is also exercise of functions not letting user to go without giving proper input. I call them to myself 'jail functions'. Here you could add as an exercise breaking out of loop and continuing until user … | |
I have some questions regarding design pattern (DP) usage, in particular for Java developers. i) Which DPs have you used, as far as you can remember, and how often? ii) How much have they helped your development work? iii) If you work in a project group, are there group standards … | |
Greetings friends. Please help me to understand this issue. 1 echo"<tr><td>< a href=\"home.php?num=$num\">$num</a></td><tr> 2 echo"<tr><td>$num</td></tr>"; Basically i wanted to have link for variable $num. I couldn't proceed because of following issue. However second command worked fine for me. issue : first echo returns below mentioned output. < a href="home.php?num=23434">23434 second … | |
can someone write a javaprogram to create a class that store objects with an inventory when the size was 20 and then expands to 100. print from 100-120 | |
Write a Java program that generates and displays 100 random integers in the range of [10, 25] inclusively. The program then displays the number of occurrences for each number in that range. Next, the program displays the maximum, minimum and average (with exactly 2 digits after the decimal) value of … | |
Hi, I want to send a mail with attachment which was already uploaded and stored in a database using php. | |
I have introduced an algebra for a new memory model. Now I need to implement this using Java. Basic step of my program is: Once we need to execute an application program (exe file), My program should accept that and classify it according to its functioning. do you have any … | |
Hi guys, I am trying to change color of the existing items in my listbox. Can somebody please help? | |
![]() | CSCI-15 Assignment #1 — Functions and files review (40 points), due September 9, 2013. Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The … ![]() |
Hi I have an issue in asp.net using vb code I am using Visual Studio 2012 with MSSQL 2005. I have problem in adding Report viewer, Version=11.0.0.0. I have an error "'ReportViewer' is ambiguous in the namespace ". Please anybody help me to solve this issue maideen | |
Just to note, this thread may never be marked solved until my main project evolves. anyways... To put it simply, this language is a common-interface language meant for conversion between all languages. This means that this language has to support all features between all languages in the most simplest of … | |
Floyd-Warshall(G) n=|V[G]| for (int i=1;i<=numNodes;i++) if connection weightmatrix[i][j]=weight; else weightmatrix[i][j] = infinite; if i=j weightmatrix [i][j]=0; for (int k=1; k<=numNodes; k++) for (int i=1; i<=numnodes; i++) for (int j=1; j<=numnodes; j++) a=weightmatrix[i][k]+weightmatrix[k][j]; if(a<weightmatrix[i][j]){ weightmatrix[i][j]=a;} return weightmatrix, matrixintnode; | |
Im trying to figure out how to read a file that is entered into the command line. I tried using #include <iostream> #include <fstream> #include <cstdlib> #include <string> int main(int argc, char *argv[]) { std::string a; int b, c, d; std::cout << "please enter the name of the file: " … | |
Hi, I'm confused right now about mysql statement I have four tables : form1 | form2 | form3 | form4 | ----------------------------------------------------- k8regNo | form2_ID| k9regNo | form4_ID | consignee | goods | out_date| k9regNo | moveDt | k8regNo | | form2_ID | can i join this four tables..? | |
Create a program that will input a number in kilowatt and display its equivalent masures in watts. PLEASE ANSWER. :) | |
class stdout(object): def __init__(self,realout,prefix): self.file = realout self.at_start_of_line = True self.prefix=prefix def write(self, text): if len(text): if self.at_start_of_line: text = self.prefix + text self.file.write(text) self.at_start_of_line = (text[-1] == '\n') sys.stdout=stdout(sys.stdout,"OUT ["+f+"]> ") File "C:\Users\James\Desktop\run.py", line 13, in write self.file.write(text) File "C:\Users\James\Desktop\run.py", line 10, in write if self.at_start_of_line: AttributeError: 'stdout' object … | |
Whats the difference between Linux and windows hosting? Which Server is Best For Wordpress and custom PHP sites . I have Choosed goodady bcz its provide ssl, domain and hostin service in one place , kindly sejust me if another hosting provider best then godady | |
I have a class which connects to the db(sql server). I have a login class which authenticates the user away from the frmLogin form. Each time i click login, i get an error Executereader requires an open connection. I tried reversing the order of some variables but to no success. … | |
Hi there i would like to launch a classified website just like www.Dubizzle.com ,where can i get similiar theme ,what technolgoy are they using wordpress or what.Thanks | |
Please answer these questions for me: Q1: Write a method, pow, that takes two (non-negative, integer) numbers, base and exponent and returns base raised to the exponent power. (No fair using Ruby's base ** exponent notation!). Q2: Write a method, sum which takes an array of numbers and returns the … | |
I am using the [jQuery File Upload plugin by Blueimp](http://blueimp.github.io/jQuery-File-Upload/) to upload images to a server. The problem is, the sending server is `admin.example.com`, and the receiving server where the images are stored is on `www.example.com`. Same domain, different subdomain. I followed the [instructions here on setting up cross-domain uploads](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads#cross-site-xmlhttprequest-file-uploads), … | |
Hi all, I'm experimenting with hiding the .php extension for my webpages using the .htaccess file. Seems to work, but I have a few questions... Let's assume I have a page "www.mysite.com/test.php", and the rewrite changes it to "www.mysite.com/test" 1) I'm assuming my internal links should still reference "test.php" 2) … | |
Dear friends, I have a set of values as follows (filename is string; values are floating; notimportant... is self-explaining): filenameA, value1_1, value2_1, value3, value4, notimportant filenameA, value1_2, value2_2, value3, value4, notimportant filenameA, value1_3, value2_3, value3, value4, notimportant filenameA, value1_5, value2_5, value3, value4, notimportant filenameA, value1_7, value2_7, value3, value4, notimportant ... … | |
Hi there, this is my first post, so pls be polite ;) since a few days i am programming java (for school). but i dont get it.. i tried to fill the 4x4 matrix with random generated numbers (1-16) and wrote a method, that they could only be used once. … | |
Hi, I am making a program that has a JSplitPane and its background is transparent so I add two panels with a JScrollPane on the JSplitPane.. when I add the contents in the panel it doesn't appear. This is the code that I was using: import java.awt.BorderLayout; import java.awt.Color; import … | |
Hi, I need some help, I am still newbie in this OOP,I already created the employee class in console app,but what i want is to use my employee class in windows forms,how can i use this employee class in windows forms application ?...I tried searching in google but i have … | |
I created a small table with one entrey with three columns but I can't get it to show up in my php code. I'm not really doing anything with the form variables right now I'm mainly focused on getting the code below that to query my SQLite DB. <?php // … | |
This is for anyone who might find it helpful. This template... * uses double-buffering, which can help game-makers fix that glitchy screen problem * can be exported as a runnable jar file. If you're like me and had trouble making your Applet executable, this is a possible fix. * Additionally … |
The End.