199,124 Archived Topics
Remove Filter ![]() | |
I've been using Visual Studio 2010 Ultimate to learn C++ and have created a project file. Within that project file are 2 .cpp files. I use one to refresh my memory of what I've learned and the other to enhance my knowledge of C++. The problem is that whenever I … | |
Hello to everyone and happy new year... I have 3 JRadioButtons in my JFrame [CODE]private JRadioButton one = new JRadioButton("one "); private JRadioButton two = new JRadioButton("two "); private JRadioButton three = new JRadioButton("three ");[/CODE] And I Have add them to a group [CODE]private ButtonGroup Group = new ButtonGroup();[/CODE] [CODE]Group … | |
A jar or exe file [Java App], may contain images etc files inside one file the file.jar or file.exe? In NetBeans and Eclipse, how do this one file [jar] or an file.exe containing All files of the IDE's wanted Project? | |
Hey everyone and happy new year. I'm a java beginner and I am doing my first program, a dvd rental system. I've got 4 classes with the following variables: the main class the dvd class - dvdID, title, rating, producer the cleint class - cleintID, name, surname, address the rentals … | |
hey guys i really can't solve this problem, hope you can help me. the problem is, i use this codes to get the data type of a column from an access database Form12.ListView1.Items(j).SubItems.Add(myData.Rows(i)!DATA_TYPE) but what displays in my listview are numbers like (130 , 3 so on..). How can i … | |
hi all, I have a problem in applying timer control on asp.net web pages. in my web application i m having assessment pages, where i am retrieving question and answer from database. everything is working fine but i want some kind of restrictions, like Assessment Time(20 Minute) so user can … | |
Hi!This is my 1st thread. I wanted to ask that I have a common table for clients.If client is given quotation, hes status is 1, if given invoice, hes status is 2 and so on. If i want to display only the clients who have received the invoice, I fire … | |
hi all i want to read a secific line in a text file here is the text file form [CODE]iphuc 0.6.1 with tab completion. >> By The iPhoneDev Team: nightwatch geohot ixtli warren nall mjc operator Unsupported iTunesMobileDevice.dll Version ee0000 15 CFRunLoop: Waiting for iPhone.[/CODE] or [CODE]iphuc 0.6.1 with tab … | |
Is there someone who can help me with this? Write a C++ program which will read in a list of numbers, find the average of all numbers, the average of thepositive and negative numbers, and the largest element. Your program should contain at least four functions -- one to read … | |
I git this warning>> [CODE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files (x86)\EasyPHP 2.0b1\www\HotelCalifornia\sites\reserve_room.php on line 85 Unknown column '' in 'where clause[/CODE] This is my code>> [CODE] <?php $user=$_GET['username']; $Custno=$_GET['Custno']; $RoomNo=$_GET['RoomNo']; $username="jasmine"; $password="price"; $db=mysql_connect("localhost" , $username, $password); mysql_select_db("hotel_cali", $db); $sql="SELECT Email FROM customer … | |
could someone help me, i dont know how to show the results... [CODE]#include <iostream> #include <fstream> using namespace std; int ReadList(int Array[], int N) { int list=0; for(N=0; N<10; N++) { list= Array[N]; } return list; } void Avgs (int Array[], int N, int &Ave, int &AveP, int &AveN) { … | |
is there a way to use mouse wheel scroll in datagrid? | |
I'm using jCarousel to create this multi-row slideshow and..well... It doesn't work. I really don't know why, and this is very urgent. I have less than an hour to finish it. Please, please help me. main page: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> <head> … | |
Hi, This is my first post in daniweb! I've two questions: First question: I'm currently studying about classes, and could get '=' overloading format: [CODE][COLOR="Red"]T&[/COLOR] T::operator =(const T& b);[/CODE] Why we set it to return reference? what's the use? Why couldn't simply be: [CODE][COLOR="red"]void[/COLOR] T::operator =(const T& b);[/CODE] I've used … | |
[CODE] #include<iostream> #include<fstream> using namespace std; int main() { char a='p'; int b=23; float c=45.67; ofstream out("test.txt"); out<<a<<" "<<&a<<endl; out<<b<<" "<<&b<<endl; out<<c<<" "<<&c<<endl; } [/CODE] the output for this is in the text file: p pα#a/ 23 0x22cd08 45.67 0x22cd04 why is the address of the character variable is very … ![]() | |
hi. I want to add a google map(with street view) in my site. I use this code. when I clicked the point on the map, it can change the street view to this part and show the click point information. But how to add a Red balloons marker in the … | |
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reasons = '', birthplace = '' dob_month = 'January', dob_day = '' at line 8 Hello aLL I am developing an online registration form that … | |
I was trying to find the smallest common divisor for the numbers from 1 to 20. I tried the following code. My problem was how to get back to the beggining of the for loop after the if test has found the number is not divisible. But then i added … | |
hi guys ! i had this code snippet from the net...so i m trying to understand the code but m not getting those points plz help me 1.what does return 2,return 4,return 6 means in this code? 2.why we have case '#' ,why '#' opreator is assigned to stack[top]; 3.if(isoperator(symbol)==0) … | |
Hello, I have observed that when generating assembly code from simple C programs using GCC, the stack is initialized as follows: [CODE]pushl %ebp movl %esp, %ebp andl $-16, %esp [/CODE] my question concerns the last instruction where -16 is anded with the stack pointer. Am I correct in assuming that … | |
I want to create login form here is the code // login.html <html> <head> <title>Login</title> </head> <form name="Login" method="post" action="loginbackend.php"> Username : <input name="txtUname" type="text" id="Uname"><br /> Password : <input name="txtUpass" type="password" id="Upass"><br /> <input type="submit" name="Submit" value="Login"> </form> </html> // loginbackend.php <?php ob_start(); $dbhost = 'localhost'; $dbuser = 'root'; … | |
Is it possible to convert a string value to a variable name ? Considering the following example AddNode(treeview, "root", "This is the root"); [CODE]public void AddNode(TreeNode parent, string nodeName, string nodeValue) { // what i want to happen is here to be created node with the name "root" // TreeNode … | |
Hi there More help required! I have a table being imported into my VB application that has 3 columns. I have written code to import the table, and have written code to display on the first column (country) in a list view. What I want to do now is have … | |
I should begin by stating that XML and I don't seem to get along very well. I've just about finished the interface on the level editor for a game I've made, and the next step is generating a XML file so that it can be read into the game dynamically. … | |
see the link [url]http://www.thesmartcodes.com/a-simpl...-from-asp-net/[/url] can any one see this and see if it is working if i specify (for example my gmail address and password ,username) in the variable mentioned over there ?? and lastly called sendMail function just | |
I've tried to make an implementation of a std::vector, but it has some bugs that I cannot figure out, for one, the Append (same as push_back) method doesn't work. If anyone could help me to find the bugs that would be appreciated. [code=c++] template< typename t > class vector_t{ t … | |
Here is my code for a calculator. What I don't understand is how it knows which function to execute when someone chooses an option, how does it know to add and not subtract? The program works perfectly. I'm just looking for an explanation on how it knows if I press … | |
hi, i have a inputbox that have a hour in this format: 12:00:00 what i want to do is change the hour,secunds,minuts by pressing only the keys up and down. i have seen some web forms that do that but i can´t figure out how do that. any one know … | |
I was wondering if anyone knows how to get text from a cell in a datagrid into a message box or text box? Thanks in advance. | |
I'm trying to make it so when I press ESC, it RestoreScreen() but it doesn't work. Now I don't know whether it's my method RestoreScreen() or my listeners. This is my code: [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class main extends JFrame implements MouseListener,KeyListener{ public void keyPressed(KeyEvent e) { … | |
what is the trick, when a user go to an external link of my page an alert, or confirm box appear, or run some other code? ![]() | |
I'm reading a book called Beginning Algorithms by Harris and Ross, which gives code examples in Java. As an academic exercise I am trying to convert the code examples to C++. In the interface below the part that throws me is the return of the 'Object' by the 'current' method. … | |
How would i make a 3 page website in 1 script using php? Example. There are sections that are fun, boring, and evil. And i want to be able to edit and create the website all in one page. I know its possible but i do not know how. Please … | |
Hello, I am very new to Python (just started yesterday) and I've written a program for converting temperatures. I get wrong C to F numbers, and when I try to go from F to C I get 0. Here is the code: [CODE] choice =1 while choice==1: print "1. Celcius … | |
Hello,how can I make the 2 for`s to work at the same time to find out the diferences between A and B ? Thank you. [code] A = "gtggcaacgtgc" B = "gtagcagcgcgc" C = "gcggcacagggt" D = "gtgacaacgtgc" def cromo(a, b): inc = 0 for i in a: for j … | |
I have table names 'payroll' with following data month , pay January , 1200 March , 1500 December , 2000 I want the following result Janury , 1200 February , 00 March , 1500 April , 00 May , 00 June , 00 July , 00 August , 00 September … | |
I am using this as an example to show what I want to do. I have already done a char array like this: char name[10][10] = {"1. One", "2. Two", "3. Three", "4. Four", etc.. down to 24. I have already wrote the code, so all these 24 subarrays can … | |
hello all, this is my first post here and I have searched for answers elsewhere before asking for help. My code is pretty tight, but I keep coming up with symbol not found errors. Are my curlys not in the right place? Or have i not declared the objects correctly. … | |
Hi I'm new to programming so I need a little help with packages. I have created 2 packages test1 and test2 with p1.java and p2.java respectively. Both have default access. I'm trying to extend p1 with p2 and have tried to import test1 but the error im getting is that … | |
Im running a few tests for creating an MP3 player (very basic) and i'm having a few issues that I'm hoping somebody can help with. Right..... Im using mci for playback but what i need is the file path to be input by the user via a textbox. Ive created … | |
[ATTACH]18705[/ATTACH] Hi there. I'd like to ask for assistance from anybody out there that knows how to create database conceptual and physical. The problem I'm wanting to solve is I've got an interface in Visual Studio 2010 that populates from 2 tables named Orders and OrderDetails. Below are the fields: … | |
Hi Would anybody know what a Linker is. I understand it is to in some way bring together the Implementation, header and Main.cpp files though is that part of the compiling process. I'm using Dev C++. How would I construct a separate implementation file and header file from main and … | |
I get the following error from running this code. Was wondering if 'i' and 'j' are considered objects. If yes is there any way i could cast them..... How do i write a better for loop for this.... array2D = [[0 for i in range(10)]for j in range(10)] for i … | |
i want to make program for a quiz. i create the questions is an array, and i want that questions start at random, and never be shown again. [CODE]dim question() as String = {"OTOMATIS MENURUT KERJA MESIN", "TIDAK MENEPATI JANJI", "YANG UTAMA", "TEMPAT TINGGAL KEPALA NEGARA", "PENGURUS RUMAH SAKIT", "SUDAH … | |
hello there :) this is my first time to join a forum. i just want to ask how can i make a window (actually like a pop screen for "help") in PHP. by the way i am using code igniter. thanks :) | |
I'm trying to display number on screen wihout using the exponential form (1x10e-7 etc) Unfortunatly as it converts the number to a string it converts the exponential format with it Code: double j; //as Long string s; //as String j=0.00000000001 ostringstream ss; ss<<j; s=ss.str(); cout<<s; The programme will display 10e-10 … | |
Hi all, I am transitioning a bunch of data from html (yuck!) to some sort of separated schema. I was going to use xml: [code] <events> <event> <title> <date> <speaker> <description> </event> </events> [/code] but now I am wondering if I should use a real database instead. Can anyone comment … | |
hello people . i am writing a login system for administers , so i made the login page with this code : [CODE] <?php ##################################################### # created by : Awah Mohammed # # date : 23/12/2010 at 23:15 pm # # haha , i like writing such stuff in my … | |
I need help with this problem. The assignment says: "Do programming Exercise 6, but instead of declaring an array of three CandyBar structure, use new to allocate the array dynamically". Here is assignment 6: [CODE]#include <iostream> using namespace std; struct CandyBar { char candyName[25]; double candyAmount; int twoCandyWeight; }; int … | |
does anyone know which specific randomization algorithm the ipod shuffle uses to shuffle its songs? desperately need it for my thesis. thanks. |
The End.