199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gang

can anyone there help me about my problem in displaying a record of names,gender,annual salary and age..the inputs are the first name,lastname,gender,birthday and monthly income...i just have a hard time implementing it coz i have to use a string to deal with the name..how will i make it???just a hint....

Member Avatar for gang
0
95
Member Avatar for ++C LOVER

[CODE=LANGUAGE]#include<iostream> using namespace std; class Nibble { private: union { int number : 4; }; public: Nibble(int=0); friend ostream& operator<<(ostream&,const Nibble&); friend istream& operator>>(istream&,Nibble&); }; inline Nibble::Nibble(int n) : number(n) { cout << "constructor.." << endl;} ostream& operator<<(ostream& nout,const Nibble& n) { return nout << n.number; } istream& operator>>(istream& nin,Nibble& …

Member Avatar for Alex Edwards
0
579
Member Avatar for ufucuk

Hi; I have a simple problem. I want to match anything between "<td>...</td>" tags. My string is <td> <a class="page" title="myPage" href="/mypage/888"><img class="hotel" src="mypage.png" /></a> </td> I have tried several ways but couldn't get "<a class="page" title="myPage" href="/mypage/888"><img class="hotel" src="mypage.png" /></a>". Thanks.

Member Avatar for langsor
0
115
Member Avatar for C#Novice

I have a project where the user has to input a range of questions along with the question numbers. (So the number of questions is not fixed.) I am using a panel where i am adding the dynamically created textboxes. The textboxes are created with the user clicks an image …

Member Avatar for selvaganapathy
0
100
Member Avatar for rocky87

I need help on an assignment, I don't know where to start, I have coded to so far for it to read in the words from a text file and an array for the words to be put into, after that I'm lost as to what the next step would …

Member Avatar for Alex Edwards
0
164
Member Avatar for Shadoninja

Is there a way to save in a text based game through the MSDOS window? I want to be able to save the variables that store the mana, health, ect of a player.

Member Avatar for kidprogrammer
0
362
Member Avatar for K.Vanlalliana

If any body help me, I shall be very greatful: How shall we write Code using VB so that the value of the product of two variable should be rounded to the nearest Integer number which is divisible by 5. Is there any way to check whether the given number …

Member Avatar for selvaganapathy
0
90
Member Avatar for asyieen

hi guys.....can anyone check my coding....what's wrong with my coding? the iframe that i'm trying to make, doesn't works well......when i click on the link, it goes to next page.....what i want is, when i clicked on the link, the info will come out in the same page....here's my coding.... …

Member Avatar for Demiloy
0
164
Member Avatar for veledrom

Hi, When i hit the F5 to refresh the page, sql statement in that page runs again. It means last insert, update or delete process is triggered again. How can i solve this problem. Is it necessary for me to do insert, update or delete processes in other pages to …

Member Avatar for digital-ether
0
216
Member Avatar for anshulagarwal

I am using borland compiler... i need to define 4 gloabal arrays of double type that can store 5000 values like double d[5000],d2[5000],d3[5000],d4[5000].. and an array of objects of class data whose syntax is: [code]class data { public: int x,y; double s,w,e,d; }d[5000],f[5000];[/code] i am facing two errors: array size …

Member Avatar for jesseb07
0
147
Member Avatar for Scooby08

Im just curious as to how one would approach adding up a column that is dynamically built from the database.. Each loop passes a price and I can't figure out how to collect each price to get the total price..

Member Avatar for buddylee17
0
97
Member Avatar for atplerry

i have a completed project want to comply an run succefully on system that have vb but i want to know the setup to comply so that i can install it and run in a computer without vb or refer me to a site that fully elaborate it Thank your …

Member Avatar for atplerry
0
95
Member Avatar for 2fac323

I am having a problem getting a certain part of my program to loop. I need the loop to repeat if 'Y' or 'y' is picked after a menu item is chosen. And if 'N' or "n" is picked print the receipt. I have tried numerous times to get the …

Member Avatar for VernonDozier
0
203
Member Avatar for dmpop

Hello, Yet another silly question from yours truly. I need to add escape characters to " and ', so that "monkey's cool" becomes \"monkey's cool\". My primitive solution to the problem is as follows: [CODE]str1=raw_input("String:") str1=str1.replace("'", "\\'") str1=str1.replace("\"", "\\\"")[/CODE] But I bet there is a more efficient and elegant solution …

Member Avatar for dmpop
0
114
Member Avatar for Sharaiha

[code]<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <% import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.*; public class Validation { public Validation() { System.err.println("nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"); } } %> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Subittion Page</title> </head> <body> Your rquest …

Member Avatar for peter_budo
0
116
Member Avatar for Alex Edwards

I recently wrote a cpp file that I'm questioning. I'm unsure of whether the approach I took is correct or if it will cause damage to the heap. The goal of the project is to be able to do "clean-up" on dynamically allocated memory by storing the created object in …

Member Avatar for Alex Edwards
0
118
Member Avatar for ciencia

I need help on making a sine wave I'm trying to do the equation y = Acos(2 (pi)/B x - 2(pi)/B P) amplitude A, period B, and phase shift P. It is not working out too well so can anyone help me refine this? [code=c] #include <math.h> #include <stdio.h> #include …

Member Avatar for William Hemsworth
0
125
Member Avatar for K.Vanlalliana

Is there any way to display more than ten thousand list of Record using FlexGrid- all at once. If not, what will be the solution of this problem.

Member Avatar for K.Vanlalliana
0
119
Member Avatar for bkastel1

Hello to all, i have a question that maybe already has an answer but i can't realy find it. I want to have a ListView with a progressbar for each item (row) in this ListView. I have an application where i'm downloading some files to a electronic device i made. …

Member Avatar for CraigSchaefer
0
2K
Member Avatar for mrjoli021

without using the windows task scheduler is there a way to automatically run a task at a certain time using c#?

Member Avatar for nvmobius
0
106
Member Avatar for ansari.wajid

I have a string stored in a variable, say myString= <RssFeeds<link>http://www.codeguru.com/icom_includes/feeds/codeguru/rss-all.xml</link> <title>CodeGuru.com</title> <description>something</description></RssFeeds><RssFeeds><link>http://lifehacker.com/index.xml</link> <title>Lifehacker</title> <description>something</description> </RssFeeds> I want to extract the text between <link>and </link> and also the text between <title>and </title> in two different arrays. How to do this, please help me. if anyone have code or any helpfull …

Member Avatar for nvmobius
0
404
Member Avatar for karabela

i created a sql database with table land. columns; LandID int PK LandCodeID int LandName nvarchar(100) LandFlag image Allow Nulls ive created a dataset in my solution. from my Data Sources i can drag & drop the table Land to my Form1 as DataGridView. it puts all the columns above …

Member Avatar for nvmobius
0
281
Member Avatar for rapture

Hello, I'm newer to programming and trying to do something that has me stumped. I need to read files from a directory on a server and compare those file names to a field in a database. When I find the file names that are the same, grab a different field …

Member Avatar for nvmobius
0
1K
Member Avatar for osirus0830

Hello all, I am not taking a class or asking for help with homework. I am attempting to learn C++ on my own and I do not understand the logic within one of the sample programs within my book. [code=Cpp] #include <iostream> #include <string> int main() { using namespace std; …

Member Avatar for gregorynoob
0
185
Member Avatar for VIeditorlover

Hi, I have a gizmo attached on serial port and need to detect changes of controls signals DSR, DTR etc. no data, just changes (edge). I do it with MSCOMM.ocx and it works, but only when is CPU on idle and windows messages are delivered on time. When is load …

Member Avatar for VIeditorlover
0
125
Member Avatar for Alex Edwards

I'm trying to create my own pattern (or something similar to a pattern I guess) where objects that are anonymously instantiated can still be referenced, but I'm getting weird memory results. It seems as if the free memory is decreasing when it should be increasing-- [code=java] import java.util.ArrayList; public class …

Member Avatar for Alex Edwards
0
172
Member Avatar for gregorynoob

given x and y (the field dimensions) and x*y numbers, (pieces of cheese on each square) calculate the best way for the mouse to get from (1, 1) to (x, y), he has to get as many cheese as possible... also you can only move closer to the (x, y) …

Member Avatar for gregorynoob
0
706
Member Avatar for Danme

Hello Everybody, I am learning Java from a few days.i am getting an error in one of my programs wherein i am trying to print thr sum of "n" numbers..the code is as follows..please help me [code]import java.math.*; import java.util.*; import java.io.*; public class Add1{ public static void main(String args[]) …

Member Avatar for Danme
0
138
Member Avatar for darlineth

[CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ExpressionCalculator implements KeyListener { private JFrame frame; private JLabel label; private JPanel boxLayout,panel0,panel1,panel2,panel3; private JTextField TxtInfix,TxtPostfix,TxtPrefix,TxtResult; private Font font; public ExpressionCalculator() { boxLayout = new JPanel(); font = new Font("Serif",Font.BOLD,12); //For infix notation panel0 = new JPanel(new FlowLayout(FlowLayout.CENTER,5,0)); panel0.add(label = new …

Member Avatar for sciwizeh
0
189
Member Avatar for phillipeharris

I am working on the code that reads an enum. It seems to point to an address instead Here is the code thanks for any help [code=cplusplus] ////////////////////////////////////////////////////////////////// //contribtor.h #ifndef CONTRIBUTOR_H #define CONTRIBUTOR_H #include <iostream> #include <string> using namespace std; //================================================================ //CONSTANT DEFINITIONS enum Gender {Male=0, Female, None}; class Contributor …

Member Avatar for phillipeharris
0
117
Member Avatar for SelArom

I have a table which counts messages sent to a particular department. the important structure is basically ID Department Message DateSent I want to be able to retrieve a resultset where that looks like this: Department MessageCount something like a SELECT COUNT(ID) Where Department=XXX but collect each individual department count …

Member Avatar for SelArom
0
110
Member Avatar for Cosa

The aim of the program which i am writing is to convert strings of DNA. The DNA is in a text file and represented by the letters A, T, C, and G. Reading in the file and outputting the converted DNA is easy. However i want to save the converted …

Member Avatar for Lerner
0
142
Member Avatar for Manutebecker

All I need to know is how a good way to make sure integers between 1 and 52 wont be draw twice over in a for statement... I was thinking something like [code] srand (time(NULL)); int *drawn; //The card to be drawn int notdraw[52]; // All the cards that have …

Member Avatar for vijayan121
0
101
Member Avatar for friendklay

When I enter Unicode data as values for TextCtrl, I get the following errors: [code] UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 5: charac ter maps to <undefined> [/code] I am trying enter Burmese text (U+1000 to U+10FF).

Member Avatar for friendklay
0
204
Member Avatar for Clockowl

Hi guys, I tried rewriting my C-ish C++ function to true C++, but I'm failing so far: The first function (working) [code=cpp]const visualPart * entity::getVisualPart(unsigned int wantLOD){ for(unsigned int i = 0; i < visualEntity.size(); i++){ if(visualEntity[i]->LOD == wantLOD){ return visualEntity[i]; } } return NULL; }[/code] And the second (not …

Member Avatar for Clockowl
0
99
Member Avatar for flipjoebanana

Hello, I am trying to figure out how to use memory blocks and create a block of data that contains different data types within it. In my particular example I want a pointer to a memory block that contains a struct followed by an array of floats. This is what …

Member Avatar for Ancient Dragon
0
99
Member Avatar for dmpop

Hello, A complete Python newbie needs help. :-) I have a simple script that updates the 'note' field in a MySQL database table based on the record's id: [CODE]id=raw_input("Record id: ") update=raw_input("Note: ") cursor.execute ("UPDATE notes SET note='"+update+"' WHERE id='"+id+"'""") print "\nRecord has been updated."[/CODE] The problem with this solution …

Member Avatar for dmpop
0
170
Member Avatar for rameshpower007

Hi FOlks can any one share the code snippet of opening any format of microsoft office document in IE browser, on a click of a button Kindly do share the JSP and server side eventing too.. Thanks RK

Member Avatar for sciwizeh
0
283
Member Avatar for PsychicTide

Alright ran into a bit of a problem on the item count in my index... let me give you the layout I'm working with. I've got my index page with the header logo and navigation bar. This is followed by an Iframe. When I click the navigation buttons it changes …

Member Avatar for PsychicTide
0
193
Member Avatar for anshulagarwal

when i m using this code: its not complete code..assume everything is right... [code] for(int result=0;result<g;result++) { u1+=((a[result].real_z1*tw[result])/sumd); u2+=((a[result].imaginary_z1*tw[result])/sumd); u3+=((a[result].real_z2*tw[result])/sumd); u4+=((a[result].imaginary_z2*tw[result])/sumd); } cout<<"\n""Value of U1:"<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u1; cout<<"\n""Value of U2: "<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u2; cout<<"\n""Value of U3: "<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u3; cout<<"\n""Value of U4: "<<setiosflags(ios::scientific)<<setw(10)<<setprecision(8)<<u4; ofstream abc; abc.open("result.txt", ios::out | ios::ate); abc<<endl<<endl; abc<<"Data at position [ "<<i<<" , …

Member Avatar for ArkM
0
427
Member Avatar for krebstar

Hi guys, its me again.. I was wondering if anyone could tell me how to test a character if it is within the ASCII range, like say in the following pseudocode: [CODE] ifstream in; in.open("file.xxx", ios::binary); if(!in) { cerr << "file.xxx could not be opened. \n"; } while (!in.eof()) { …

Member Avatar for krebstar
0
6K
Member Avatar for TriZetBlu

My sports blog start page is very slow and I have tried to speed it up but everything I try stays the same. I know nothing about bandwidth or MYSQL or site mapping so I don't know if any of these would help. There is a lot of java script …

Member Avatar for peter_budo
0
187
Member Avatar for guravharsha

Hi; The below page validates the user. if the groupid of the user is null into the database,it forward the user to accessdenied.jsp page. The below code works fine without closing [B]rs[/B] If i had tried to close rs.close(); [B]it show the compile error: rs might not have been initialised[/B]. …

Member Avatar for peter_budo
0
179
Member Avatar for TheOneElectroni

Hi everyone, I'm feeling a little dizzy trying to place the root window of my Tkinter app on the screen. I followed [URL="http://www.daniweb.com/forums/thread66037.html"]mawe[/URL] advice and coded like this: [code=python] root = Tk() root.config(bg="white") w, h = root.winfo_screenwidth(), root.winfo_screenheight() root.geometry("%dx%d+0+0" % (w, h)) [/code] However the window gets placed wrongly and …

Member Avatar for TheOneElectroni
0
748
Member Avatar for sahdev86

hai...i neeed help on how to upload image to my web...and i want the image store in the database and later retrieve image from the database to the web....i want the image in thumnail form wen it is uploaded in the web....can anybody help me with in a simple php …

Member Avatar for sahdev86
0
75
Member Avatar for ndodi

Hi everyone it Eric (Ndodi). can someone pls help me , i want to disable the validation controls if other controls are activated and how to display the current date

Member Avatar for ndodi
0
108
Member Avatar for comondx

Please help me doing my homework. this homework done with C++ Data Structure. This is Questions: [URL="http://img520.imageshack.us/img520/4417/qqqq1gvq5.gif"]http://img520.imageshack.us/img520/4417/qqqq1gvq5.gif[/URL] [code]#include <iostream> #include <stdio> #include <assert> #include <string> #include "bt.h" class Calc { public: } ; int main() { bSearchTreeType<Calc> obj; string command; cout<<"I-Inputtheexpression"<<endl; cout<<"N-InorderTraversal"<<endl; cout<<"P-PreorderTraversal"<<endl; cout<<"O-PostorderTraversal"<<endl; cout<<"F-Numberofoperatorinthetree"<<endl; cout<<"E-Evaluatethetree"<<endl; cout<<"Q-Quit"<<endl; cin>>command; do { …

Member Avatar for Manutebecker
0
93
Member Avatar for eyecandydesign

Hi everyone, recently i have been recieving errors from my website like this WARNING: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to udp://194.68.45.50:0 (Failed to parse address &quot;194.68.45.50&quot;) occurred in [url]http://maniplantdoctor.com/readme.txt[/url] on line 441 on Thu Aug 7 13:40:49 CEST 2008 could anyone shed some light on what it means, and …

Member Avatar for eyecandydesign
0
333
Member Avatar for kavithabhaskar

FOLKS: I fill my data grid view with data and i try to color a few cells based on a condition but nothing seems to work..no errors either..can u pls help me >? [CODE]Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim con As OleDbConnection = New OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;data …

Member Avatar for peteratoce
0
283
Member Avatar for Kusno

Dear all, This code below is used to clear TextBox and dropdownlist control value [CODE]Public Sub ClearPage(ByVal Pg As Page, ByVal Form As String, Optional ByRef ClearCombo As Boolean = False) Dim Obj As Object For Each Obj In Pg.FindControl(Form).Controls If Obj.GetType().Name = "TextBox" Then Obj.Text = "" End If …

Member Avatar for greeny_1984
0
114

The End.