199,114 Archived Topics
Remove Filter ![]() | |
I am making an expression tree for a school assignment and am getting these error in my code. Being quite new to C++ I have searched the web for answers to no avail.[CODE]#include<iostream> using namespace std; #include "expression.h" namespace Student { void writeNode(NodeType* node); /* Displays an arithmetic expression. @pre … | |
I want to put on one of my HTML pages a message box with editing options, just like the one you are using in any forum to post a message (with options like -bold, italic, underline,font color, font size, adding files, etc) where can I get a ready code? | |
Hye I have a question: Suppose I use JDBC, JDBCTemplate in order to execute a sql query. The query is something like: query = "SELECT ... FROM ... WHERE user = ? AND password = ? AND x='valuex' AND y='valuey' ..." Where user,password - I got from the web user … | |
I found an old post (2002) on another website where someone asked how to colorize text in Linux. The reply was: [CODE]printf ("\033[31ma\033[32mb\n");[/CODE] Where the format is "\033[XXm" followed by the text to be colored. I tried this on my Ubunutu machine and it works. It even works with "cout … | |
Hello, I have a project and I'm working on the important part now. I want to create this interface in the end and informations in DB. This my goal, this is a prototypical interface created with MockupScreens [url]http://i.imgur.com/7rt5U.png[/url] now I created this interface, I think I'm progressing slowly because I … | |
Hey people! I was just surfing around the threads here, and found one asking for how to make a Installer-like GUI ([url]http://www.daniweb.com/forums/post1492819.html[/url]). I've replied there, but I think that is nice to have this on our code database. To start, let’s make na empty Project. Add a TabControl to it. … | |
My form1 has a datagridview that is being populated by a dataset. I need to get the row's values selected on the datagridview to another form, which is form2 that is consist of textboxes. I am quite confused whether to pass the dataset to form2 or use a datareader to … | |
Good Morning, I'm not really sure where to go with this line of thought, so decided to bring it here where the logical thought processes reside... ;) What I have is this... A new membership program that has multiple levels that members can be paid on. Each level is tracked … | |
hi i have 90 textBoxes at my program and i want to insert them for my DataBase (sql) how can i do that? i know that i can to do array like -> TextBox[] arr = {textBox1,texBox2......textBox(n)}; but i dont wanna this way cause that a lot of work. how … | |
Hey guys can anyone tell me what am I doing wrong? I basically set up a method which has an array, it will return a specific element in the array according to an ID set within my property. I get the following errors: [CODE]Error (wordIdFunc = 2;): Invalid token '=' … | |
I am creating a visitor messages system on a member's profile, here is my code so far.. I am using it as an include in the profile page, here is the error I get: [CODE]Error: You have an error in your SQL syntax; check the manual that corresponds to your … ![]() | |
![]() | Hi,can anyone tell me how to check if a file exists,I am using turbo c++ 3.0 Thank you for your time. ![]() |
Hey, this is my first post here, so greetings lol. Back to the topic, Is it possible to make a text box that can put the text into html code and if so how? Sort of like the box you type your post's with on forums or blogs. ![]() | |
If I have an event which consist of 100 tasks, how to rewrite the below code,so i can show all the dealine of each task into <table>? Thanks! [CODE] <?php require("connect.php"); $deadline = mysql_query("SELECT * FROM events WHERE taskid='1001'"); $row= mysql_fetch_assoc($deadline); $deadline2 = ($row['deadline']); //dealine for this task(1001) is 2011-3-10-5-45// … ![]() | |
Hi, I got lost with some prj, hope you can give a hand. I need to create a tiny code, that generating between several variables, with loop that generate all char variations in new row. The order of all variables need to remain as it is, and to take effect … | |
Hi everyone! While writing one of my first programs in C# I have encountered a problem: I create two PictureBoxes(1 and 2) and I want PainEvent to draw a line on second of them(PictureBox2). When i start my program there isn't any line on it and it appears when I … | |
Hi, i would like to send data from a C++ application to a php script i am creating that will then put it into a mysql database after manipuating it a bit. If you don't get what i mean then think of it like this. An HTML form can be … | |
Hi, i want to get current position of cursor on the form. there are label to show the coordinates of cursor position. anyone can help me. i don't have idea for this. thanks Best regards. | |
Hi masters.. how can i shutdown computer using api files in vb6? best regards.. Gbu | |
1. is it possible to put 2 values with 1 key into a HashMap? I know the regular put(k,v) won't do it..but I'm trying to override many functions to fit my needs and I can't figure out a way to do it.. let's say the key is a name and … | |
HI friends, Is there a possibility to refer to item by its number (in Combobox)? For example, I read all combobox items from a file. and I need to do sth like that: [CODE]if (comboBox1->Itemnumber=1) then {Action}[/CODE] I don't want to refer to the text in the combobox to make … | |
Hi, I have two problems regarding my database design 1. I have a table contains the details of items, available in a store. Now there are different size available for each item. How to design my table so that it will hold each item and all available size in a … | |
Hey guys, I am very new to Java and I am trying to create a simple GUI and make the background a picture, I've tried to google and look on this site for the answer and also tried to implement the solutions and I simply cannot get anything to work. … | |
I connect a mysql database through a Axis2 web service with J2me app. Every time i insert a data to the database the following exception occurs. java.rmi.MarshalException: SAXParseException in response from server But the operations get completed successfully. Also this occurs only when i try to write a record to … | |
If I make a program, how do go about, well, actually publishing it? In the sense that I can make it in to an icon on my desktop and open it etc.... Any ideas? | |
I used to fill a listview with dataset that is set to details view. Now, I need to fill the listview with images and by that I believed that I'd set the view to large icons. How to do this? this is how I feel the listview [CODE] foreach (DataRow … | |
I can't find whats the error here. Pls help to have a look on this ^^ [CODE]#include <stdio.h> #include <conio.h> #define tax 0.05 struct jitemenu{ char menitem[10]; double harga[10]; }menu[100]; void items(int ,int,double,double); // pengistiharan function void tunjukmenu(); void resit(int, double, double, double); int main() { int Q[10], item,i,c; tunjukmenu(); … | |
how to create Context Menu and Event Handling in Visual Basic .NET | |
[CODE]#include <iostream> #include <cstring> using namespace std; class Cow { char name[20]; char * hobby; double weight; public: Cow() { strcpy(name,"peter"); strcpy(hobby,"nothing"); weight = 1.0; } Cow(const char * nm, const char * ho, double wt) { int len = strlen(ho); strncpy(name,nm,19); name[19] = '\0'; hobby = new char[len + … | |
I have got a hashtable that holds an analysis of individual photo characteristics. There are duplicate values in the hash table. Can someone explain how I can get values that are not unique,ie there is more than one entry the same. My hashtable is in the form of a text … | |
Hello, I have been working on a speech synthesis program using JSAPI and FreeTTS. I now have the code with NO errors (!!!:)) However, when I run the code, it doesn't actually have any audio to it. If I change the text spoken to "This is text that is spoken." … | |
Hello everyone, I am working on a program right now and part of the idea involves a pop-up menu. What I need is something like: A small box in the program, On MouseOver small box, small pop-up menu opens up next to the small box, On MouseOver menu option 1, … | |
well I am having a problem with my class I made to connect to my DB ok here is the class[CODE]class database { private $db_host = 'localhost'; private $db_user = 'root'; private $db_pass = 'McSteel8'; private $db_database = 'cmte'; public function connect() { $this->link = mysqli_connect($this->db_host, $this->db_user, $this->db_pass); mysqli_select_db($this->link, $this->db_database … | |
hi all, nice to meet u again. I need your help on this code, which is the programme i still failed to compile. [CODE]#include<iostream> #include<iomanip> #include<string> using namespace std; // Define Struct struct menuItemType { string menuItem; double menuPrice; }; void printCheck(int compMenuList[], int counter2); void getData(int compMenuList[], int counter1); … | |
I don't know why my code is failing after building, actually i know the char statements are wrong can anyone tell me how i can fix the char statements and make them correct, all i need to do is initialize a single letter using char [CODE]#include <stdio.h> int main() { … | |
I am working on an assignment that calls upon a text file to read numbers line by line. If line 1 number is 1, it looks at line 2 number (ex, line 2 = 13), and uses OneNumber class file to do various methods (such as prime or not prime). … | |
hello all, so i am taking a 1 hour vb class, and i am having trouble printing formated output to a list box. Basically I have two string variables that i use to format the output, but it is not working. Any clues? thanks [CODE]Public Class Form1 Private Sub compute_Click(ByVal … | |
How do I change a component that is called in a different class? for example i have added a button on a jframe then called the frame, then in another class how can i change the setVisibilty of the button that was called in the other class? | |
I am using facebox to display a contact form, however when the user selects submit I would like the action which for this example I shall call action="contact_send.php" to also open in a facebox. Currently it is easy to open a link into a facebox by declaring the rel attribute … | |
i have a form on submit.php, with method post to the same page($PHP_SELF). If i made a mistake i want to be able to press 'Go Back' to the previous page(same page) and have the values in their textfields. [code] if(isset($_POST['new'])) { <a href='#' onClick='history.go(-1)'>Go Back</a> } else { // … | |
Hello. I am have a problem while trying to write to a file some sorted lines . my initial file is somthing like this name2,number2;name3,number3;name1,number1 when i run this code ord = open("Be.csv", 'r') order = ord.read().split(";") order = sorted(order) for sort in order: print sort ord.close() f=open("Odd.csv","w") f.write(sort) f.close() … | |
Hey guys, I have been trying for a few days to create a form on a web page where someone can search my database by keyword, I am having many difficulties figuring this out, and Googling help has probably confused me more. I have a database called links which contains … | |
Need a standard fifo algorithm. for a cpu shceduler so one command comes in at a time. Please help Thank yOu | |
Hello all, I am using the zoommap plugin to develop an interactive type map. I am also using the maphilight plugin to create imagemap rollovers/popups. So the functionality is: a world map; rollover a country, it hilites, shows the name of the country. When you click on the country, a … | |
I'm doing a project and would like to hear your opinions. I want to make Integrated library system and I want to have these folders 1. classes - where all classes will be stored 2. templates - where all templates will be stored 3. admin - where admin files will … | |
I would like to write a program with getchar and putchar that read my input and prints one word per line and ignores all semicolon, comma , dot , newline, tab and space. Here is my input: "The Parsnip The parnip, children, I repeat, Is simply an anemic beet. Some … | |
How can I make this code with just one parameter (int[] a) ? [CODE]private void QuickSort( int[] a, int left, int right ) { int i = left; int j = right; int pivot = a[( left + right ) / 2]; while( i <= j ) { while( a[i] … | |
Hi all, I'm developing a program and I want a way to print out French characters. When I post the French characters in the menu, like this [code] AppendMenu(hSubMenu, MF_STRING, NEW_LIST, L"ç"); [/code] The ""ç" shows with no problem. But I wanna make it to show either in an editable … | |
im using ajax to load the values into combo box two after the user chose a category from combo box 1. but the contents are not loading in the combo box one. i do know how to do it in php but using html form cant make it work. the … ![]() |
The End.