199,114 Archived Topics
Remove Filter ![]() | |
Hello... I have one curiosity that I need to solve. I hope anyone who know the problem tell me reason why is this so. I have done a php/mysql application some time ago and I encounter this problem while testing on using coding with register_global on and register_global off. I … | |
[B]First Issue: Problem[/B] So on a forum, i've condensed the date of a certain event to $date = $month . " " . $day . ", " . $year; So instead of storing the Month Day and Year in seperate rows on mysql, i store all three under 1. But … | |
Basicly I need to know how to refer to declared external static variables (GlobalMirror, GlobalMirror2 etc.) inside the class 'Initializer' and initialize them. The following code doesnt work (compiler doesnt see my 'extern' declarations inside the class Initializer): [code] #ifndef INITIALIZER_H #define INITIALIZER_H #include "Mirror.h" #include <iostream> extern Mirror GlobalMirror; … | |
hi every one :rolleyes: i m new in C++. and i am stuck in the programe please any body tell me what is the code of this pyramid of number. The pyramid should look like this: [IMG]http://www.daniweb.com/techtalkforums/attachment.php?attachmentid=2433&stc=1&d=1160907855[/IMG] [URL="file:///D:/Documents%20and%20Settings/Salman/My%20Documents/UserImages.bmp"] [/URL] | |
Hi I'm biggener in c language and I hope from every one in this forum help me. now I will start first Q How I can write a c program to comput the sum of sequres of numbers from m to n . for exsample : from3 ot 6 : … | |
[code]/* Java Swing Calculator */ import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPanel; import javax.swing.JTextArea; public class Calculator extends JFrame … | |
Hey, I'm newish to the forum( never posted before ) but anyway. I'm thinking of writing a disassembler for z80 or a similar architecture in ally C and was wondering if anyone can give me some tips or places to get started, I've never actually wrote a disassembler before either … | |
Hi all, I m nu to the world of php and i m facing some problems in programming it's pages. I have made a complete page but it is showing on execution"Query could not run"????????????????now what's this? In 1 more page i ve written this commands.... <? $q= "select count(ProductID) … | |
When I was learning the basics of Perl CGI (well, any CGI) I vaugely remember something regarding a header or command that would invoke CGI script (using a standard GET request) WITHOUT changing the page that a user was on. Googling hasn't been fruitful, I only remember a brief mention, … | |
Ok i need the user to be asked for a number by an inputbox (Using VB 6) and have this number checked. If its prime i want them to be told via msgnox , if not i want them to be given another attempt Any ideas? | |
I want to make a program that can do two things really: 1) Detect the beat of a song 2) Output through a port, preferably the paralell port. 1) I was thinking the easiest way to do this, would be to use windows media players bars visualization, but then i … | |
[COLOR=DarkBlue]:)when i run a form at 1024*768 it works fine .when i run same form at 800*600 resolution ,size of all tools r incresing.i want size of tools(control box,text box) to remain same even if i change resolution .is it possible. do i need to code for each tools to … | |
i use ADO in VB6 to connect to my Oracle database i made a connection object 'con' and opened the database using it when i executed the statement con.Execute "insert into employee(no,join_date) values(424,'12-SEP-2004')" i found that he new record was inserted into the database(i checked it using sql*plus) . But … | |
Hello, how can i check that pushing characters into stack is successful (logically)? | |
![]() | Hi people, I am having trouble with my splash screen. Basically, it just flashes really quickly and I can't get to to pause for long enough. See attached file. I've attached my program as a zipped file. After you have download it you need to right click and extract it … |
I would like some help on creating a function that on clicking a submit button will allow the user to add the data of the selection box into an uneditable text box and hidden file. IE: User selects option 5 [code]<option value="5">Option 5</option>[/code], then clicks the "add Option" button. It … | |
Hi yall, Absolute C++ newbie here. I would like to know how to prompt a user to enter yes or no, and then display a different msg depending on whether y or n was pressed. I am trying to set char y=1 or true and char n=0 or false. But … | |
Hi, I am a total novice to VB.Net, and have been asked to develop a simple 4 function calculator as part of my coursework. I am really struggling!!! I would be extremely grateful if anyone could please help??? ( I have managed to use AppendText to get the numbers in … | |
why does [code]$sql = 'SELECT userid FROM `phplist_user_user_attribute` WHERE `attributeid`= 7 AND `value` LIKE "68104"'; $query = mysql_query($sql);[/code] find 23 records, but [code]$testvalue="68104"; $sql = 'SELECT userid FROM `phplist_user_user_attribute` WHERE `attributeid`= 7 AND `value` LIKE "$testvalue"'; $query = mysql_query($sql);[/code] finds none? Shouldn't they be the same? Can I not use … | |
Hello- I am creating a puzzle that is like the "Rubik's Cube," although this puzzle is played on the computer monitor, and the puzzle involves images placed on the sides of a cube. The mouse is used to rotate the sides of the cube. Each side of the cube is … | |
Hi peoples, Can someone tell me how I can play an avi file using C++ and VS2005? I'm designing a C++ Windows Forms Application project. Thanks in advance. | |
ok I poseted about an assignment that i had to do for my Java programming class. Now i have attempted it and i have kind of gotten it to work but its not working properly ... i have no idea what i'm doing wrong ... please help me fix my … | |
We are discussing passing parameters by value and by reference in class and I need to come up with a function 'computeChange' from the following code: [code] // The function prototype int computeChange(int& changeValue, int coinValue); // some constants const int COINS[ ] = {50, 25, 10, 5, 1}; const … | |
HI all, In my c++ program, I did the following. [code]...... class thr {private: char *d; ...... public: d =new char[35]; .... } destructor has the line delete [ ]d; i get segmentation error *** glibc detected *** /usr/bin/perl: free(): invalid next size (normal): 0x0000 000001bc7120 *** [/code] But if … | |
Hello, I am kinda getting into MAME arcades and what not, and My questions is related to that. I have found many front-ends for mame that run on window and linux. There are many great ones, but none of them have one particular feature I am looking for. The feature … | |
Hi, I am new at programming and I have never done Java before. I am in my first Java class and we are asked to complete the following question...[B]Complete the method printLargestAnimal below. [/B]Consider the three Strings "dog", "cat", and "monkey". In lexicographical order, "monkey" is the largest of the … | |
:!: [B]Im need to create a program for my requirement that will output: [/B] [B]Enter Any Word: ____ -(i typed Hello)[/B] [B]Hello[/B] [B]Hell[/B] [B]Hel[/B] [B]He[/B] [B]H[/B] [B]i think that i should use for and strlen but i cant make strlen work. please help[/B] Thanyou, | |
hello all..I have created ANT Script and need to work along with CVSMy ANT Script shall1. As of CVS extract .ear from this is the common version 2. Extract from CVS and overwrite in target directory the specific components listed in the specific [INSTANCE].Can any one tell me how shall … | |
[code] #include<iostream> using namespace std; class test { public: void display() const { cout<<"Hai Here in class"<<endl; } }; int main() { const test b; b.display(); } [/code] When I execute the above code I got an error saying "uninitialized const b". But if I provide a default constructor it … | |
I am currently making a timer for a school project. Im a little new to VB.net and having a few problems getting the timer to work. When the countdown timer gets to 0 the "-" sign appears in the wrong place. As in i get 0:-1 I would also like … | |
[COLOR=#000000]Write a program that calculates and prints the bill for a cellular telephone company. The company offers two types of services: regular and premium. Its rates vary depending on the type of service. The rates are as follows:[/COLOR] [COLOR=#000000]Regular service: $10.00 plus first 50 minutes are free. Charges for over … | |
How would I manipulate an entry widget so that it hides the entered characters behind asterisks? like this: Typed: PassWord Displayed as typing occurs: ******** I'm trying to make a dialog box module, for use in some future programs. I want the user to be the only one to know … | |
Hello. I have a question regarding using the 'system' command in C++. Using that command, i.e. system("myfile1.exe"), the command window appears. Is there a way of preventing the command window from appearing? Or is there any other way to do this using a different command? ( I do not want … | |
Hey everyone, I'm trying to write a simple program that allows the user to input and Amount, Yearly Interest Rate, and a Final Amount. The program is to compute how long the money should be invested to end up with the Final Amount if it is compounded monthly. I'm just … | |
I have this algorithm that is really giving e a problem can someone please help me. void Transpose (int a[][SIZE], int n) } for(int=1;i<n;i++) for(int j=i+1; j<=n; j++) { int t=a[i][j]; a[i][j]=a[j][i]; a[j][i]=t } } I need to obtain the time complexity of the above matrix transpose algorithm using program … | |
Do you have any algorithms I can look at that will perform escape logic on a base64 and hex encoded message? Thanks | |
I need to create bots that searches a clients PC for a security certificate and also for encrypted login details which are then decrypted and resent to the host server for validation. Somebody help me please! | |
hi all, can anyone suggest me how to display propercase in vb eg. HELLo WOrld is Hello World | |
My vb 5.0 program is adding 2 identical records to a table each time I run it. Does anyone know what would cause this? Thanks | |
Hi, we have the following problem: We have a code that uses the "GetTickCount" method (the return value is the number of milliseconds that have elapsed since the system was started). The Problem: Since GetTickCount returns only a 32-bit number, after about 49 days, the counter wraps. The solution we … | |
I am getting segmentation fault in my perl code. I am not able to find out,from where this arises.Can anyone suggest em a good debugger to find it out.thanks a lot. | |
i want to know if there is any difference betwen [URL="http://www.linuxforums.org/forum/#"]java[/URL] and javascript... are they the same thing? | |
hi.. my name is vikrant..doing b.tech in comp science engg..when i start the jakarta tomcat5.0, it gives me the error that java_home not assigned properly ang gives me the error that unable to find _djava.endorsed.dirs. what is meant by this file..is there anyone to help me | |
I've just registered a MIME handler for a custom filetype; I've got the basic redirection sorted, all files of type XRM get sent to a 'dumb' perl script that echos predefined values. But, how do I read in the contents of the XRM file that invoked the perl script? Does … | |
I know this is VERY off topic, but I am sure that a bunch of people here are experienced with computer building. I am building a computer off of tigerdirect canada and I was just wondering if I could get someone to check and see if all of these parts … | |
Hi everyone, I know you must have heard this from every one else but i need some guidence on my final year project...... I have to develop a software to do e- ordering on a fast food store, i need help on whats the best programming language i can use … | |
Hello I'm working on an application. I need as big arrays as possible. At home I work with linux there I can declare array as big as this: char buffer[1000000]. No probleme. In work I'm working with boreland C++ 4.5 (WinXp) and I can't declare biger size of array as … | |
Can anyone help..... When I search on my site this is the error I get [QUOTE] [B]Warning[/B]: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [B]/mounted-storage/home23a/sub003/sc21979-KVVZ/www/ghhookup/functions.php[/B] on line [B]28[/B][/QUOTE] This is a peice of the code from function.php [QUOTE]if(mysql_num_rows($sql_res)){ return mysql_fetch_object($sql_res); } else { return ''; } … | |
Hi, I'm considering making a Connect 4 game in java. I have just completed my chess game (version 1 anyway), [URL]http://www.colin-java.co.uk/JChess/index.htm[/URL] So connect 4 should be a load simpler. However I am uncertain as to which evaluation function to use, does anyone have any experience with this. Thanks for any … |
The End.