199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Xeros606

I know that it's possible to "force" a class to have a certain function through interfaces, but is there any way to "force" a class to have and assign certain variables? Also, is there way to "force" a class to assign inherited variables?

Member Avatar for apines
0
111
Member Avatar for Awah Mohamed

hey ppl how is everything okay , i want ask if i can create a next page automatically by using mysql?? i mean is there is any code that can check for the next page after it displays the previous one . it is somehow comp[licated for me to explain …

Member Avatar for steelshark
0
148
Member Avatar for Siboneloz

Hi All, im having a problem with searching a database in dreamweaver and was wondering if anyone here has tried it? its a mysql database. here is the situation. i have DB called real_db with a table in i call listings. i want to be able to search the db …

Member Avatar for Siboneloz
0
629
Member Avatar for JuanKawada

I've been driving myself crazy with something I originally thought would be incredibly simple. Here's a really simple example of what I'm trying to accomplish: I have a picture sized 800x530, all I need to do is center this picture in a new image that is 800x800 with a black …

Member Avatar for JuanKawada
0
137
Member Avatar for eman 22

I know that multithreads in java allows me do multi tasks in the same time, but in the following code I'm not make a sense that the three threads done in the same time [CODE]public class myThreads { public static void main(String [] args) { System.out.println("Begin main Function"); mThread Thread_One …

Member Avatar for apines
0
161
Member Avatar for CharlieHolt

I am trying to save a form location to a database whenever the LocationChanged event is triggered on that form. [code] private void DisplayForm_LocationChanged(object sender, EventArgs e) { DSLocation = this.Location; ((Form1)this.MdiParent).NotifyChanges(this); // notify parent form that there are changes on this child } childForm.Location = StringToPoint((string)row["location"]); [/code] DSLocation is …

Member Avatar for CharlieHolt
0
147
Member Avatar for heshanm

Hi, I want to [B]add interest based on daily basis[/B] to my account tables. This is my account tables. shakthi(ID, account_type,full_name, balance, interest). There are another 3 tables which includes same fields. The amount is credited and the balance is updated very well. But interest should be added daily. I …

Member Avatar for kiroshimasylvia
0
116
Member Avatar for GreaseJunkie

Hi, I've got this nice little sales tool/form written where I can drop email addresses into my webform and automatically send an HTML email, but I want to have the option to send a different html body using a drop-down option. For example, if I want to send a "general …

Member Avatar for GreaseJunkie
0
241
Member Avatar for blackxswil

I have 2 classes: 1. Student 2. Course Under the Student class I have the following: class Student { private: string StudentName; public: string name (); void changeName(string); void registerCourses(Course course); void displayCourses(Course course); }; The method "void registerCourses(Course course)" & "void displayCourses(Course course)" using the Course class. Under the …

Member Avatar for geojia
0
183
Member Avatar for coastcode

I'm trying to create a tree with the following very small access database. I'm still getting a few errors, 'rdr' is a 'variable' but used like a 'method' and trying to get tree to actually populate.. If you find any other errors or recommendations, they're greatly appreciated. Thanks a lot. …

Member Avatar for kvprajapati
0
326
Member Avatar for gunbuster363

I am trying to learn to program with glut. In a tutorial, I see the author created 2 projects, one is win32 console application, another is win32 application. If I happen to use int main() in win32 application/ WinMain() in win32 console application, the project will be dead. I would …

Member Avatar for gunbuster363
0
130
Member Avatar for choover12

Hi, [CODE]string[] SplitEquationText = EquationBox.Text.Split('');[/CODE] in that line of code, it will not let me split nothing? am i allowed to split nothing? thank you.

Member Avatar for kvprajapati
0
326
Member Avatar for Goddard
Member Avatar for yellowkaiq

Write parts 1 (convert string to lowercase) and 2 (tokenize string) of that code and incorporate the function below. Use the string.split function. Get the code to work as a cohesive unit to convert strings like "two hundred sixty two" to numbers like 262. This is basically what I need …

Member Avatar for yellowkaiq
0
207
Member Avatar for Sorcher

Can someone help me insert a "white list" in this code? i already have a black list in it but thats pretty stupid when i only want these extensions; 'jpg', 'gif', 'png', 'bmp', '2bp', 'abm', 'afx', 'apd', 'art', 'arw', 'avatar', 'bm2', 'bmc', 'bmf', 'cal', 'cals', 'cam', 'can', 'cd5', 'cdg', 'cdg', …

Member Avatar for cossay
0
164
Member Avatar for mslade

Hi everybody, this is my first post here. I'm trying to find out why lib_ncurses' initscr() is failing on me, so I compiled a quick program that runs it and attached gdb to it. I've only used gdb a few times, so I think I might be misinterpreting what I'm …

0
112
Member Avatar for Obsidian_496

Hello. I have a problem with one part of my homework. I'm not exactly sure how to say this in English. I want the constructor to build an object and assign string values to attribute1 and attribute2. I'm only posting the relevant part of my code. My class can be …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for python user

Hi, I'm a long time python programmer and just began programming in Lua(I might like it better than python). How might I began to program a text adventure/IF in Lua? Any tips, Pointers? I have a basic knowledge of Lua and have began to read this great e-book called "Programming …

Member Avatar for Isaac Remuant
0
1K
Member Avatar for kinger29

I am using Visual Studio 2010, this should apply to any version of Visual Studio running a version of .Net with TabControl and TabPage. I want to create my own tabpage that I can add to a tabcontrol. I have tried creating a new class where I inherit System.Windows.Forms.TabPage but …

0
133
Member Avatar for lochnessmonster

is it bad programming practice or perfectly normal to design a class, in which there is no public member function which can check the status of the objects state? for example what if i implemented it so the object was assumed successfull....until an exception is thrown? is this OK to …

Member Avatar for mike_2000_17
0
129
Member Avatar for muser04

The program that you will be writing will be called Books.py. * Open the file for reading * Create an empty dictionary * Read line by line through the file * For each line strip the end-of-line character and remove punctuations. Replace hyphens (-) with blanks. In the function parseString() …

Member Avatar for richieking
0
148
Member Avatar for newbeejava

Hi I am doing a java program. In which I have a jsp page, and on that I have two combobox. I have a create a java bean, in which I write a method "result" which return a arraylist. I want to populate the combobox by extracting data from database. …

Member Avatar for newbeejava
0
186
Member Avatar for challarao

Hi,please help me! I wanna write a program for gauss jordon elimination ,for that I need to sort/exchange the rows such that the rows are in order of their increasing zero elements before non zero element in each row like below suppose, input 0 0 3 4 5 0 3 …

Member Avatar for Adak
0
178
Member Avatar for yongj

I have an assignment where I need to make a utility where if ran, it would perform the same action as a tee command in linux. So the tee command takes the command line: ls *.txt | tee txtfiles.txt But for my assignment if I named the utility to be …

Member Avatar for daviddoria
0
167
Member Avatar for CharliePrynn

Hey. I need to click this button in vb.net. [CODE]<button id="login" class="fblogin"></button>[/CODE] How would I go about it? Thanks.

Member Avatar for CharliePrynn
0
96
Member Avatar for Swedenrock

Hi! When I print the six card I would like the "player" to be able to pick three out of these cards. Does anyone know how to do this? Do I create a new list and then append the cards to that list? Very thankful for any help! Here's the …

Member Avatar for woooee
0
227
Member Avatar for Clarkeez

Basically. I have this query that is executed on a form submit. [code] $add_proc = mysql_query(" INSERT INTO `proc` (active, title, desc, notes, link, tags1, tags2, tags3) VALUES ( '".$_POST['add_proc_active']."', '".$_POST['add_proc_title']."', '".$_POST['add_proc_desc']."', '".$_POST['add_proc_notes']."', '".$_POST['add_proc_link']."', '".$_POST['add_proc_tag1']."', '".$_POST['add_proc_tag2']."', '".$_POST['add_proc_tag3']."' ) [/code] Now. The form doesn't require you to enter all 3 tags. …

Member Avatar for Clarkeez
0
100
Member Avatar for altXerror

i'm having problems with this code. it's supposed to be a simple loan calculator i had to fix, but i can't get it to work. my freinds told me it wasn't possable to complete using 'catch', 'try' and 'throw' (not using throw), so i attempted to fix it with that. …

Member Avatar for SgtMe
0
216
Member Avatar for DaveTran

I'm creating an array of vertex formats which I know will always come in groups of 3 as models are generally made for triangles which have 3 vertices. My loop was originally [CODE] for (int i = 0; i < batchVertices.Length; ++i) { batchVertices[i] = new VertexFormat(vertices[i], normals[i], textureCoordinates[i]); } …

Member Avatar for Momerath
0
142
Member Avatar for TheBW

I have to design a relatively simple game-type programm on pascal It has to generate a way, which the player will have to guess. They way can only go horizontaly or verticaly. Im usign 10x10 array for this. The problems start, when im making the way for player and checking …

Member Avatar for TheBW
0
124
Member Avatar for TheBW

So heres my procedure: [CODE]procedure inf_output; Begin Repeat Begin Writeln('Please choose by what info you will search!'); Writeln('1. Name'); Writeln('2. Registration number'); Writeln('3. Adress: Street name'); Writeln('4. Adress: Street number'); Writeln('5. Adress: Postal index'); Writeln('6. Name of City'); Writeln('7. Telephone number'); readln(x); end; Until (x>0) and (x<7); Case x of …

Member Avatar for TheBW
0
244
Member Avatar for G-nerd

I need to make the user ask for an English sentence and then make it produce the spanish translation of it from a given data base which is given in list form. I also want the user to keep asking for a english sentence until I type in a character …

Member Avatar for Lardmeister
0
234
Member Avatar for XxPKMNxX

I have written a program to create a 4x4 grid Sudoku style. The numbers for the puzzle are read from a file and placed in the puzzle. As you can see, i have assigned the first numbers 'a' and the second 'b' etc However, i can not access the a,b,c,d …

Member Avatar for XxPKMNxX
0
141
Member Avatar for nonshatter

Okay, I've been racking my brain trying to figure this one out but the more I try, the more I get stuck. I need to construct a multi-dimensional array as follows, so for each iteration there are 4 values added to the array. (there is a total of 6 iterations, …

Member Avatar for nonshatter
0
105
Member Avatar for onus

[CODE=c]#include<stdio.h> #include<stdlib.h> #define GREY 1 #define BLACK 0 #define WHITE 2 typedef struct node * graph; typedef struct stack * snode; extern int stack_counter; graph cnode(int data); //cnode is to create a node for graph void cgraph(void); struct node { int data, color; struct node *LEFT, *RIGHT, *TOP, *DOWN; };//this …

Member Avatar for GuitarComet
0
186
Member Avatar for Awah Mohamed

wt is wrong here ?? it usually gives me this error : Parse error: syntax error, unexpected $end in /home/a2354076/public_html/cats/programming/includes/topics.php on line 34 here is the code : [CODE] <!-- header ends --> <!-- content begins --> <div id="main"> <div id="right"> <a href="http://www.000webhost.com/" onClick="this.href='http://www.000webhost.com/326472.html'" target="_blank"><img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Website Hosting" width="468" …

Member Avatar for Awah Mohamed
0
163
Member Avatar for weloki

I'm using XSLT to try to grab content from an html page. I want to select all the <p> tags but exclude all the <li> tags. There is one page where the li tags are not within any of the p tags. For this page, how can I select all …

Member Avatar for weloki
0
73
Member Avatar for CanadianGSX

Good morning, I'll keep this simple, I have a form that I need to populate with the contects of a MySQL database. I've tested that the 'gathering information' script works properly via a SELECT command. However, when I try to set the value of a text form field using the …

Member Avatar for CanadianGSX
0
145
Member Avatar for rizzi143

HI! could anyone help me out in editing the following code so that the list of number is displayed in ascending order. thanks. #include <iostream.h> void main() { int count; cout << "Enter a number: "; cin >> count; while (count > 0) { cout << count << endl; --count; …

Member Avatar for Fbody
0
140
Member Avatar for sciprog1

Hello, How do I send a class (that extends from JFrame) back and forth between Client and Server? I would grateful for any pseudocode. Thank you!

Member Avatar for sciprog1
0
282
Member Avatar for Brianbc

I have a file(File1) in the root directory(Root). There is also a directory(Dir) in the root directory which contains File2. File2.php [CODE]<?php include'/*I need to include file1 here*/' // ?>[/CODE] How do I include file1 in file2?

Member Avatar for somedude3488
0
166
Member Avatar for nonshatter

Hi all, I'm trying to figure out how to stop MySQL errors being displayed to the user. I have turned off all the necessary options in php.ini such as [CODE]display_errors = Off log_errors = On error_log = /path/to/log/[/CODE] I have even tried to override these settings using ini_set() in my …

Member Avatar for somedude3488
0
247
Member Avatar for sedalnas

Hi , i'm trying to add a hyperlink in the php code , the "href" of the hyperlink is the books names generated from the db but i want to the clicked link to show the relative book description and the book's image in another page but i don't know …

Member Avatar for cossay
0
118
Member Avatar for nukabolhi

How can I use explode function in php I already implode some data in mysql [CODE] // customer table cust_id, impid, 1, 1,2 // sports table sport id, sport name 1, football 2, basketball [/CODE] How can I explode and make a php/mysql query

Member Avatar for nukabolhi
0
372
Member Avatar for MACKENZIEKE

I am working on a project with PHP and MySql. There are reports i am producing which are picked from one table in different row. I would like this reports in pdf or convert them to pdf when viewing on html. keep in mind the the report pages are produced …

Member Avatar for chrishea
0
119
Member Avatar for knan

Hi can anyone tell me how to remove empty keys in the following dictionary d={'a':[],'b':['1','2'],'c':[]} I want it to be d={'b':['1','2']} I tried this. But its showing error. I know its wrong to change the size of a dictionary during iteration. But is there any other way? [CODE]>>> for x …

Member Avatar for TrustyTony
0
18K
Member Avatar for Sorcher

Anyone know a snippet of this? I need to delete all files in a folder but not jpg,gif or png files. :sweat:

Member Avatar for Sorcher
0
132
Member Avatar for kelp

Hi I have a simple MS Access database with some rich text fields. I have been trying to bind some RichTextBox controls in my form to these fields. When I used the following c# code: [CODE] Binding bd = new Binding("Text", ds, "Words.meaning", true); tbDesc.DataBindings.Add(bd);[/CODE] ds= my DataSet Words= my …

Member Avatar for nick.crane
0
544
Member Avatar for Cool&Awesome

Hi guys, Can anybody help me on this one...I have a button which when is hovered, triggers an action. But I'd like it to repeat it for as long as the button is hovered. I'd appreciate any solution, be it in jquery or pure javascript - here is how my …

Member Avatar for Airshow
0
144
Member Avatar for Thropian

as part of a game I'm making I decided to make an importable/executable file to shorten the code and I was wondering... [CODE]def view(N,W,E,S): if info_dict["direction"] == "north": if N != 1: pic = fwall wall = "yes" if N == 1: if W != 1 and E != 1: …

Member Avatar for Gribouillis
0
90

The End.