199,113 Archived Topics
Remove Filter ![]() | |
I'm a beginner, and I was wondering how to write a java code for this: * *** ***** ******* ***** *** * I'm using DrJava. This is supposed to be in a diamond formation. Hopefully it posts that way. Thank you :) | |
So, I'm trying to create a Caesar Cipher using C++. It's supposed to be able to calculate the shift depending on what letter appears the most (which would mean that it's "e"). It's also supposed to have wrap around text, which I've tried to think of a way to have … | |
print <<<HERE <form name="form1" method="post" action=""> <table width="100%" border="0"> <tr> <td align="left" valign="top"><label>Topic <input name="msg_subject" type="text" id="msg_subject" size="55" maxlength="35"> </label></td> </tr> <tr> <td align="left" valign="top"><label> <textarea name="msg_message" id="msg_message" cols="60" rows="5"></textarea> <input name="id" type="hidden" id="id" /> </label></td> </tr> <tr> <td align="left" valign="top"> HERE; ?> <?php $s = " "; $sql_list = … | |
Good evening Daniweb, I have another idiotic problem which comes from making an arrival subclass out of Event. I have a few other subclasses of Event and they aren't giving me any trouble. I have tried to copy/paste/rewrite to eliminate any stupid typos. Arrival.h:7: error: expected class-name before ‘{’ token … | |
This is my PHP code (currently commented out in my templates) which is used in the project mentioned here - [url]http://www.daniweb.com/forums/thread251774.html[/url] (a currently ongoing project): [CODE] <div class="indented searchFooter" style="border-top: 1px solid rgb(207, 214, 233);"><table summary="" class="stNoMargins" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="tinyText stNoMargins"><div class="btnContainer"><ul><li><a class="smBtnSel" href="tvguide.php?page=1">1</a></li><li><a class="smBtn" href="tvguide.php?page=2">2</a></li><li><a class="smBtn" href="tvguide.php?page=2" title="Next … | |
Respected members: I've been asked to write and run an assembly code to print my name in the middle of a 80X25 Text screen such that, each character in my name will show different background, foreground colors also some characters will be blinking with intense light! the problem is that … | |
I have problem compile this. Line 23 having a problem ( possible loss precision, required int, found double). [CODE] public void actionPerformed( ActionEvent e ) { try { // call a function to get the value - if an error occurs, // display a message box and set focus to … | |
hi everyone i want to build pagination with PHP but i cannot for ex i have 100 number of news and i like my page show only 10 news per page so let it displays 10 page and below let it is written page1, page2, page3, and whenever i want … | |
i got a problem... i want to find a way to check if something is NOT at the beginning of a new line... how should i do that? | |
I can't figure out how to set a radio button within a filemenu. I can use myRadioButton.SetValue( True ) outside of a filemenu. What I'm trying to do is to automatically set a particular radio button dependent upon the last value used. [code=php] import wx class MyFrame(wx.Frame): def __init__(self, *args, … | |
Hi, I've got a problem with a program that boils down to strange behavior by the vector container class. It seems to not want to call constructors enough but calls destructors too many times: [CODE] #include <vector> #include <iostream> using std::cout; int constructor_count=1,destructor_count=1; class obj{public: obj(){ cout<<"C: "<<constructor_count++<<'\n'; } ~obj(){ … | |
What is the best way to add something to the nested vector of a multidimensional vector...I already have ints inside, lets say VECNAME[rowone][columntwo]...How can I add to columntwo??? | |
thanks for all the help that i have been getting but can anyone suggest how i may read a 4 character string from a text file then compare it to an input from the user then print the relating information | |
Hi I am supposed to write that implements a simple version of the BucketSort algorithm the only problem is I have no clue what that is. Any tips and examples on this would be awesome Thanks | |
Hello, I am runing this program this works if I dont delete anything in destructor. If I use delete variable name in destructor then it creates problem. It creates problem when destrctor get called while operator ovrerloading. I think It is trying to delete the memory that has already been … | |
Here I have a simple range function that can use floats as steps or increments. In a time test (using Psyco 1.6, python 2.5, and a basic PC), the normal frange function was able to go up to 1,000,000 from 0, by .3 , and finish that in about 0.5929 … | |
hi everyone is it possible to point images to another website ? i mean for example: this domain doesn't host the image > [url]http://domain1.com/image.gif[/url] this domain host the image > [url]http://domain2.com/image.gif[/url] i want when i request ( [url]http://domain1.com/image.gif[/url] ) it's point to the image on domain2 is it possible by … | |
Hello to all, Despite I added all necessary .jar files to project, I always take boring exception warnings that say "class not found". I added the code and exception output below. I'll be so happy if someone can help me. Thanx in advance.. With regards, T ----------------------------------------------------- [CODE]protected void doGet(HttpServletRequest … | |
Hello Folks: I had previously posted this problem and someone on this forum suggested that i used s[i] == 'a' || s[i] == 'A' .... but what I have here completely makes sense.. Can you please take a look at it ? [CODE] #include<iostream> #include<string> using namespace std; int main() … | |
Hi all, I'm an Assembly newby and am studying Jeff Duntemann's book on programming Assembly on Linux. As much as I love Assembly and I have to learn it if I want to do anything significant in IT since it's part of a journey, I am finding difficult to get … | |
Hi all, I have an issue with a PHP and MySQL deletion script where I am basically trying to delete all records for meetings which have expired. For this, on input, I have a date input calendar which inputs the date in the format 2010-01-18 to the database with the … | |
I just recently found out that I need a secure tunnel client in order to access an API, OK. Then while researching I find way too much conflicting info about what it is exactly. Could someone shed some light? Is it a subscription? Does it live in my PC or … | |
My program keeps crashing and I can't see why, if I remove the line [code=php] myfile << data_[i+ndim_*j] << " "; [/code] then it runs OK...but can't see anything wrong with this line? [code=php] void Matrix::WriteToFile(std::string fname) const { ofstream myfile; myfile.open ( (fname+".txt").c_str() ); for (int i = 0; … | |
Hey respected users and developers, I am a newbie to this pool of c... I am just 14 yrs old.. Plz send me free link to plearn pointers in c.. i hav downloaded many books but all of tem are useless.. The language used in the book is so difficult … | |
how to clear all input fields after submitting data? [CODE]<form method="post" id="registerForm" action="register.php" > <table align="center" cellpadding="2" cellspacing="0"> <tr> <td style="width:120px"><div align="left"><strong><LABEL for="First_name">First name:</LABEL></strong></div></td> <td><div align="left" class="string"> <input name="First_name" type="text" class="input" id="First_name" value="" size="32" /></div> </td> </tr> <tr> <td style="width:120px"><div align="left"><strong><LABEL for="Last_name">Last name:</LABEL></strong></div></td> <td><div align="left"> <input name="Last_name" class="input" type="text" id="Last_name" … | |
Need suggestions about which technology is best to use to create a traffic control and driver guidance application with reference to cost, accuracy and convenience? e.g. GSM, GPS, Infrared, UMTS or some other one? Need immediate responses plz with references | |
Dataenviroment designer is not working? do anyone know the solution. pls help me. It was working earlier but now whenever i run a report i am getting error message "failed getting rowset from current datasource" | |
I am very interested in knowing how i might code a function using the DateTimePicker control to see if i can to check and see if and when any date and day of any given year falls on a sunday so that the function will force a radiobutton.checked from one … | |
Hey Guys, I am making a Online Testing application. I have one form which sets the settings of the test. The values submitted by the user through this form is passed onto another page. On the second page the user submits questions and answers. Now i want the values submitted … | |
Hi, How can I make a button transparent (tsxButton) in order for it to appear 'invisible' on the target application? The tsxButton must still retain its standard properties. This means that if the user know where the button is on the application, moving his mouse on the area, the user … | |
Hello, How can we save a page to another drives/devices I did use a form in my page- result.php- In result.php I put one button for save As. all of the elements are disabled in this page. and I hope that the details of that page will be copied to … ![]() | |
My function is: [code=php] void Matrix::WriteToFile(std::string fname) const { ofstream myfile; myfile.open ("std::string fname.txt"); for (int i = 0; i<data_.size(); i++) myfile << data_[i] << " "; myfile.close(); } [/code] and then in the main I have A.WriteToFile("hello"), but it's saving it as fname still? Can anyone please tell me … | |
Write a program that will read in 10 test scores. Print out all 10 scores, then print the highest score, and then the lowest score. Ok i got this so far but i do not know how to print the highest or lowest. [code] #include<iostream> using namespace std; int main() … | |
Hi can someone help me. I sent this question in another forum, but noone is helping. This is the link please hlep! http://www.dreamincode.net/forums/showtopic158550.htm | |
how to store the retrived data from database into th especified text field | |
hi all! i'm new with php and i have problem. I have a submit form in which every user places code.when they submit it in database its displayed normally there, but when i try to view the data in php there are missing elements , as b<<c or <iostream> etc. … | |
My problem is that..... whenever i try to run a graphics program in c on windows vista,it does not since it is not supporting fullscreen mode. please tell how could i run graphics pro do i need visual c??? | |
Hi everyone, I'm having a problem with understanding the workings of an enhanced For loop. This code is meant to iterate through an array of ints and print out the char value of that int. But it seems to start on the first number in the array, making the program … | |
| |
Hello, I would like to add a six-line header to a data file for many files in a loop. However, I need to add the header to a data properly first... My inclination (as a python novice) is to write the header and append the data to the header. However, … | |
Hey guys, I'm new to this whole programming deal and have browsed around these forums here or there to learn a few things. My latest assignment is to create a working tic tac toe game, including functions to initialize the game board, print the board, check the game status, checking … | |
I finally figured out how to use the settings.settings file to create user settings that would persist when reopening my application. I have several text boxes that once completed by the user I would like to retain their data when the app is reopened. This part now works, unfortunately a … | |
[code]#include <conio.h> #include <stdio.h> #include <windows.h> void display(void); void menu(void); int main() { char username[9]; int password=0,x=1; display(); do { printf("\n\t\t\tPlease enter your username:"); scanf("%s",username); printf("\n\n\t\t\tPlease enter your password:"); scanf("%d",&password); //problem if (username == 'udental' && password == 1987) menu(); else { printf("\n\n\t\t\t YOU HAVE MADE AN INVALID INPUT"); printf("\n\n\t\t\t … | |
Good afternoon Daniweb, I have a simple (and probably idiotic) problem today, I have a simplistic program that simulates a Train station, trains come in, they go into a stationDock and come out after a while. The stationDocks are an array of trains, either pointing to a train or being … | |
Hiiiii!! Can any one help me, how to retrieve information of employee in text boxes if i enter employee number in c# using data adapter and also why we use data adapter? plzzzzzzz.... Thanking You!!! | |
Hi, I'm using C#, Access 2007 and VS2008 to write a windows app. I have populated a datagridview from a query (taking data from 2 tables). When the user clicks "Save", I want to be able to save any changes made in the datagridview to the database. Only one column … | |
hello all; i'm having a problem with my output. the program that i'm writing is supposed to take a number input than display the output as asterisks. so if the input is 4 the output should be: * ** *** **** however, i'm just getting a single column of asterisks. … | |
I use a php file in order to collect data from an interactive form on a website. The php code sends the submitted file to a folder on the server, and displays a "Thank you for your submission" message. I would like to add a hyperlink to a payment page, … | |
Hi, what I am trying to do is simple: I just want to execute something depend on what the user presses. Here's the pseudocode: [CODE]if(user presses 1) { do this } else { do that }[/CODE] ps. I was reading about [CODE]java.awt.AWTKeyStroke;[/CODE] and is that what I need to use? … | |
Hi i'm trying to export a journal article with fpdf everything work's fine. But i can't seem to find a solution on how to align the article's two columns at the last page of the exported PDF. Any ideas? |
The End.