199,114 Archived Topics
Remove Filter ![]() | |
I have problem in code for IF statement. Im looking in a mysql table if there is a field (fld_comleted) that has record with "NO" in it. If there is a record that has "NO" in it it has to do something (send email to client) if there is no … | |
hello everybody. i bulding now a software with a data-base i am using MFC lib. i need help how to add, edit & use data base in vc++ tks biny. | |
This is my GPA Calculator, for a homework assignment. Please share what you would have added or remove from the code. Arrays is a requirement in this code. [CODE=c++]# include <iostream> using namespace std; int main () { float b [100], c [100], a, a1, average_GPA, total_credits, Cummalative_GPA; cout <<"Enter … | |
Dear knowledgeable ones A new problem have arisen. I have now an SQL database file with about 100 tables in it. I would like to automatically go through all of these tables and check if the column "Owner" exist. If this field does not exist, then it should be created … | |
Hi, I wrote a qyery: [CODE] SELECT introtext FROM jos_content JOIN jos_sections ON jos_content.sectionid = jos_sections.id WHERE jos_sections.title = 'Redaktores zodis' ORDER BY publish_up, DESC; [/CODE] If I don't use ORDER BY then it works. But with it it throws error: Query : select introtext from jos_content join jos_sections on … | |
I have been reading a textbook on Java-- I am a C/C++ programmer so my view of addresses and pointers are based on what I know from those languages. I am trying to make sense of something the textbook said about object addresses. The textbook basically said when one object … | |
Here I am again for my weekly Sunday night help. Sigh. How can I pass my error message into my exception? Thanks. Let me know if you need to see more of the code. [CODE] /* Create an error message that is passed to the Exception class constructor for the … | |
I am creating a game that requires me to change the background color of a panel, wait 1 second, then change it back. The code I tried was: [CODE] button1.BackColor = Color.Blue; System.Threading.Thread.Sleep(1000); button1.BackColor = Color.DimGray; //Dim Gray is the original color [/CODE] When I use this code it never … | |
Hello :icon_neutral: I am doing a test to return payment details - but seem to be having a problem with the card number. When I run the code below I get an error saying that it is too large or small to be an integer. If I make the variable … | |
a code that presents a good interface for apassword and user name | |
I understand this is not Java related, but since [B]a lot[/B] of Java Developers out there use Netbeans as their IDE. I figured that I'll get help here easier. Anyways, I downloaded Netbeans 7 (the full version), and tried installing it on Windows 7. The installer starts, and right after … | |
hi all, i have loaded a dll with ctypes.cdll and i want to get thta dll's parameters and method like when you write: <'the dll handle'>. and just after you put the dot a list appears to show you the methods or like when you get a dir() from a … | |
Hiya, I've got a small problem. I have an interface called "event", which represents a networking event. I have classes implementing this interface. Now, when my server app receives a new event, it checks the class of the event and acts accordingly. This works nicely when the implementing classes are … | |
![]() | I have to: Find the distinct names of all diners who ordered 2 or more portion of the same foods on the same day in the same restaurant. [CODE] SQL> select * from foodorders order by diner; DINER RESTAURANT ODATE FOOD ------------------------------ ------------------------------ --------- ------------------- ALICE BEST FOOD 09-APR-11 BAKED … ![]() |
I am new to using xml in c sharp. I am able to enter details to the xml file (name of file "Data1.xml") through text boxes.But before entering details to the xml file,i need to first verify if any other 'well' have the same 'name'. 'name' has to be unique. … | |
explain th datatable 1.0 1 1.00 / 5, 1 vote C# tablename User Id int Email varchar(500) Password varchar(500) Name varchar(500) DATA IN TABLE IS Id Email Password Name 1 [email]ali@yahoo.com[/email] 1234 ali 2 [email]usman@yahoo.com[/email] 1234 usman i ask you about simply datable working Label1.text=datatable.Rows[0]["Name"].Tostring(); how it wnat to know … | |
plz how i can write a program to pop from one stack and save the value deleted to onther stack .. means .. pop the top from one stack and push the delete value to other stack ... :( | |
The software developer of an object-oriented programming API wishes to design a Stackdata type by ‘adapting’ an underlying Listdata structure. Describe how the Adapter Design Patterncould achieve this via:- i.Inheritance ii.Composition Please reply as soon as possible. I have my exam. | |
Hi there, I have X as the value selected in a drop down To X I want to link and display the below value defined in the following arrays. Does anyone know how to link this code to the X value resulting for the drop down selection ? [CODE] <script … | |
HELLO. i want to put logo in my crystal report, i couldn't find image property in crystal report plz help. Thanks in advance. | |
plz i cant't correct the errors .. can any one correct this [CODE] #include<iostream.h> #define size 100 struct stack { int item [size]; int top=0 ; }; class m{ bool isempty(stack s) { if (s.top==-1) return true ; else return false ;} bool isfull(stack s); } return (s.top==size-1);} int count … | |
i have chosen virtual classroom systems to be done as a project for my final year.. i would like to know the enhancements and the new features that could be added to the project so that i could try to add them into my final year project… also, please let … ![]() | |
i have designed a windows forms which has a textbox in it,in that textbox i will enter path and on click of button i will bind that data to database(mysql) and i am done with it.but if the entered path contains ''(escape character) it will be ignored while binding for … | |
Hi. I am doing a C# windows form application and I am retrieving data from a database and saving in a datatable temporarily. I have to access each cell and update them. [CODE] try { string TaskStatus = "Assigned"; SqlCommand cmd1 = new SqlCommand("SELECT Day_Date FROM tblDaily_Task_Schedule WHERE Task_Status='" + … | |
1. I Need to search in a file by reading it character by character, the problem is that each line ends with spaces before the next line begins......... how to remove spaces between lines and make the search contiue automatically. 2. In another case I need to read a file … | |
As i know we can set the radio button as default buttion by using the code (checked) . how about the select button? Can i do the same thing to select button? Thanks! | |
i have a problem. i don't know where i am making the mistake.... i need to refreshed my JPanels automatically with time..... i have used timers for this. i used in the constructor of the class... public class HoursPanel{ //.... //..... public HoursPanel(){ int delay = 60000; Timer timer = … | |
Starting to do arrays and my first question is... Wrtie a loop to print the elements of an array of int called numbers. You only know that the array has 5 elements. i My 1st attempt is going like this.... [CODE]#include <iostream> using namespace std; int main() { int number[5]; … | |
I am trying to move a ball using time. The ball must move 5 pixel per second. In my code the ball is moving faster. Why is it moving faster? What is wrong with my code? [CODE]#include <allegro.h> #include <cstdlib> #include <time.h> int ball_x = 320; int ball_y = 240; … | |
I have a program that runs a binary search tree and lists a menu of options. Two of the options are the only ones I can't seem to get to work which are saveToFile and buildFromFile. These methods include asking for a name to save as an output file (save) … | |
I have an assignment below: 1. Create a class called Furniture with the following attributes: furnitureType – a String modelNumber – a String price – double quantitySold – int totalCharge - double. Provide the following: 1. A non-default constructor for Furniture 2. Settors and gettors for price and furnitureType (don’t … | |
Hi everyone, As part of an assignment we have to develop a recursive backtracking solution in java to a sort of knapsack problem - you have a 150mm bar, a set of orders you have to cut and you need to come up with the best solution that gets the … | |
Hi All, I try to make my caption text scrolling. Actually, i already make it scrolling but after the last letter it would appear all of text and scrolling again. I want the text scrolling one by one, after the last letter it following by the first letter. How i … | |
Im trying to get this game to play again once the user gets the right answer or the guesses exceede 8. The problem comes in when i type in Y or N. It doesnt loop back up to the top of Do loop like i would like it too. Please … | |
Code: [code]<?php $data = file_get_contents('http://support.xbox.com/en-gb/Pages/xbox-live/xbox-live-status.aspx'); preg_match_all('~<div id='xbox-live-status-box'>\s*(<div.*?</div>\s*)?(.*?)</div>~is', $data, $matches ); print_r($matches); ?> [/code] Result: Array ( [ 0 ] => Array ( ) [ 1 ] => Array ( ) [ 2 ] => Array ( ) ) I was hoping to maybe see something similar to this... trying to … | |
i have 4 columns in the mysql database url, showingtext, target want to make a hyperlink from those columns: question: how do i automatically fill the 4th column containing the html hyperlink code question: should i rather string the 3 columns togheter using php, how would one do that sorry … | |
Q.Create an equivalent of four function calculator. The program should request the user to enter two numbers and an operator. It should carry out specified arithmetic operation on the two numbers( using switch case).After displaying the result, the program should ask the user if he/she wants to do another calculation.If … | |
I have a program assignment where one part requires a user-defined function where you enter a string with a minimum length of 2 characters and a maximum length of 20 characters. How would I get it to find the length (I believe should be stored into index) of the entered … | |
here's the infix expression: [B]EXAMPLE 1[/B] a/(b+c)*d according to me, if [B]*[/B] is given higher precedence then [B]/[/B] , then this should be the postfix expression: [B]1) abc+d*/ [/B] if / has higher priority then * , then: [B]2) abc+/d*[/B] [B]question 1: [/B]which is correct?? 1 or 2 ? according … | |
so.. my professor ask us to read map(x,y) into a graph data structure and traverse using Breadth First Search. although i asked him for help, i still so lost..can someone please explain how should i start, such as what are some functions the graph class should has..and what they should … | |
Hi All, Its long have not been here. Python have been a language that have refused to get off my shoulders. After more than a year or two I'm back. And to cut story shot is, though I love Rhythmbox, It have the poorest Podcasting module I have ever encountered. … | |
Hi All, I just wrote a program of string. In the below program every blank space will be replace by char 'x'. The program compiled successfully but it dint not run, give error. What I am doing wrong plz suggest me. [CODE]#include<iostream.h> using namespace std; int f1( char *st); int … | |
Instructions: --For each day, tell which balloon (identify it by time released) traveled the greatest distance on that day (7 values printed). Identify the day by name rather than by number. --For each day, calculate and print the average distance (print one decimal position) traveled by all balloons released on … | |
Hi, I am new here. I need some help on inter-process communication. I am developing a high performance console app in C# 4.0. The reason i chose console to winform because to minimize the GUI thread overheads. But i need to view the processing statistics from time to time (occasionally … | |
Hello, let's say I have these classes: [code=java] public class ClassA extends JFrame{ private JButton btn1; private JPanel panel; public JPanel getPanel(){ return this.panel; } ClassA(){ this.setSize(500,500); this.setVisible(true); panel=new JPanel(new FlowLayout()); btn1=new JButton("LALALA"); this.add(panel); panel.add(btn1); } } public class ClassB { ClassA a; ClassB(ClassA a){ this.a = a; JButton button2 … | |
Hello World ! How to load a Bitmap image or any other format in openGL ? I am so much confused where I need to begin my innings ? confused while studying lot of theories and concepts...plz can anyone tell me the steps from starting altough i have read some … | |
what is wrong with my code?i cant figure it out. [CODE] #include<iostream.h> #include<stdlib.h> #include<stdio.h> #define MAX 50 struct Node { char judul[MAX]; char pengarang[MAX]; int harga; Node* nextPtr; }; Node* makeNode(char judul[], char pengarang[], int harga) { Node* newNodePtr = (Node*)malloc(sizeof(Node)); if(newNodePtr == NULL) { cout << "Out of Memory" … | |
i am using the following code to tokenize a character array [CODE]for(int i = 1; i <= count+1; i++) { name[i] = strtok(NULL, "("); type[i] = strtok(NULL, ")"); b << type[i] << " " << name[i]; b << ";"<<endl; cout << type[i] << name[i] << endl; }[[/CODE] however in the … | |
I'm having trouble formatting a binary tree. In my program, the tree format should print every output as such: 35 30 29 25 24 20 15 This is the code that I have thus far. [CODE]public void treeFormatTraversal(){//begin int level = 0; if(root !=null) treeFormatHelper(root, level); else System.out.println("\nTree is Empty\n"); … |
The End.