64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Jennifer84

I have a little special question about the for loop. Normally you could do the count as I have declared with a count from 0 - 10. What I do inside the loop is to identify many scenarios if the count should start from 0 - 10 or vice versa …

Member Avatar for puluke
0
128
Member Avatar for gianniszaf

Hi there, I am running a program in order to generate some reports. The program starts connects to the database takes the first customer and then calls a method in order to create a report for this customer. When it completes takes the second customer generates the report etc etc. …

Member Avatar for woooee
0
239
Member Avatar for madrang

Hi, i am currently making a class to handle xml files but my class will have a lot of child and i dont know if the way i keep the parent in the child node will be a copy of it or a pointer to it.... thx for taking time …

Member Avatar for madrang
0
99
Member Avatar for Diamonddrake

I am writing a custom slider control, All its functionality is accounted for but now the aesthetics (which was the reason for writing it in the first place) has become problematic. It starts with a custom class that converts true hls and rgb, thats 360 stops not 255. then I …

Member Avatar for Diamonddrake
0
192
Member Avatar for ellimist14

I really need help with this guys. This compiles and runs but does not give me the right output. tfile.data: Seth 19 1.7 Austin 20 1.8 Michael 21 1.9 [code]#include <iostream> #include <fstream> using namespace std; int main() { ifstream fin; fin.open ("tfile.data"); if (fin.fail()) { cout <<"ERROR"; exit(1); } …

Member Avatar for NathanOliver
0
89
Member Avatar for lebronjames

Hi yall, So what my code is supposed to do is basically count the number of paranthesis that the user enters and hit me back with the result. The code below works perfectly when there are no white spaces in the user's input. But when white spaces are present, It …

Member Avatar for lebronjames
0
83
Member Avatar for codeguru_2009

i've copied this code from net but this is not working. Only blank output. can anyone help. i'm new to assembly. [code][ORG 7C00h] ; This is where BIOS put me ; --------------------------------------------------------- ; Main program ; --------------------------------------------------------- mov si, msg ; Print message call putstr hang: jmp hang ; Hang! …

Member Avatar for NotNull
0
175
Member Avatar for willywonka

Hi all, I am a first year student at the university of South Africa. I am doing my degree via correspondence, thus no lectures. I am working through the prescribed book as best i can but they still assume a little bit of fore knowledge of programming which i don't …

Member Avatar for willywonka
0
138
Member Avatar for EvilLinux

Hi real quick one and most likely going to look stupid after this. I need to show the Current Date in a form text box. Also the second textbox I have needs to show the date + 3 (show the date 3 days later). For some reason I can't figure …

Member Avatar for EvilLinux
0
148
Member Avatar for chu121su12

I have question on how to detect an action invoked by a component in some class by the other class. Say: [CODE] public class C1 extends JPanel { JButton button; C1() { button = new JButton(); add(button); C1Action h = new C1Action() button.addActionHandler(h); } public void doSomething() { // code …

Member Avatar for chu121su12
0
439
Member Avatar for Mahsa_C++

Hello to all, I'm just starting off learning PHP programming.As for the beginning i managed to download Apache 2.2 and PHP 5.3.0 , but i gave up frustrated after browsing several pages googling how to add the PHP to the Apache so that the server uses the php interpreter and …

Member Avatar for Mahsa_C++
0
328
Member Avatar for daviddoria

I made 2 classes, Point and Point3D: Point.h: [code] #ifndef POINT_H #define POINT_H #include <iostream> template <typename T> class Point { protected: T X,Y,Z; public: Point(const T x, const T y, const T z) : X(x), Y(y), Z(z) {} T getX() {return X;}; T getY() {return Y;}; T getZ() {return …

Member Avatar for DdoubleD
0
540
Member Avatar for sinnerFA

Here is a sample of the XML that I am starting with: XML: any.xml [code] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="any.xsl"?> <root> <device> <device_Info> <name>Name 1</name> <type>Type</type> </device_Info> <drive_Pair> <status>Ready</status> <Local> <l_name>10E5</l_name> </Local> <Remote> <l_name>0651</l_name> </Remote> </drive_Pair> #Can be 1 or many <drive_Pair>'s {<drive_Pair> ... </drive_Pair>} # Can only be …

Member Avatar for sinnerFA
0
381
Member Avatar for sgleason

Hello everyone, I am an Intern at a company and I mainly create scripts to update databases. I don't have the opportunity to do much "real" programming, hence the reason I am begging for some help :p I am working in visual studio and my program runs great. There is …

Member Avatar for sgleason
0
96
Member Avatar for jrosh

This gives a compilation error " missing return statement".. there is no sql error or such...where to put the return.??? private boolean checkpword(){ pasWd = pword.getText() ; try{ /*this works ok...>>>*/ResultSet pwrd = c.getData("Select Pword from users where userNm = '"+uname.getText()+"' "); while(pwrd.next()){ if(pasWd.equals(pwrd.getString("Pword"))){ return true; } else{ return false; …

Member Avatar for masijade
0
96
Member Avatar for julio gomez

Hi, I have a corn.php file that runs automatically every day and one of the functions is to send an e-mail to certain users. The problem is that the e-mails are being sent twice. I can't find anything wrong with the cron file, but checking the access_log.processed file of the …

Member Avatar for julio gomez
0
157
Member Avatar for jcl43

I'm working on a project and I need some help with C# constructors. Let's say I have the following; [icode] public class vehicle { public vehicle() { //do some initialization for all vehicles } } public class automobile : vehicle { public auto : base { // do specific initialization …

Member Avatar for jcl43
0
109
Member Avatar for darkocean

Hello Everybody, I use different forms....I want to send a value like form1 to form2.for example textbox1.text value, I want to send it to myStr in form2. I tried public static but I could not solve it. Also another problem is this. There is 3 forms. If form1 sends a …

Member Avatar for darkocean
0
121
Member Avatar for omri374

Hi, I'm programming an application that records video samples of 5 seconds each. the recording takes place inside a loop. I use MFC and DirectShow The thing is, that the main thread must pause for 5 seconds while the sample is being recorded. in order to do that, I can …

Member Avatar for omri374
0
383
Member Avatar for Oritm

Hello all, I'm used to java programming and php. I'm trying to learn C++, but it's rather difficult for me. Basic in java: String message = "Test"; String temp = "This is a " + message; temp now contains "This is a Test". In c++ i tried everything, a + …

Member Avatar for Lerner
0
140
Member Avatar for .11

I have the log file blackjacksample.txt $10000 3 [2H, 4C, KC, 5D] $10 [QS, QD] $5 [AC, 3C, 4D] $25 [10H, 5C, 7H] [7C, 5C, 10H] $20 [JH, 3C, 8H] $15 [3H, 6D, JC] $5 [AH, KH] [9C, JS] $40 [5C, 7H, 3D, KS] $30 [9C, 10D] $50 [AD, 10C] …

Member Avatar for .11
0
114
Member Avatar for dpreznik

I am facing a problem with a CArray. I have a class member of type CArray<MyType, MyType&> m_MyArray; When the object is destroyed, of course the destructor of CArray<MyType, MyType&> is called. Here is the destructor: [CODE]template<class TYPE, class ARG_TYPE> CArray<TYPE, ARG_TYPE>::~CArray() { ASSERT_VALID(this); if (m_pData != NULL) { for( …

Member Avatar for Tom Gunn
0
213
Member Avatar for cwarn23

Hi and I have been looking around and found that google has a few search api's but haven't yet found one that returns the results as a javascript/ajax array. Is it possible to at least get the google api to send the results to my website as a variable/array in …

Member Avatar for cwarn23
0
190
Member Avatar for Nathan Campos

Hello, I'm really starting in Assembly, but i want to know if it's possible to develop for ARM devices like those who run Windows CE, because i have an Jornada 720 and i want to develop to it, i'm already a Java developer, but Assembly will be another language that …

Member Avatar for jsuvrat
0
153
Member Avatar for chico2009

Hi All I am trying to learn Python and cannot get aroud this problem for the life of me. I have generated a sript as follows, called xandy.py def xandy (x,y): if x < y: print x, "is less than", y elif x > y: print x, "is greater than", …

Member Avatar for chico2009
0
111
Member Avatar for ofir0803

Hi i created a small program that does connection to db and perform a select. that's works fine for me. now,i want to make it a web service, but how can i return the result of the select query from it? please help... this is my code... [CODE] using System; …

Member Avatar for Ramesh S
0
162
Member Avatar for ubi_ct83
Member Avatar for kvprajapati
0
177
Member Avatar for sab786

hey does anyone know if there are any modules that i can download that if i feed in x, y values i can make correlation plots and other types of graphs Thanks

Member Avatar for sab786
0
93
Member Avatar for wewehalim

Hi, i need help in building a program about automata cellular. So, there is 4 state of cells, `0 = space, 1 = ".", 2 = "+", 3 = "#"` This state is continuous from 0 - 3, after 3, it will be back to 0. we need to compare …

Member Avatar for wewehalim
0
532
Member Avatar for davidjennings

Hi all, I am trying to pass values to the cart. When I select add to cart the values show up in the url but does not direct the user to the shopping cart. url output. http://214.146.126.103/streetwise/result.php?itemname=CITROEN&returnurl=http%3A%2F%2F214.146.126.103%2Fpassenger.php&price=123.00&storeid=xxxxx&quantity=1[/url] [code=php]//passing variables from db $m_id=$row{products_make}; //echo $m_id;// test out put valid $p_id=$row{products_price}; //echo …

Member Avatar for davidjennings
0
175
Member Avatar for lllllIllIlllI

Hi, Just wondering if someone could explain why this is happening: [code] >>> example = "" >>> example in "Hello there" True >>> [/code] I'm confused as to why [ICODE]example in "hello there"[/ICODE] gives a True value as return.

Member Avatar for sravan953
0
156
Member Avatar for kkcaddy

Hi everyone am new to java-ing i cant seem to create a class for my first application my "Hello World" when i type javac helloworld it returns that javac is not a in the path and i have created a path for java. Please help me.

Member Avatar for kkcaddy
0
101
Member Avatar for jrosh

I created a table in mysql db. it has a column with auto increment value. i checked inserting data through mysql console putting jst ' ' to the place of the auto increment value in the query. it worked ok. but when i do it through my java application (using …

Member Avatar for masijade
0
89
Member Avatar for facadie

1. How do i close 2 forms in runtime. Eg. I click BTNCANCEL in frm1 it will open frm2 and i want to click BTNNO in frm2 to close all forms in the runtime. How do i go about doing that. [frm2 is just asking the user whether to save …

Member Avatar for facadie
0
122
Member Avatar for Demonisya

Hello guys i need help on my program factoring.... i have the progam here but the bad news is it is been giving me -3242 or infinite number as an output... I already been so busy changing any thing but i cant make the output correct the way it should …

Member Avatar for minigweek
0
2K
Member Avatar for treyd

Okay here is the just of my assignment: Write a test program that creates an Account object with an account ID of 1122, a balance of 20000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2500, use the deposit method to deposit $3000, and print …

Member Avatar for masijade
0
291
Member Avatar for hket89
Member Avatar for xfreebornx

[CODE]#include <iostream> #include<vector> #include<ctime> #include<algorithm> using namespace std; struct student { int id; char name; char nationality; char gender; student() : id(0) , gender(' ') { } student(int i, char g) :id(i), name(g) { } }; void insert(student array[]); bool sortByID(const student& a, const student& b) { return ( a.id …

Member Avatar for hao001
0
320
Member Avatar for ofir0803

Hi I hope u can help me... i have a code that connect to mysql db and it works fine. [CODE] using System; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; using MySql.Data.Types; namespace MySqlExample { class Program { static void Main(string[] args) { string host = "localhost"; string database = "articles"; …

Member Avatar for sknake
0
188
Member Avatar for JerieLsky

Hi guys, i don't know what 's causing this php error: [QUOTE]403 Forbidden. You don't have permission to access /Duplicate of Edited Site/< on this server.[/QUOTE] Need help. This problem actually occured when i clicked the submit button from a certain form. Thanks in advance. This is code: [CODE]<html> <head></head> …

Member Avatar for ivatanako
-1
201
Member Avatar for JerieLsky

I'm just new in php actually and this is the problem that i have been encountering lately. I actually have one .html file and .php file, on the .html file I created a form which looks like this: [CODE]<table cellpadding="0" cellspacing="5" border="0" width="500" align="center"> <form name="FAQ" method="post" action="question.php"> <span style="font-family: …

Member Avatar for ivatanako
0
237
Member Avatar for AdventDeo

Ok so I have two separate AJAX function that I want to combine but have no idea how. The first 2 files are to call up a table with cells in the form of text-boxes, and the last 2 files are linked dropboxes. What I want to do is to …

Member Avatar for AdventDeo
0
122
Member Avatar for j_limboo

Echo google problem Please advice you inputs are greatly appreciated [CODE]<?php if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; /* applying logic and creating a new variable to it*/ $logic = "~resume (filetype:pdf OR …

Member Avatar for j_limboo
0
101
Member Avatar for Cory_Brown

I need to populate an array with the items a user has selected in a listbox. Example: Listbox contains A, B, C, D, E User selects B, D, E create an array containing B, D, E What method would I use to do this? I've found plenty of info for …

Member Avatar for Cory_Brown
0
165
Member Avatar for f_atencia

I think this is more of a SQL query but how do I change my Grid Viewso that it displays a currency in the proper format of $ with 2 decimal places only? As it stands it is only like 194.9500 format. Cheers again.

Member Avatar for serkan sendur
0
142
Member Avatar for LJames

I have a text box for number input. Validator works fine for range 1 to 100, but it still allows the return key to be used. I want to tell ASP.NET, using VB, to ignore a return key press. Any ideas?

Member Avatar for serkan sendur
0
112
Member Avatar for ellimist14

Sorry about a n00b question but I'm having trouble. I'm messing around with linked list to try to get a good handle on them for the program I have to write. The program below was intended to fill a link list with structures then print out each structure. Instead it …

Member Avatar for ellimist14
0
116
Member Avatar for Sereal_Killer

im busy with a school project to create a photo viewer type site with java script. the whole thing i being created from java script and im giving all the img's an ID tag how do i go about getting the id of the img that i have just clicked. …

Member Avatar for Sereal_Killer
0
248
Member Avatar for MrNoob

hello i m suppose to do this program which should pass array of ptrs to a structure intilise and put student[i] info in each array i did most of it but now i got problem coz i cant just pass address of structure since its an array of ptrs to …

Member Avatar for MrNoob
0
152
Member Avatar for j_limboo

echo $_GET[x] changing it into variable... any code sugessions Please advice new to PHP some inputs first change $_GET[x] to variable and then echo

Member Avatar for j_limboo
0
123

The End.