64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LateNightCoder

Hi there I am currently creating a game, where you drop items in certain areas, at the moment i want the player to drop only a max of 6 bombs, but one at a time. Currently my programignores the list count max of 6 and just keeps drawing until i …

Member Avatar for Cronicle8
0
104
Member Avatar for nstruzik

Im pretty new to coding in C++ and Im a student at devry unversity. I have to sort this class by credit hours in ascending order and Im having some trouble. If anyone could help it would be greatly appreciated. #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace …

Member Avatar for Ancient Dragon
0
222
Member Avatar for triumphost

So... I'm looking into learning Assembly. I downloaded the FASM assembler and I want to know how useful is assembly? I want the opinion from Cpp programmers because assembly programmers always tell me it's the best language -__- Also quick question: How do I know which register to put stuff …

Member Avatar for DeanMSands3
0
167
Member Avatar for spowel4

I have a class with a required file: require_once 'includes/constants.php'; That required file contains the following: <?php // Define constants here define("DB_SERVER", "localhost"); define('DB_USER', 'xxxxxxxxxx'); define('DB_PASSWORD', 'xxxxxxxxxx'); define("DB_NAME", "customerInfo"); define("ERROR_FILE", "c:\wamp\www\customerinfo\Errors.txt"); The class has a constructor: function __construct() { $dbServer = DB_SERVER; $dbName = DB_NAME; $dbUser = DB_USER; $dbPWD = …

Member Avatar for spowel4
0
191
Member Avatar for xostman

am new in java and am rtying to code a program for lotto punters which generate as many numbers of 6 as the user request

Member Avatar for stultuske
0
233
Member Avatar for chunkbar

HI EVERY ONE how i can insert a confirm dialog box behind delete record button so that it will prompt like this ARE YOU SURE YOU WANT TO DELETE? YES OR NO ? if yes button is pressed then it will delete other wise dont .? thanks in advance

Member Avatar for chunkbar
0
328
Member Avatar for coroll

Hi, i get an NullPointerException in this line:if (let==currentLink.aLetter) in search method. This is node class public class Letter { char aLetter; int points; Letter next; public Letter(char aLetter,int points) { this.aLetter=aLetter; this.points=points; } public Letter() { } public String printLink() { // System.out.print("{" + aLetter + ", " + …

Member Avatar for JamesCherrill
0
124
Member Avatar for israillaky

hi everyone im new in ajax and i currently studing ajax. my problem is $('#current').click(function() { var id = $(this).attr("id"); var sellitem=$('#spid').val(); $.ajax( { type: "POST", url: "updatecurrentsp.php", data:{ 'itemid' : id ,'sellitem' : sellitem }, success: function(data) { $('#sellprice').css("display","block"); //Changes the style of table from display:none to display:block $('#sellprice').html(data); …

Member Avatar for pritaeas
0
120
Member Avatar for HasNor

Dear all, I'm here just for asking your suggestion.. I would like to develop application that display listing but the list item is not in database. It is create in excel and convert to html file. My question here, is it able to me to develop application that allowed user …

Member Avatar for willson1
0
123
Member Avatar for VenusCrystal

Hi I am getting value from another page by sending it as part of url query. I want to know how to set that value to textbox or any component in current html page. I tried document.getElementById().value. But it is not working. Is there a way in javascript where I …

Member Avatar for VenusCrystal
0
199
Member Avatar for helpneeded87

Hello, I was seeking help in why my small program/script is not performing the way I would like. Here is the question. Write a program to calculate the credit card balance after one year if a person only pays the minimum monthly payment required by the credit card company each …

Member Avatar for helpneeded87
0
246
Member Avatar for rithish

what is determinanat of matrix i have a code i dont understand what is the logic behind

Member Avatar for sepp2k
0
116
Member Avatar for deshazer.jad

My goal is to create a clone of minesweeper. I've created a custon component that extends the JButton class, for each of the minesweeper buttons. I've called this new class SweeperButton. the game board is going to be made in another class by creating a two deminsional array of SweeperButtons, …

0
173
Member Avatar for osiron

Hey guys, I created a Student class in a header file and it works just fine. The problem is I'm trying to store the Student objects into a map in main which made the compiler generate a "in file included from ..." error. I'm having trouble fixing this problem as …

Member Avatar for osiron
0
181
Member Avatar for trishtren

Hey, iv been working on a fairly simple part of my program but it throws a null pointer exception. The error i recieve is : Exception in thread "main" java.lang.NullPointerException at FillStyle.<init>(FillStyle.java:12) at compiler.main(Builder.java:43 The code causing the error is : public FillStyle(int type) { if (type >= 0) { …

Member Avatar for trishtren
0
282
Member Avatar for MasterHacker110

In C++ you have this: std::string = "Name"; You can also read file with it, unlike reading the contents into a char[] with a limited amount of memory. So whats is C equivalent of a C++ string?

Member Avatar for MasterHacker110
0
3K
Member Avatar for john.gale.92102

hi I am having a challenge with a Fetch statement being used in a stored procedure. I am declaring a cursor and fetching data into a set of variables. The variable types match the column declarations exactly. There is data in the table from which I am fetching. @@FETCH_STATUS is …

Member Avatar for BitBlt
0
112
Member Avatar for goody11

Hey evryone. For some reason, I can't seem to insert anything into this table that I have in a database It connects just fine and the variables that I'm retrieving are just fine, which leads me to believe that my INSERT statement is incorrect. Any ideas? Here's the code: function …

Member Avatar for goody11
0
251
Member Avatar for techyworld

hi i have my xml code below: [CODE]<?xml-stylesheet type="text/xsl" href="book.xsl" version="1.0"?> <books xmlns:xsd = "http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation = "book.xsd"> <book id="001"> <isbn>0465044050</isbn> <title>Birth of the Mind</title> <author> <firstname>Gary</firstname> <lastname>Marcus</lastname> </author> <publisher>Basic Books</publisher> <year>2004</year> <price>17.68</price> <picture>0465044050.gif</picture> <description>write your desc.</description> </book> </books> [/CODE] and here my xsl code: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" …

Member Avatar for ckalanam
0
2K
Member Avatar for da(code)da

Im not seeing it but its not working here is the code: mysql_select_db("my_db", $con); $sql = "CREATE TABLE stream ( waveID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(gameID), userID int, wave varchar(25), waveTime TIMESTAMP DEFAULT NOW() )"; // Execute query if(!mysql_query($sql)) { echo "Couldn't do it"; } else { echo "alright"; …

Member Avatar for da(code)da
0
173
Member Avatar for extjac

Hello, i am working on PHP and jQuery trying to do a post with jquery. It seems to work in FF but IE is giving me several error: The follwing is the code i am using: <script> $(function() { $("#mainForm").submit(function() { dataString = $("#mainForm").serialize(); $.ajax({ type : "POST", url : …

Member Avatar for MarPlo
0
325
Member Avatar for london-G

Hello, I have my database application containing all the customer information. The application is linked to my SQL using jdbc driver. I would like to know if it is possible to send email automatically every months(like a newsletter) with netbeans? If yes, how can I do it? Thank you.

Member Avatar for london-G
0
109
Member Avatar for CriticalError

I have a column called pEditDate in the table rc_Pages I need to extract the date for each page so when the users goes to page /example the last edit date shows at the bottom. I try to do is but can't. Using SQL Server Comptact and C#

Member Avatar for CriticalError
0
178
Member Avatar for godzab

I have been trying to setup swt in eclipse Juno, but it keeps on giving me errors. Here is the error list: Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-win32-4233 in java.library.path no swt-win32 in java.library.path Can't load library: C:\Users\DeoFamily\.swt\lib\win32\x86_64\swt-win32-4233.dll Can't load library: C:\Users\DeoFamily\.swt\lib\win32\x86_64\swt-win32.dll at …

Member Avatar for ~s.o.s~
0
417
Member Avatar for Qonquest

I am getting this output: This is the source stringâ• This is a destination stringâ• â• â• â• â• â• â• â• â• â• â• â• â• â• 5Press any k ey to continue . . . My code is: void Problem5(char strDestination [], char strSource []) { int intIndexOfStrSource = 0; int intConcatenatedStringIndex = 0; int intStringDestinationIndex = 0; int intLengthOfDestination = strlen(strDestination); int …

Member Avatar for deceptikon
0
1K
Member Avatar for benscomputers

In the following code I need to modify it so that the btnSave control's click event procedure determines whether the user has entered the phone number in the required format: three digits, a hyphen, three digites, a hyphen, and four digits. If not a message should display saying the format …

Member Avatar for benscomputers
0
279
Member Avatar for JubalBarca

Okay, my problem goes as follows. I've been writing a small program in python (an adventure game) which has hitherto run via the console. I'm now working on giving it a full interface, which is requiring a lot of changes to my rather simplistic/archaic structure and generally making things something …

Member Avatar for sepp2k
0
236
Member Avatar for phorce

Hello, I'm building an application in PHP and when outputting HTML tags, it shows the tags.. So for example: <?php echo "<b>Hello world</b>"; ?> I would expect Hello world to be in bold.. But no, I get: <b>Hello world</b> as the output Any ideas please?

Member Avatar for phorce
0
69
Member Avatar for <M/>

So I stumbled upon this question and I wanted to figure out how to find the mean, median, mode, highest number, lowest number, how many evens, and how many odds are in each row... I honestly can't figure this out... I want it to display next to the table I …

Member Avatar for pritaeas
0
743
Member Avatar for sri.

i have a lot of mysql data (2 Lakhs data) how to collect data with in a seconds ? any idea thanks in advance

Member Avatar for diafol
0
376
Member Avatar for 3e0jUn

I've been working on Tkinter, and setting a message box. It worked fine, but I didn't really like the fact that the text displayed was in a small position in the window. Take a look at this code and you'll know what I mean. def About(self): text = Message(self, text=''' …

Member Avatar for 3e0jUn
0
183
Member Avatar for LastMitch

Hi I'm having an issue SELECT to database, I been working on it all day. I'm still new to MYSQL. I created a table: Records Table: **Records** Fields: ***id*** (INT(25), primary key, No Null, auto-increment) Fields: ***title*** (VARCHAR(256), No Null) Fields: ***content*** (TEXT, No Null) <php if (isset ($ _POST …

Member Avatar for LastMitch
0
159
Member Avatar for iFrolox

Hello everyone, im currently stuck because i'm not sure how to start on this part of my program. What i'll need help is controlling another application, my program is suppose to run another application, and be able to hide it, show it, verify that is running, it also needs to …

Member Avatar for iFrolox
0
3K
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { int a[400],n,i; printf("enter the no of elements: "); scanf("%d",&n); printf("enter the no: "); for(i=0;i<n;i++) { scanf("%d",&a[i]); } n=n+1; printf("enter the no: "); scanf("%d",a[n]); for(i=0;i<n;i++) { printf("%d",a[i]); } } i inserted elements after that i again inserted its not working.it shows 0 errors but …

Member Avatar for sfuo
0
90
Member Avatar for malockwood

Hi every one I have a very simple form and it just will not submit to the db. Could some one please tell me where I am going wrong? <?php if ( $_SESSION['logged_in'] ): ?> (1) <?php endif; ?> <?php if($_POST['formSubmit'] == "Submit") { $errorMessage = ""; if(empty($_POST['social_media'])) { $errorMessage …

Member Avatar for malockwood
0
200
Member Avatar for MattTheHat

Is it possible to do something like this? [icode]<div id="btn1" onclick="//somehow call page2Link here"><a href="page2.html" id="page2Link">Page 2</a></div>[/icode] Basically it's to try and make the text work with the a:hover text effect I have whilst making the whole layer sensitive to clicks. i tried this already: [icode]<a href="page2.html" id="page2Link"><div id="btn1" ><a …

Member Avatar for Killspree2012
0
24K
Member Avatar for rjony321

Hi, This is my first post.I just starting php Hope everyone reply me as possible as. I have signup problem.When i filled the form and click sign up button then it nothing show any result i mean its not home.php "welcome" message and also not store date in my mysql …

Member Avatar for rjony321
0
196
Member Avatar for lmthuan

Hi all, i want to wite an method that can take a String and return boolean , it should return True if the first character of string is an uppercase . Can not using String Apis ? so how can i do ? thank !

Member Avatar for stultuske
0
202
Member Avatar for aekaette

Hello, I am trying to read values from an excel spreadsheet but just for specific cells at a time; say Cell A1 and B1. Then I want to save the respective values into a variable and use the variable through out the rest of the code. Then loop at the …

Member Avatar for belenos46
0
718
Member Avatar for belenos46

I'm trying to write a string out to a file using File.AppendAllText, but I need to do it several times over the course of the program. I'm not using threading, and to give the file time to close, I'm letting my program sleep for a couple of seconds after it …

Member Avatar for belenos46
0
775
Member Avatar for dot_binary

Hello! After I compile and run my program a windows error message shows up, it doesn't give some specific information it's just a standard windows xp error that asks me to send report. It gives me the error because in my code I have some basic math like this: int …

Member Avatar for dot_binary
0
304
Member Avatar for stupid guy

Hello all, i get this error while inserting and udating some tables.Duplicate entry '9105224' for key 'PRIMARY'error no:1062error:1062 .number 9105224 is randomly generated and set in u_id field in one of the tables in MYSQL, which is set to unique and primary.The sql querries are working fine and the rows …

Member Avatar for stupid guy
0
742
Member Avatar for arcticM

I was looking at using the Ext JS 4.1 (http://www.sencha.com/products/extjs/) , it promisses to enable developers to use the model-view-controller (MVC) architecture when building their app. can someone give me an example of how I can use the Ext JS 4 with MVC? if I wanted to create a form …

Member Avatar for arcticM
0
231
Member Avatar for myk45

Hello All! I am a little confused about the memory allocated for an executable. Now, say for example, this is my code: int foo = 1; int main() { const char* bar = "hello world"; int num; return 0; } Now, the "hello world" part would be stored in the …

Member Avatar for myk45
0
300
Member Avatar for triumphost

How can I get SetConsoleTextAttribute to work with my Console? I tried everything. First I redirected the cout and cin buffers so that my console can have input and output. But now it doesn't have Colour :S I used: HANDLE OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(OutputHandle, 10); I don't think GetStdHandle is …

Member Avatar for triumphost
0
338
Member Avatar for triumphost

How can I create PNG Files from an array of bytes or read a PNG file to create an array of bytes? I looked up the format but it looks nothing like a bitmap and I read the GDI doesn't support PNG's. So how does LibPNG do it then? I …

Member Avatar for DeanMSands3
0
310
Member Avatar for capton

Hello 'am working in qt creator but have problem running my code. It compiles alright but never executes. And also gives the following message at the output pane 'exited at code -1073741819' Please help me out

Member Avatar for capton
0
132
Member Avatar for naheedkassam

I have developed a test site in asp.net. While it is in running of the in built webserver it functions fine and am able to access the database (msde). But when i host it on IIS server on the same machine I get the following error whenever the site accesses …

Member Avatar for naheedkassam
0
263
Member Avatar for phpHelp

I need to fetch questions with 4 optional answers from dtabase.... tables are questions | options...html code is below... <table width="536" height="54"> <tr> <td class="deco">Q<?php echo $index.") ".$questions; ?> </td> <td width="15"></td> </tr> <?php while($row_wrong_ans = mysql_fetch_array($res_wrong_ans)){ $op_index = $row_wrong_ans['fbo_index']; $op = $row_wrong_ans['fbo_ans']; ?> <tr> <td width="473"><input type="radio" name="radio[<?php $index;?>]" …

Member Avatar for phpHelp
0
2K
Member Avatar for GlenRogers

I have a JTextArea that I need to be able to print off from the printer. This is the kid of text that is in the JTextArea GLEN ROGERS 47 PINE AVENUE, CARRICKFERGUS, BT38 8EE, 07824771114 733KIA 2012/07/03 DEVICE; OTHER - GIVE MAKE AND MODEL PACKARD BELL EASYNOTE TN? WINDOWS …

Member Avatar for GlenRogers
0
117

The End.