199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for henry.nc

Hi all, This code block is making sure the user is entering the correct character, either y/n. char response; cout<<"\nDo you want to continue? (y/n): "; cin>>response; cout<<endl; while(response != 'y' || response != 'n') { if (response == 'y' || response == 'n') break; cout<<response<<" is an invalid input. …

Member Avatar for henry.nc
0
78
Member Avatar for nullified

Hi, I want to open a text file and read the data then sort it via date. i found some stuff already that helps but im new to this and if anyone point me in the right direction it would be very appreciated. this sample app here [URL="http://www.c-sharpcorner.com/UploadFile/mmehta/OpeningandViewingTextandImageFiles12082005060630AM/OpeningandViewingTextandImageFiles.aspx"]http://www.c-sharpcorner.com/UploadFile/mmehta/OpeningandViewingTextandImageFiles12082005060630AM/OpeningandViewingTextandImageFiles.aspx[/URL] opens the …

Member Avatar for _r0ckbaer
0
332
Member Avatar for m_saahil

Hi all I need urgent help to complete my project I am unable to update my sql database.I have to update the database using textbox value as primary key and the other tools are textbox,dropdownlist and calender which i have used I am doin project on ASP.NET using vb.net so …

Member Avatar for adamm84
0
126
Member Avatar for jonathan.jbkt

I have a site that I host for a client that is having problems with the apostrophes in the text it draws from the database. Here is a [URL="http://askpriscilla.com/pages/ask_news.php"]link[/URL] to the live site that is having the issue. I think it has to do with the addslashes php function but …

Member Avatar for somedude3488
0
258
Member Avatar for tralfas

I have ubuntu installed on my computer upstairs and gtkmm works just fine on it but i cant figure out how to get it to work on windows. I was wondering first if there was a clearer tutorial than then the one on the gtkmm site. I downloaded [URL="http://gladewin32.sourceforge.net/"]Glade/Gtk+ for …

Member Avatar for Salem
0
193
Member Avatar for fcaserio

I can't find any DTS tool on MSSQL 2005 Express Edition Is there any tool that execute DTS tasks? I need to perform 2 tasks: - import a large Access file into MSSQL - deploy database to production environment Any help is welcome. []s

Member Avatar for hollystyles
0
121
Member Avatar for teppuus

Hello, I am having problem with my do...while loop. It asks for student identifier twice before proceeding. I tried moving the "do" after the program prompts the user for his choice of id, but I couldn't get the loop to terminate after that. Any tips will be appreciated. Thank you! …

Member Avatar for Salem
0
132
Member Avatar for Drew06

I can't seem to figure out the syntax error on this one, it says the error is at the end of the input.... #include <stdio.h> #include <math.h> int determine(int); void main(void) { int num1, even, odd; printf("Enter a number: "); scanf("%d", &num1); printf("The number is: %d", determine(num1)); scanf("%d", &num1); getchar(); …

Member Avatar for Drew06
0
76
Member Avatar for kpssivam

Hello all, how to remove a selected row in Java swing(JTable). If any one knows this please help me...

Member Avatar for jwenting
0
63
Member Avatar for teppuus

Ok, I know you aren't suppose to (or can't) do comparions on arrays such as, if (x < y), when both x and y are single dimensional arrays. But what about if you have a string and want to compare one element in that string. For example, I am trying …

Member Avatar for teppuus
0
111
Member Avatar for kclif9

[B]I am tring to print a list in vb 5 does anyone have a code for it using printer.print[/B] Thanks

Member Avatar for choudhuryshouvi
0
93
Member Avatar for JoBe

Hello ladies and gents, It's been ages since I posted here, have been doing some coding on and of and I was wondering about the following, beneath is a test I made in trying to use the new operator in combination with a string, first a string literal, second time …

Member Avatar for JoBe
0
4K
Member Avatar for Nokuphila

I need help, im creating a job scheduler which must show the accurate date and time of completion for every order placed .My problem starts when i have to get the date of the last order placed fom the database and i must use the same date to subtact the …

Member Avatar for Nokuphila
0
91
Member Avatar for jobs

[code=python] s1 ='999' s2 = '99.99' mypat = re.compile('(^([0-9]+[.]+[0-9]+)|([0-9])$)') rate= mypat.search(s1) print rate.group() >>> print rate.groups() ('9', None, '9') >>> rate=mypat.search(s2) >>> print rate.group() 99.99 [/code] I need to get price = float(rate.group()). Price=999 or Price=99.99. I think there is a problem when s1='999', when I do this: [code=python] >>> …

Member Avatar for ghostdog74
0
108
Member Avatar for axn

i know how to create a dictionary but how do i search for a pattern in a file and then create a dictionary based on the search

Member Avatar for ghostdog74
0
119
Member Avatar for Sudarshan_Kanna

[B]input xml file[/B] <ARS> <tag1>one</tag1> <tag2>two</tag2> <tag3>three<AltError Code=123 Description=456789/></tag3> <tag4>four</tag4> <ARS> <ARS> <tag1>ABCD</tag1> <tag2>ABCD</tag2> <tag3>ddsdsds<AltError Code=123 Description=456789/></tag3> <tag4>EFGH<AltError Code=abc Description=defg/></tag4> <ARS> Expected Output: tag1|tag2|tag3|tag4|code|Description one|two|three|four|123|456789 ABCD|ABCD|ddsdsds|123|456789 ABCD|ABCD|ddsdsds|abc|defg The script should read this file and create a pipe delimited file. Each ARS tag record in the XML file should create one …

Member Avatar for ghostdog74
0
151
Member Avatar for jhen

we have a project in C# we dont know the other codes of C# pls help us

Member Avatar for Ramy Mahrous
0
93
Member Avatar for mairaj

which php local server is good ,how to download free php local server plz suggest me link so that i m use it locally in my system ,

Member Avatar for ryan_vietnow
0
353
Member Avatar for NicAuf

Ok so my first thread got deleted, due to spam. However, I still need help with my program. So here's my program description. [B]Electronic submission: You are to electronically submit your assignment through Moodle at clasess.cs.siue.edu. Objectives: Loops and decisions. Problem Description Write a program to simulate a game of …

Member Avatar for teppuus
0
120
Member Avatar for The Midnighter

Okay, so I'm trying to write my own little version of Tic-Tac-Toe - and YES, I did use the search function and I saw the billions of threads involving Tictac toe. HOWEVER, I am not looking for code written for me already, I don't want to be lazy I want …

Member Avatar for hollystyles
0
111
Member Avatar for winky

Hey guys, First time poster here.:) Just started my C++ career and am working with pointers/arrays at them moment. I was wondering why I cannot take a user input ('n') to create the size of the array "y". Can anyone show me why this syntax is wrong? Thanks for the …

Member Avatar for hinduengg
0
268
Member Avatar for locsin

Greetings! I want to change the button message in visual basic 6.0. It is possible to edit the button message. Like vbokonly button display "OK", i want to reply this "OK" with my own word. Anybody have idea to replace it. Thankyou in advance

Member Avatar for debasisdas
0
73
Member Avatar for royaloba

hello every one.. good day... first i was able find the solution in this site on how to open the textfile and save it to the database, i'm using mysql as my database...thanks to sir "jomet" ;) . now what i want to do is, i want to open a …

Member Avatar for christophertheo
0
203
Member Avatar for darkie_99

Hi My skill for javascript is very poor. But, I had a task to do for the project I am currenlty doing. I first searched you site, and saw some people asking about something similar to what I have. But, I didnt know understand the answers posted since Im not …

Member Avatar for darkie_99
0
298
Member Avatar for mattarov

OK, as you can probably tell from my code, I am trying to design a program that will keep requesting a password until the right password is entered (using a Do While Loop with char instead of int). this is my code: (this is one of my first solo pieces …

Member Avatar for Salem
0
83
Member Avatar for vimalfor5

:) hi all. Please help me .... Currently im working wid a bank project in .net....... !!! so please reply me wid .. the basic thing that are needed for developing a project like that. please reply me .... !!! give me sugestions ... regarding the different acount types how …

Member Avatar for vimalfor5
0
177
Member Avatar for vimalfor5

:) hi all, please help me... perhps im using djgpp for my cpp projects ... i cannt able to use the dos.h functions such as the delay(); if anybdy knw about how to use it please reply me ...!!!

Member Avatar for vimalfor5
0
119
Member Avatar for BABSYOMMY

I need to a have a CHAT WINDOW in my business website. Please how can I achieve this?

Member Avatar for ~s.o.s~
0
112
Member Avatar for onsir

hi all, how to detect program is running in my computer. etc: i have open my program application name is myProgApp, in computer jhon, so if i open again the program that in computer jhon will show message 'file already open' . thanks, for your help.

Member Avatar for ~s.o.s~
0
200
Member Avatar for mairaj

how i m putting java script in my blog which is in xml ,my java script code is like <script type="text/javascript"> </script> <script language=JavaScript> --------------- ------------------- some code ------------------- </script> in between which tag i m puting this code my blog is in blooger.com and the code is for mouse …

Member Avatar for ~s.o.s~
0
211
Member Avatar for alsoumhi

How are you guys, I need your help in java could someone know how to change from character to string what I mean is that let's say I have a variable x with char type and it has a value a. so how I can change that value (a) from …

Member Avatar for eranga262154
0
188
Member Avatar for faranak

hi i have created one UI application using c#. i want to use PageDown Keys for navigate between rows, but when i press PageDown keys datagridview select last row. How can i do this? thanks in advance my code: private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.PageDown) …

Member Avatar for JerryShaw
0
224
Member Avatar for ziz_300

in the function "deal", I want to call the function "add", but it doesn't work .... any suggestions? [code] #include "DeckOfCards.h" int DeckOfCards::deal() { int y,z; int y1,y2; char x1,x2; char cards[13]={'A','2','3','4','5','6','7','8','9','0','J','Q','K'}; char deck [260] ; for (int i=0; i< 260; i++) deck[i] = cards [i % 13]; y = …

Member Avatar for WaltP
0
88
Member Avatar for ixenocidei

hi, 've been working on a game that worked over the internet using Sockets, but the program doesn't seem to work with Servers behind routers, is there any way around this? I tried using the router's IP with port forwarding but it didn't quite work. Any tips are appreciated.

Member Avatar for ixenocidei
0
78
Member Avatar for Duki

Could somone give me a hint as to why my division by 0 check doesn't work? [code]istream & operator >> ( istream & is , Rational & r ) { char x ; is >> r.num >> x >> r.den ; if ( r.den == '0' ) { cout << …

Member Avatar for Duki
0
149
Member Avatar for annagraphicart

Okay, So i'm close to finishing up my program. I just need a few more things. By the way, all of you are AMAZINGLY great. I appreciate all the help. Alright... My program outputs Names, their Bowling scores, and How many points they have received (the points still need to …

Member Avatar for Dave Sinkula
0
106
Member Avatar for curt22

How do I get the text out of a listview in report style into an array? I want it to be something like this: [[item1],[subitem1]],[[item1],[subitem1]],[[item1],[subitem1]], Here is some of my code: [CODE] hWndListView = CreateWindowEx( 0L, WC_LISTVIEW, "", WS_VISIBLE | WS_CHILD | LVS_REPORT, 0, 21, 340, 190, hWnd, (HMENU) ID_LISTVIEW, …

Member Avatar for curt22
0
112
Member Avatar for annagraphicart

Can I get my output in my program to be sent to another program like Wordpad or Microsoft word?

Member Avatar for annagraphicart
0
137
Member Avatar for vn_utami

hii,I'm a new programer.. and now I have a homework. And I stuck with this,, This homework about find 100 first number.. I have one solution but,this solution is using syntax goto().. and the problem is my homework is restricted using syntax goto()..this my first solution #include<conio.h> #include<stdio.h> #include<stdlib> main() …

Member Avatar for Killer_Typo
0
137
Member Avatar for Mickomitiku

hello everybody I am here to get some help abt developing timer with VB,meaning a countdown timer to remind me sth. after some time, tx in advance

Member Avatar for plusplus
0
70
Member Avatar for annagraphicart

Take a look at the "points" section. It says that i haven't declared the string name for "scores"... but scores is an int name not a string. Whats going on? #include <iostream> #include <string> using namespace std; int main() { const int MAX=4; std::string names1[4] = {"Anna" , "Jenny", "George" …

Member Avatar for annagraphicart
0
88
Member Avatar for riham

how can calculate the memory address of lower triangular array such this one : 20 7 5 60 8 0 10 0 0 0 0 0 ineed just the formula 2calculate just the upper traingular and cancel the zero i tried 2use svd ( singal value decomposition) but i really …

Member Avatar for iamthwee
0
133
Member Avatar for maheshmohan

explain me about programming in exception handling and threading and synchronization

Member Avatar for orko
0
103
Member Avatar for alapick

I’m working on a project that includes comparing XML files and I need a source code on Java to compare XML fragments. I’m using ExamXML from [url]http://www.a7soft.com[/url] to compare XML files but I need the Java source code.

Member Avatar for orko
0
590
Member Avatar for jjt

I was wondering is there any algorithm, method, concept, idea for "Reverse Calculation"? Basically I provide an output/Answer , and 1 or more inputs, then it will result the math formula/pattern. For example 1: I provide, Dynamic Output: 30; I provide, Dynamic Input Value A: 2 I provide, Dynamic Input …

Member Avatar for iamthwee
0
175
Member Avatar for kaarthikvr

hi i m going to start a new project centre for that i need java latest project titles for develop any body have means kindly help me.

Member Avatar for orko
0
76
Member Avatar for aruna_k_2006

hi ,i want to print e.printStackTrace in File using log 4j but its giving error ........ these r my files web1.xml [COLOR=green]<[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR]driverName[COLOR=green]</[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR]com.microsoft.jdbc.sqlserver.SQLServerDriver[COLOR=green]</[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR]log4j1[COLOR=green]</[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR]WEB-INF/classes/log4j.properties[COLOR=green]</[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] MyListener.java [B][COLOR=green]public[/COLOR][/B][B][COLOR=green]class[/COLOR][/B][COLOR=green] MyListener [/COLOR][B][COLOR=green]implements[/COLOR][/B][COLOR=green] ServletContextListener{[/COLOR] Connection [COLOR=green]con[/COLOR]; [B][COLOR=green]public[/COLOR][/B] [B][COLOR=green]void[/COLOR][/B] contextInitialized(ServletContextEvent sce) { [B][COLOR=green]try[/COLOR][/B]{ ServletContext sctx=sce.getServletContext(); String log1=sctx.getInitParameter([COLOR=green]"log4j1"[/COLOR]); sctx.setAttribute([COLOR=green]"log1"[/COLOR],log1); } [B][COLOR=green]catch[/COLOR][/B][COLOR=green](SQLException e)[/COLOR] …

Member Avatar for orko
0
111
Member Avatar for Bmarkusrowe

I'm pretty new to the python programming and I am currently trying to create a factorial function which I have, but now I an trying to get it to list the positive integer n as input and then computes and outputs, in separate lines, 1!, 2!, 3!, ..., (n-1)!, n! …

Member Avatar for bumsfeld
0
75
Member Avatar for ivatanako

[code] System.out.println("Enter new name: "); String stdName = input.readLine(); st.executeUpdate("UPDATE Customers SET stud_name='"+stdName+"' WHERE stud_ID='45698'"); [/code] Ok, this is my problem, this command should update\replace the existing column stud_name with a new name. But it wasn't able to replace it. There were no sql errors. Did I miss anything? Or …

Member Avatar for jwenting
0
722
Member Avatar for jhen

The End.