199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for poloblue

Good Afternoon, I 'm new to C++ programming, and I have to do a program that deals with nested loops. Can anyone please check the code that I have for PART C and PART D of the program. Here is the code of the program. #include <iostream> #include <fstream> #include …

Member Avatar for TrustyTony
0
213
Member Avatar for poloblue

Good Afternoon, I want to convert this if-else statement to a switch statement. The if-statement is: int x; cout<<"GIve me an int and I tell you whether is even of odd "; cin>>x; if (x%2==0) cout<<x<<" is even."<<endl; else cout<<x<<" is odd."<<endl;

Member Avatar for poloblue
0
103
Member Avatar for Rimmi90

I have listbox in c#form in one corner and right corner is blank till i select from listbox. So the problem is If i click outside the listbox it gives null exception error. How can i check if user is not clicking outside the listbox.

Member Avatar for Majestics
0
105
Member Avatar for Midgard

Hi Guys/Gals- ...not sure exactly how to approach this problem.... Basically, a user on our site will be presented with an option and they have a two-hour window to respond--a db record is tagged when the countdown starts. If they do respond, all is well. If they don't, a script …

Member Avatar for cereal
0
148
Member Avatar for msd153

import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.InputSource; import org.xml.sax.SAXException; //import com.edankert.SimpleErrorHandler; public abstract class Wellformed extends DocumentBuilder { public static void main(String[] args) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(false); factory.setNamespaceAware(true); DocumentBuilder builder = factory.newDocumentBuilder(); builder.setErrorHandler(new SimpleErrorHandler()); builder.parse(new InputSource("contacts.xml")); } catch (ParserConfigurationException e) { e.printStackTrace(); } …

Member Avatar for NormR1
0
203
Member Avatar for klemme

Hi all, I am updating the position og pages, which I get dynimacally from the DB. It is d possible via the backend, for the admin of the site, to decide which position a page should have, when updating or creating a new page for the site. I let the …

Member Avatar for diafol
0
169
Member Avatar for mogaka

consider code below: //Consider the php part(process.php) <table border="1"> <thead> <tr> <th>Name</th> <th>Language</th> </tr> </thead> <tbody> <?php foreach($_POST['names'] as $k=>$v){ ?> <tr> <td><?php echo $v; ?></td> <td><?php echo $_POST['languages'][$k]; ?></td> </tr> <?php } ?> </tbody> </table> //html part**``** <HTML> <HEAD> <TITLE> Add/Remove dynamic rows in HTML table </TITLE> <script type="text/javascript" …

Member Avatar for Squidge
0
104
Member Avatar for bufospro

Hi all, I would like to make program reading 300 lines form a file with 24 columns. the 24th column has an integer from 1 to 24, while the others columns are strings. I want to summarize in seperate files this (last) column For example, assdsd, sdsds, asdasda, asda ,asdad, …

Member Avatar for TrustyTony
0
181
Member Avatar for Rimmi90

public string generateInvoiceNo(string PRODUCTNAME) { try { if (con.State != ConnectionState.Open) { con.Open(); string number; OleDbDataAdapter DA1 = new OleDbDataAdapter("SELECT MAX(SUBSTR(INVOICE_NO,9,5)+1) AS MAXINVOICE FROM PRODUCT_DETAILS", con); DataTable DT1 = new DataTable(); DA1.Fill(DT1); if (DT1.Rows.Count > 0) { number = DT1.Rows[0]["MAXINVOICE"].ToString(); } else { number = "00001"; } OleDbCommand cmd2 = …

Member Avatar for Mitja Bonca
0
246
Member Avatar for scobi
Member Avatar for skat123

Getting the following error while running the website script Parse error: parse error, expecting `';'' in F:\xampp 1.7.1\xampp\htdocs\engine\includes\functions.php on line 23 Please help to solve this. Here is the coding of functions.php from line 1 till end function paging( $frontUrl, $backUrl, $currentPage, $rowsPerPage, $allRows ) { global $langArray; if ( …

0
102
Member Avatar for poloblue

Good Afternoon, I'm having problems with this assignment that deals with loops that implements the continue statement. Can someone check the loops that I have implemented on Part B and Part C that must have the continue statement. Here is the code #include <iostream> #include <fstream> #include <string> #include <cstring> …

Member Avatar for mcriscolo
0
153
Member Avatar for progra_learner

Hi i'm new to android development.So i have comeup with a simple dictionary application.It should connects with sqlite database and show the meaning of an english word, when button clicks.The user enter the relevant word into a Edittext field and click the translate button.Then it should show the meaning on …

Member Avatar for kvprajapati
0
120
Member Avatar for Gata_Salvaje

It's my first time to use oracle and i'm kinda lost :S I'm using netbeans v6.8 and i want to make a connection between Oracle 10g DB and java to make my program insert and retrieve data from the db - i tried searching for oracle's libraries to include it …

Member Avatar for Gata_Salvaje
0
186
Member Avatar for Rob2012

Hi Sir, I am trying to collect some data from a php site. However this particular php page has transformed $POST data(to a special timestamp data that I can't replicate) with its own function(setReport() in below code) and sent to its server. So in order to get this data, enter …

Member Avatar for Rob2012
0
1K
Member Avatar for anoojmutt

I am having trouble creating a program that finds the maximum number out of an input set of numbers. Any help?

Member Avatar for samsylvestertty
0
115
Member Avatar for shaanmugavel

I have completed my project with front-end as vb.net 2008 and back-end as SQL server 2005. I have to backup and restore my project in the following extensions: 1. .bak 2. .xls 3. .mdb Please tell me how can i store the backup project in my own path.

Member Avatar for samsylvestertty
0
204
Member Avatar for Goomba79

Hello, I have got a dropdown box that is displaying data from a table in my database. when i select an item in the list i want to change the text in a label to what has been selected in the list. this is the code I am using to …

Member Avatar for Goomba79
0
314
Member Avatar for dancks

So, I'm using allegro game programming library. Before I move on to bigger and better things I wnat to get a handle on pointers. Specifically with things like structs, linked lists and maybe binary trees in the future. I posted a program that uses a linked list to keep tracks …

Member Avatar for dancks
0
310
Member Avatar for poloblue

Good Afternoon, The program that I'm doing with function doesn't want to run, the error that pops out is: 'std::basic_istream<_Elem,_Traits> std::operator >><std::char_traits<char>>(std::basic_istream<_Elem,_Traits> &,signed char *)' Here is the code and header file that I have so far: CPP FILE #include <iostream> #include <fstream> #include <string> #include <cstring> #include <cmath> #include …

Member Avatar for poloblue
0
506
Member Avatar for ShaggyDogg

I would apprecaite any assistance with this task.. SourceForm.aspx contains a databound gridview which I have added a checkbox column for multiple row selection. OnClick of a button I want to display any selected rows on another page, Target.aspx So far I have successfully captured textbox input properites using PostBackUrl …

Member Avatar for kvprajapati
0
921
Member Avatar for GlenRogers

Im writing some software for a friends Pc repair shop, simple booking in software so he has a record of customers, addresses and repairs they have had done. I'm getting throught it quite well thanks to members of this forum. Question is: I have a Customer class with attributes String …

Member Avatar for GlenRogers
0
161
Member Avatar for Maj.Clac
Member Avatar for debasisdas
0
153
Member Avatar for pktnewbie

I know this question has been asked many of times about how to create a search button. I am very new to C# programming and I am having a hard time creating a search and just haven't found what I am looking for from other posts. So I hope someone …

Member Avatar for Mike Askew
0
2K
Member Avatar for Aleroth

Hi there, I have a Country/City list in my SQL database and access it with PHP using a select element in php. I use the Chosen Jquery Plugin for the styling of these select elements. Now my problem is that i want only the cities of the country selected to …

0
137
Member Avatar for devianleong

Hi, I'm facing a problem which is can't total up all the subtotal amount. Everytime I add a new product to cart, the total only show the last product that I added into cart. Not only that, when I update the quantity of other product, the total still remain the …

Member Avatar for Szabi Zsoldos
0
208
Member Avatar for PurpleHeaven

Hello, I used a plugin from CSS-Tricks.com which is located here: http://css-tricks.com/downloads/ It's an Infogrid Accordion. It's working very well, but I'm having problems with the position of the columns. At first, all of them are in the middle, but when I clicked a column, all the others will stack …

0
175
Member Avatar for johnef_sh

Hay everybody, I have this Form I am trying to upload my image but every time I do "update" the page return normal and nothing uploded to my folder "ProfilesImages" where is my fault. if(isset($_POST['update'])){ $ProfileImage = $_FILES['ProfileImage']['name']; $Fname = clean_text($_POST['Fname']); $Lname = clean_text($_POST['Lname']); $Uemail = $_POST['Remail']; $Uwebsite = $_POST['website']; …

Member Avatar for blocblue
0
101
Member Avatar for Goomba79

Hello, I have got an image at the top of my page, in the div logindisplay container. in design view it looks alright but when i preview it in the browser it doesn't! how do i get it to display correctly? I am really new to asp.net so I imagine …

Member Avatar for Goomba79
0
105
Member Avatar for IS_student

Hello people; I am implementing an application in vb.net about a library management system, when I add new record to the database and then close and reopen the application, the record is not there! I googled the issue and used the text book of this course but nothing beneficial. :( …

Member Avatar for IS_student
0
161
Member Avatar for Leodumbi

Hello Gents I have a small problem and hope someone ca help me. I wrote a small code to generate auto-increment number and save it to the database. the problems is that whrn it reaches 10, it stops incrementing hereis the code Dim Separ As String() = fullString.Split("-") Dim StrPart …

Member Avatar for Leodumbi
0
153
Member Avatar for dwinn

Hi everyone, In a nutshell...I have developed a site in ASP.Net and VB.Net which allows a user to create an order and submit it to a SQL Server backend database. When the order is placed...an xml file is also produced, showing the items that have been ordered...which is then loaded …

Member Avatar for dwinn
0
2K
Member Avatar for nuevoenjava

Hi guys, I have a dropdownlist binded to a sqldatasource and the result set contains about 394,000 serial no. This is making the page crash and i cannot mess with the table architecture. I would like to know if trhere is a way to limit the results and then retrieving …

Member Avatar for kvprajapati
0
109
Member Avatar for ganges

hi have a nice time, guys can you provide me a complete list of orcle queries (SQL / PLSQL)

Member Avatar for debasisdas
0
126
Member Avatar for BadManSam

I want to create a grey login bar at the top of my page but I don't know how to make one please could someone help. The code that I want in the login bar is <table> <tr><td> <?php if($session->logged_in){ echo "Welcome <b>$session->username</b>, you are logged in. <br><br>" ."[<a href=\"userinfo.php?user=$session->username\">My …

Member Avatar for code739
0
152
Member Avatar for c_parse

Hello all, I am trying to parse a text file that has the following format: 3 1:3,60,3 2:6,70,1 3:3,50,3 I am supposed to take the first line "3", and allocate memory for the 3 lines after it. Then I want to skip the first line, and start parsing and tokenizing …

Member Avatar for Schol-R-LEA
0
216
Member Avatar for auto_1

I'm new to python, so kindly bare with me my query is that how can we get the static strings from the dialog boxes of windows and paste those strings to a notepad or a clipboard file. e.g. if a take the Run Dialog box of Windows all the Strings …

Member Avatar for TrustyTony
0
223
Member Avatar for triumphost

This works fine. For any type I create (Example): BoxArray& operator -= (const Box& B); BoxArray& operator -= (const BoxArray& BA); BUT when it comes to my literal types like char's and strings and char*'s, I get Ambiguous overloads: StringArray& operator -= (const std::string& S); StringArray& operator -= (const StringArray& …

Member Avatar for triumphost
0
139
Member Avatar for Subless

I would like to create a custom algorithm for encrypting and decrypting strings of data. I want the algorithm to allow two parameters: 1. Custom salt string for the algorithm to use to create custom encrypted strings of the data. 2. The data to be encrypted / decrypted. I don't …

Member Avatar for diafol
0
286
Member Avatar for wschamps42

Hello I am new to C and was wondering if someone could just please explain to me what this function does? Thats all I just need help understanding it. I'm new to C so some one the syntax is tough for me to understand and Im not sure what the …

Member Avatar for TrustyTony
0
132
Member Avatar for benikens

Hi, I'm currently trying to learn WinSock coding from http://johnnie.jerrata.com/winsocktutorial/ however when I compile my listening socket, I get 9 'error LNK2019: unresolved external symbol' errors. They all look to be the same function names that are used in the code prefixed with an underscore after the function name it …

Member Avatar for benikens
0
298
Member Avatar for sigit_p

hello,.. i have problem with my script, my goals to display image from my query result. i created picture database contain id, name & link (data contain link to picture folder localhost/nseries/A2-1C1-1B.png) on my query display i created dynamic link to picture but when i click the link nothing show …

Member Avatar for sigit_p
0
216
Member Avatar for devianleong

Hi, I'm facing a problem which is can't total up all the subtotal amount. Everytime I add a new product to cart, the total only show the last product that I added into cart. Not only that, when I update the quantity of other product, the total still remain the …

Member Avatar for devianleong
0
1K
Member Avatar for M.Waqas Aslam

hello ! this is my code , i am writing a text file form the datagrid, but this code is very slow , please check it out and give me some advice how i can make my code fast , If IO.File.Exists("C:\Customers.txt") = False Then IO.File.Create("C:\Customers.txt") End If Dim FILE_NAME …

Member Avatar for M.Waqas Aslam
0
192
Member Avatar for addlebrains

Hi there. I've just written an extremely simple cross-platform wrapper for posix threads. I compiled it on unix and it compiles with no errors. The windows side... not so pretty. I'm using MinGW. gcc compiles fine but throws a couple of warnings at me (I'll explain in a bit.) g++ …

Member Avatar for ThoraxImpailor
0
231
Member Avatar for abathurst

Hi, I'm trying to upload multiple image to folder and insert the image information into a database. I have been successful in being able to upload the images to the folder (thanks to a tutorial online) but when I try to add the code to insert the image information to …

Member Avatar for abathurst
0
223
Member Avatar for hwoarang69

table user->user_id, username, etc image->image_id, user_id, image, etc i am making a delete image page where user can del there image. i want to some how test image is the user who is loged in. 1st check user is loged in if(isset($_SESSION['username'])) 2nd check user hit sumbit button if($_SERVER['REQUEST_METHOD'] == …

Member Avatar for hwoarang69
0
134
Member Avatar for richcc88

Hi all, I am using the below code to control the attributes of a jQuery slider on a website I am building. I need to make the following function change based on window size/re-size to make the slider resize and be responsive. Bit of a newbie when it comes to …

Member Avatar for diafol
0
223
Member Avatar for kace91

Hello to everyone! This is my first post here, I hope you can help me. I'm making a class work in python and I'm a little lost: I have to use classes to represent monomials and polynomials, and the classes should contain methods to add, substract, multiply and divide them. …

Member Avatar for TrustyTony
0
2K
Member Avatar for fatzky_04

How do you guys manage your time with a very limited time in designing their desired system?

Member Avatar for mike_2000_17
0
120

The End.