199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alice1990

what is wrong with the ifstream and ofstream? I had try again and again and the info shown run to infinity. :( I tried a lot of times ady, will be glad if anyone can help, thank you :) Sorry if its looks messy, still learning all the way. [CODE] …

Member Avatar for Ancient Dragon
0
185
Member Avatar for Oppression

Hello there. I have a working method here, called rotateRight() that takes an array and shifts all the elements to the right, except the last one that is placed at the start I have debugged the method, and the method works fine. However the changes are not being reflected in …

Member Avatar for ztini
0
113
Member Avatar for Taimoor Rana

Hello Guys, I'm trying to learn how to use the GridBagLayout manager... but when I write it like the following: [B]JPanel panel = new JPanel(new GridBagLayout());[/B], Java tells me the following: [U]cannot find symbol symbol: constructor JPanel(gridbaglayout.GridBagLayout) location: class.javax.swing.JPanel.[/U] When this didn't work, I tried type casting [B]JPanel panel = …

Member Avatar for Taimoor Rana
0
534
Member Avatar for kutuup

Hi, I'm trying to run a program I have coded that has the following setup: There is a tree containing "player" objects. Each "player" object has a linked list containing "weapon" objects. Each "weapon" object has a stack containing "round" objects. I need to set it up so that of …

Member Avatar for kutuup
0
219
Member Avatar for FrancisLazo

Hi there guys I can't seem to get the logic on how to put the total price of tickets bought in a movie reservation program. For example, a ticket price is sold for $2 and a customer reserved more than one seat, the price should add all the tickets bought …

Member Avatar for FrancisLazo
0
118
Member Avatar for jmcorpse

This is what I am suppose to do: Write a program that maintains a high score table of five entries, where each entry is made up of a player's name and score. The table should store the entries in order, from highest score to lowest. Your program should initialize the …

Member Avatar for triumphost
0
183
Member Avatar for C#Jonathan

Hi, as explained in the title I'm having a problem storing data to an array of IEnumerables: The source code is as follows:- [CODE] internal static IEnumerable<ReportDriverMovements> CreateReportDriverMovements(IEnumerable<DataScansTran> iEnumDST ) { List<ReportDriverMovements> iEnumReportDriverMovements = new List<ReportDriverMovements>(); st2DataContext dc = new st2DataContext(); try { //Get lists of individual driver movements by …

Member Avatar for Momerath
0
151
Member Avatar for Abdel_eid

Hello All , i urgently need to know how to store Arabic data in database , when i create a DB create database system; create table customer( name varchar(100)); i can't store the name in Arabic what can i do..? thanks alot

Member Avatar for Abdel_eid
0
152
Member Avatar for dspjm

I am looking for some websites which carry news upon the most updated and advanced computer science and technical advance. Can anybody give me an advice? thanks a lot^~^

Member Avatar for dspjm
0
83
Member Avatar for neptunethought

Hi , I am facing with a bizzare situation here .The problem is when I write my own program , I can debug it .But when there are two or more programmers and if I am one of them , I cant program or debug the program .I feel scared …

Member Avatar for Chellam2
0
147
Member Avatar for Jhon E

Hello everyone, I have a text file which has some values structured as below -------------------------------------- 1 2 3 4 -------------------------------------- Then i made a PHP file which can receive checkbox values (always receive 2,3 & 4) from another HTML file as below [CODE]if($_POST['Button']){ $check = $_POST['$boxname']; foreach($check as $chk ){ …

Member Avatar for Jhon E
0
182
Member Avatar for Phinocio

My code [code]public class BattleSystem { public static void main (String[] args) { String choice; System.out.print("What would you like to do? "); Scanner input = new Scanner(System.in); choice = input.nextLine(); System.out.println(choice); if(choice == "1"){ createChar g = new createChar(); g.charCreateHandler(); g.charStatsHandler(); g.closeFile(); } else{ System.out.println("More choices coming soon!"); } } …

Member Avatar for Mattox
0
106
Member Avatar for Thropian

I made a little python code that makes a ball bounce around the screen. Every time you left click it makes another ball. when you right click it clears the screen but you can't spawn more balls afterward... any help (python, tkinter) [CODE]from Tkinter import * import time import base_translate …

Member Avatar for Thropian
0
1K
Member Avatar for kyoonn

Hello, I have created a webpage where I use a simple command line tool [oggz-tool] to cut a section of the video. It works fine but the only problem is that when the new file is created, it is owned by www-data and not by the user I created which …

Member Avatar for kyoonn
0
311
Member Avatar for Sorcher

Hello guys, i need a text box editor for users to post their own article, the article is stored to a database. I've been searching and i have not found what i need. I dont require a mega-advanced one, just so people can write an article. I hope someone can …

Member Avatar for diafol
0
1K
Member Avatar for ajinkya112

Hey guys, I need a code that would delete the row from not only from grid view but also from the table. I am able to delete the row from grid view but its not getting deleted from table. Any suggestions on how to do it. Regards Ajinya

Member Avatar for prvnkmr194
0
4K
Member Avatar for ntrncx

as always since i am not student i study for hobby from a book, i dont ask for code or tell me the answer only for advices to help me understand better things its the first steps of a moving knight in a chessboard,i had to make it move randomly …

0
85
Member Avatar for Splam Bub

Hello DaniWeb! I'm trying to return an array of strings from a function but I'm not sure how to do so. I've done the prerequisite Googling and have found people on this discussion board recommending to return char** which, it is said, can then be converted back into 2d array …

Member Avatar for Splam Bub
0
157
Member Avatar for mini programmer

Hi to all, Sorry, if I do not put this post in correct place.. I download GCC 4.5.1 compiler program, and I want to upload it (or connect it ) with website to help a users to write codes and compile them and check if they have error or not. …

Member Avatar for chrishea
0
192
Member Avatar for ryan311

please help to validate my username i know its simple but i can't get it i want only to validate the first 4 input of the username should be a letter. i try to use the preg_match function but i can't get it correctly.

Member Avatar for mschroeder
0
91
Member Avatar for Progr4mmer

In my program when i close the save file chooser it opens another one ??? heres the code [CODE] import javax.swing.*; import javax.swing.filechooser.FileNameExtensionFilter; import java.awt.*; import java.awt.event.*; import java.io.*; public class JB extends JPanel implements ActionListener{ protected JTextArea textArea; public JB() { setLayout(new BorderLayout()); JTextArea textArea = new JTextArea(); textArea.setFont(new …

Member Avatar for Progr4mmer
0
140
Member Avatar for BirdaoGwra

Hi, It is my code: [CODE]mylist = [['fiss','giss'], ['e','h'], ['d','u'], ['c','t'], ['b','o'], ['a','z']] for alist in mylist: g = ' '.join(alist) print g f = open("write.txt", "w") f.write(g) f.close()[/CODE] How will I write all the words in the txt file. it is only writing the last line of the file. …

Member Avatar for Tommymac501
0
140
Member Avatar for hassan7

I have to make a website in my Php course..I want to gather some ideas what website i should make..any ideas Please

Member Avatar for Phaelax
0
76
Member Avatar for bestex

hi, can i ask how do i insert my records from my textbox to specific column name of my table [CODE]IsConnected("Insert into products values(" & _ Me.TextBox1.Text & ",'" & _ Me.TextBox2.Text & "','" & _ Me.TextBox3.Text & "','" & _ Me.TextBox4.Text & "','" & _ Me.TextBox5.Text & "','" & …

Member Avatar for Tommymac501
0
115
Member Avatar for zxzniczxz

using c++ and SubRoutine. Problem1: Design a function-oriented program that computes the total of the squares from 1 to n which n is supplied by a user. ex. 12345=1+4+9+16+25=55 Problem2:Design a function-oriented program that computes the factorial value of an input N by a user ..Display the computed factorial value …

Member Avatar for hag++
0
149
Member Avatar for lgonzo

learning to use string and iterators, and i am having trouble when i try to replace a string in my vector with a new one my trouble is starting when trying to replace a string( towards end of code) i get error with line myIterator = vectorGameList.push_back("teris"); idk, how i …

Member Avatar for lgonzo
0
171
Member Avatar for Progr4mmer

I am currently using eclipse but thinking of NetBeans because of gui. I don't want to download it yet because i dont want to have unused programs on my computer. so should i download it for gui?

Member Avatar for Progr4mmer
0
137
Member Avatar for fantasma

Hi there! I have this function in jQuery that is suposed to toggle a div, according to each different record I click, in order to toggle an upload form. However I can't seem to get it to work properly. Anyone could help? I really need this working today :( jQuery …

Member Avatar for fantasma
0
142
Member Avatar for CMAUK

Hi, im fairly new to Java, learning as I go on. I have gotten to the stage that I need to read specific lines from a text file that has already been created. Lets say my text document has 30 lines, and I only want to read what is in …

Member Avatar for Ezzaral
0
465
Member Avatar for Sahilsahni

Hi am kinda stuck here, so please if anyone could help me,i have 2 domains working on same hosting, one is Main Domain and other Addon, am using mail() function in Addon Dowmain website. everything is working fine, problem is script is running on addon domain but when people get …

Member Avatar for d3rck
0
299
Member Avatar for xxxferraxxx

I need help for background music i have the code but its not constant (continual) Here's my code : [CODE]My.Computer.Audio.Play(My.Resources.NAME OF FILE, audioplaymode.background)[/CODE] I need the constant (continual) code please.. Thanks in advance

Member Avatar for xxxferraxxx
0
364
Member Avatar for melmakrani

Could somebody help me please?! I'm trying to include math.h in a simple program an it doesn't work. I got following errormessage:"fatal error C1083: Cannot open include file: 'math': No such file or directory". I've checked if math.h is in the include directorie of visualC++, and it is. Here is …

Member Avatar for bbman
0
1K
Member Avatar for six_sic6

I have an html div [CODE] <div id="myDiv"> <table border="1" bgcolor="#FFFFFF" width="600"> <tr style="text-align:center"> <td>Subject Code</td> <td>Subject Title</td> <td>Credit Hour</td> </tr> </div> [/CODE] Now, I want to have a button by which i can convert this <div id="myDiv"> to image or .doc.... can any one help me

Member Avatar for six_sic6
0
96
Member Avatar for featherwebdiva

Hi I've been all over these discussions and still cannot find the syntax that works! When I echo $co and $bus, they both print on screen as they should. But when I try to update the mysql records using the following php, the business_name field data gets erased instead of …

Member Avatar for diafol
0
18K
Member Avatar for vineeshvs
Member Avatar for vineeshvs
0
310
Member Avatar for McvR

Hello all, At this moment I am stuck at a point in my project on positioning a control. This is a textbox that must be positioned 20 points under a table. The table and textbox are positioned in a tabcontrol what is positioned in a panel... logic? don't know but …

Member Avatar for ddanbe
0
181
Member Avatar for accra

Hi, am currently using this script to protect/encrpty info in the address bar,but i thnk its not very strong. cn any one help me make/find a more secure one, thanks. [CODE]<a href='articlesdetails.php?pif=ixhsuwu9xyysysjj300&yisu=uuwuwuwzuab&jsn=733888559jdjdjdeyey&tsyi=378hyxbh738hssh272sh&zy9stxyw=w&shy272bs2637shuw727hhshs377ywwwyw&id=$id'>[/CODE]

Member Avatar for mschroeder
0
177
Member Avatar for bergqvistjl

Hi, what would be a easy way of taking chars from the BEGINNING of a string, and placing them in another variable, ensuring that they are removed from the original string, ideally at the same time? basically, say i have 2 strings, string1 and string2. string1 contains "helloworld" string2 is …

Member Avatar for WaltP
0
147
Member Avatar for akshayinbox

Hello. I've learned programming in Visual Basic 6 followed by turbo C++. I was able to make COMMERCIAL software using VB6 but not with C++. The thing is I need to learn a language (for software development) that has syntax and logic similar to C++ BUT COMES WITH AN INTERFACE …

Member Avatar for John A
0
234
Member Avatar for nadleeh

if i have a list kinda like this "name" bobby "endname" "age" 34 "endage" "name" susie "endname" "age" 53 "endage" how would i sort through it ignoring the stuff in "" and copying just the names and ages into arrays. ive been using strtok and if statements but that doesnt …

Member Avatar for Adak
0
137
Member Avatar for Fudgey

Hi Everyone, I am having some trouble with the libmysql.dll file in Delphi 7. When I try to connect to a database with the dbexpress MySQL driver, i get the error "Unable to load libmysql.dll". I have tried the following to resolve my problem: [LIST] [*]installing different versions of MySQL …

Member Avatar for Simon180
0
503
Member Avatar for callyvan

Hi, I am forced to use the old style validation for some basic form elements, and I am having problems with a date input box, I figured that it automatically stores the value as a String so the "AND isDate(form.Effective_Date)" should return a true or false, what it does instead …

Member Avatar for arrgh
0
259
Member Avatar for lochnessmonster

WriteProcessMemory(processHandle, address, name.c_str(),sizeof(name.c_str()),NULL) | | is this third argument valid for this function? if not how would i make my std::string return the start address of a c string??

Member Avatar for Narue
0
102
Member Avatar for Progr4mmer

i need to access the current text of a JTextField from another method but i get an error here is the code [CODE]public Calc(){ JTextField textBox1, textBox2; setLayout(new FlowLayout()); textBox1 = new JTextField(" Time "); textBox2 = new JTextField(" Exp "); JLabel lRate = new JLabel("Rate"); JButton calc = new …

Member Avatar for Progr4mmer
0
225
Member Avatar for pete_g

Hi guys (and gals) I'm pretty new to c++ and programming, but I am keen as hell I bought a boot to start learning by Bjarne Stroustrup - Programming - Principles and Practice using C++ I am up to Chapter 3 and doing the 'exercises', only I am stuck on …

Member Avatar for pete_g
0
173
Member Avatar for landercat

I have a problem where I need to display a seating assignment for an airplane. It will have 13 rows and 6 columns. If the seats are empty, it should display * and if the seat is taken it should show an X. There will eventually be 3 different types …

Member Avatar for malakago
0
308
Member Avatar for xxxtian

because when I debug the code step by step, the report couldn't be loaded at all.. what do you think is the problem?

Member Avatar for xxxtian
0
80
Member Avatar for rancosster

I am having a problem with my backtracking function it loops with certain data I can't write here the whole program code but can put here my function. [CODE]bool shareMoney(int quantity, int *values, int index, int moneyA, int half, bool *ifChosen) { if(moneyA == half) return true; else if(index >= …

Member Avatar for rancosster
0
131
Member Avatar for trume

Hello! How can I make this code (converting seconds to hours, minutes and seconds) that the program will have a [B]subroutine function[/B]? Subroutine needs to return a full-time. The code is: [CODE]class Program { static void Main(string[] args) { Console.Write("Enter the number of seconds: "); int seconds = int.Parse(Console.ReadLine()); TimeSpan …

Member Avatar for trume
0
125
Member Avatar for Tursup

Hello, I am trying to write a program that will reverse the numbers inputted by the user. It doesn't seem to be having the desired outcome and I don't know why. Here is the code I am using, [CODE] #include <iostream> #include <conio.h> #include <string> #include <sstream> using namespace std; …

Member Avatar for Tursup
0
139

The End.