199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MasterHacker110

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 …

Member Avatar for mike_2000_17
0
337
Member Avatar for waqar14
Member Avatar for deceptikon
0
91
Member Avatar for sharan_1

#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(); …

Member Avatar for richieking
0
162
Member Avatar for Eccoo

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, …

Member Avatar for Eccoo
0
398
Member Avatar for jhonm

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 …

Member Avatar for jhonm
0
559
Member Avatar for fuhanspujisaputra

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 …

Member Avatar for lolafuertes
0
146
Member Avatar for andrew.mendonca.967

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 …

0
83
Member Avatar for Jed_1

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 …

Member Avatar for Jed_1
0
667
Member Avatar for farmwife

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?"

Member Avatar for farmwife
0
1K
Member Avatar for christinetom

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 …

Member Avatar for Kenney_1
0
3K
Member Avatar for lloydsbackyard

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) …

Member Avatar for Kenney_1
0
257
Member Avatar for Pinku Deb

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.

Member Avatar for Pinku Deb
0
279
Member Avatar for Raju_3

How to add the string before increment values with letters like A0001 increment to A0002---- please help me

Member Avatar for AndrisP
0
474
Member Avatar for TechSupportGeek

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 …

Member Avatar for Ketsuekiame
0
182
Member Avatar for tihomir.dochev

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 …

Member Avatar for pritaeas
0
180
Member Avatar for kyle.santelices.31

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(); } ?>

Member Avatar for AndrisP
0
200
Member Avatar for shrikanthnk

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 …

Member Avatar for AndrisP
0
187
Member Avatar for chris.kelley.5015

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 …

Member Avatar for Watael
0
272
Member Avatar for Ken1234

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 …

Member Avatar for Ken1234
0
330
Member Avatar for abhi10kumar

/* `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. …

Member Avatar for AndrisP
0
2K
Member Avatar for JD69
Member Avatar for anand.mahato1
0
4K
Member Avatar for John_Tee

Hie,had just been told to do a research on strings,thier types and how there are used. Please help me out as i research the other side

Member Avatar for almostbob
0
168
Member Avatar for TrustyTony

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 …

Member Avatar for farmwife
0
1K
Member Avatar for Birol

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 …

Member Avatar for prakash.kadam.5851127
0
301
Member Avatar for shrikanthnk

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 …

Member Avatar for shrikanthnk
0
554
Member Avatar for vikkox7

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

Member Avatar for JamesCherrill
0
92
Member Avatar for Ken1234

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 …

Member Avatar for JamesCherrill
0
167
Member Avatar for Savita_1

Hi, I want to send a mail with attachment which was already uploaded and stored in a database using php.

Member Avatar for AARTI SHRIVAS
0
246
Member Avatar for Chinthanie

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 …

Member Avatar for Chinthanie
0
238
Member Avatar for aks227

Hi guys, I am trying to change color of the existing items in my listbox. Can somebody please help?

Member Avatar for aks227
0
286
Member Avatar for andrew.mendonca.967

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 …

Member Avatar for andrew.mendonca.967
0
571
Member Avatar for Maideen

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

Member Avatar for Maideen
0
250
Member Avatar for Tcll

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 …

Member Avatar for Tcll
0
308
Member Avatar for angela.hach.1

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;

Member Avatar for Assembly Guy
0
195
Member Avatar for Max_3

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: " …

Member Avatar for Ancient Dragon
0
100
Member Avatar for sagisgirl

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..?

Member Avatar for sagisgirl
0
467
Member Avatar for Ceejayyy

Create a program that will input a number in kilowatt and display its equivalent masures in watts. PLEASE ANSWER. :)

Member Avatar for Ancient Dragon
0
140
Member Avatar for james.lu.75491856

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 …

Member Avatar for james.lu.75491856
0
166
Member Avatar for best4earn

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

Member Avatar for citizensith
0
543
Member Avatar for Galbatorix

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. …

Member Avatar for Galbatorix
0
181
Member Avatar for tahnooni

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

Member Avatar for tahnooni
0
220
Member Avatar for Herve_1

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 …

Member Avatar for Herve_1
0
149
Member Avatar for calebcook

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), …

Member Avatar for calebcook
0
2K
Member Avatar for dstoltz

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) …

Member Avatar for Dani
0
377
Member Avatar for giancan

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 ... …

Member Avatar for Gribouillis
0
237
Member Avatar for kingarthur

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. …

Member Avatar for JamesCherrill
0
665
Member Avatar for crizied

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 …

Member Avatar for JamesCherrill
0
186
Member Avatar for Huang xiao

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 …

Member Avatar for Huang xiao
0
101
Member Avatar for lewashby

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 // …

Member Avatar for pritaeas
0
384
Member Avatar for kedxu

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 …

Member Avatar for JamesCherrill
0
318

The End.