199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for branding4you

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 …

Member Avatar for branding4you
0
114
Member Avatar for l1nuxuser

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.

Member Avatar for Ancient Dragon
0
204
Member Avatar for missc
Member Avatar for bpushia

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 …

Member Avatar for Narue
0
6K
Member Avatar for Morten Brendefu

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 …

Member Avatar for Morten Brendefu
0
170
Member Avatar for McLaren

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 …

Member Avatar for McLaren
0
84
Member Avatar for \007

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 …

Member Avatar for \007
0
122
Member Avatar for computerbear

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 …

Member Avatar for C#Jaap
0
134
Member Avatar for jmurph333

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 …

Member Avatar for jmurph333
0
131
Member Avatar for johnt68

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 …

Member Avatar for johnt68
0
140
Member Avatar for Olifant
Member Avatar for Moschops
0
103
Member Avatar for Dean_Grobler

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 …

Member Avatar for mKorbel
0
270
Member Avatar for s_jmp

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 …

Member Avatar for bunkus
0
531
Member Avatar for bleedi

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 …

Member Avatar for bleedi
0
161
Member Avatar for andylbh

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 …

Member Avatar for andylbh
0
147
Member Avatar for zifina

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. …

Member Avatar for xml_looser
0
221
Member Avatar for umair41

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 …

Member Avatar for pankeel
0
67
Member Avatar for programing

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 ... :(

Member Avatar for TrustyTony
0
136
Member Avatar for stranger_on_way

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.

Member Avatar for mKorbel
0
92
Member Avatar for Sydney123

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 …

Member Avatar for ivan3510
0
76
Member Avatar for wenbnet

HELLO. i want to put logo in my crystal report, i couldn't find image property in crystal report plz help. Thanks in advance.

Member Avatar for wenbnet
0
211
Member Avatar for programing

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 …

Member Avatar for programing
0
137
Member Avatar for zeeya

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 …

Member Avatar for diafol
0
322
Member Avatar for girishsp

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 …

Member Avatar for girishsp
0
133
Member Avatar for kirtee2209

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='" + …

Member Avatar for kirtee2209
0
141
Member Avatar for ekailan

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 …

Member Avatar for abelLazm
0
128
Member Avatar for cliffcc

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!

Member Avatar for vibhaJ
0
216
Member Avatar for tultul

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 = …

Member Avatar for tultul
0
130
Member Avatar for Loki55

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]; …

Member Avatar for ragedsparrow
0
104
Member Avatar for Mr. K

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; …

Member Avatar for Mr. K
0
117
Member Avatar for Iamthecheese

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) …

0
186
Member Avatar for paidinfull

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 …

Member Avatar for bibiki
0
1K
Member Avatar for SCass2010

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 …

Member Avatar for bibiki
0
688
Member Avatar for dnk

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 …

Member Avatar for dnk
0
231
Member Avatar for toferdagofer

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 …

Member Avatar for toferdagofer
0
176
Member Avatar for MoreBloodWine

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 …

0
90
Member Avatar for johng123

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 …

Member Avatar for johng123
0
399
Member Avatar for IwalkAlone

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 …

Member Avatar for lokeshg
0
2K
Member Avatar for wdearth

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 …

Member Avatar for TrustyTony
0
170
Member Avatar for ronnieaka

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 …

Member Avatar for TrustyTony
0
243
Member Avatar for wildplace

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 …

Member Avatar for wildplace
0
108
Member Avatar for Stefano Mtangoo

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. …

Member Avatar for Stefano Mtangoo
0
297
Member Avatar for pravej

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 …

Member Avatar for pravej
0
146
Member Avatar for klangston92

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 …

Member Avatar for pseudorandom21
0
165
Member Avatar for barttoo

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 …

Member Avatar for Momerath
0
128
Member Avatar for Buffalo101

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 …

Member Avatar for mKorbel
0
2K
Member Avatar for pcgamer2008

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 …

Member Avatar for mrnutty
0
117
Member Avatar for anitaNg

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" …

Member Avatar for jonsca
0
144
Member Avatar for porschedream

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 …

Member Avatar for TrustyTony
0
874
Member Avatar for Iamthecheese

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"); …

Member Avatar for Iamthecheese
0
155

The End.