199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kromletch

I am working on a C++ program that wants me to read in 52 unsorted states. All the states have randomly Capitalized letters.The objective is to sort the states in alphabetical order by the last letter of the state. Case sensitivity is the least of my problems but i am …

Member Avatar for Fbody
0
272
Member Avatar for kadriirdak

Hi There, I do have an sql query to update and insert row into database which I use it within a form. Problem is ; This sql query works good in one form but in other one it does not at all(same query different form), looks like it is blocked …

Member Avatar for AndreRet
0
121
Member Avatar for Barca

Hi, I know this is asking for much and I'm being lazy but I have an ASCII text file with multiple rows of text. each row contains the name of the city followed by a ">" and then the countries name. I wanted to know if its possible to have …

Member Avatar for Barca
0
159
Member Avatar for patrick772goh

I am using Visual C++ 2003, Previously i am using this to call test.dll stored in the root directory folder name root1 and in the sub folder root2 [code]HINSTANCE result = NULL; result = LoadLibrary(L"..\\root1\\root2\\test.dll");[/code] It work fine in normal OS. When i run in Win XP regional language setting …

Member Avatar for Mr.What
0
392
Member Avatar for mldardy

I have a dropdown list on aspx page that is using a data source select command to pull from a database. The don't any data in the dropdown when I preview the page. I need help on what I am doing wrong. Here is my code for the dropdown list …

Member Avatar for MichaelWClark
0
135
Member Avatar for NathanMc

Hello. I'm currently working on a C++ assignment where I need to calculate a student's GPA from a text file containing 4 grades and the corresponding credit values for the class. I know how to write the program to get the correct GPA, but I am having problems figuring out …

Member Avatar for NathanMc
0
320
Member Avatar for Sandhya212

Hi, My requirement is to identify '-' in string1 and delete those corresponding locations in string2. The logic I am implementing is that 1. find the locations in string1 where '-' occurs 2. At these locations, insert spaces in string2 and then 3. have string2 without spaces. I managed to …

Member Avatar for TrustyTony
0
127
Member Avatar for akmalhisyam

I have question, why when I don't put the "inFile.ignore()" line, the program doesnt work. What is the thing that the line ignore? [code=c]while(1){ inFile.getline(name,50); inFile>>ass1>>ass2>>ass3; inFile.ignore(); if(inFile.eof()) break; cout<<name<<" "<<ass1<<" "<<ass2<<" "<<ass3<<endl; }[/code] here is the content of the input file : akmal 3 2 1 akmal hisyam 1 …

Member Avatar for akmalhisyam
0
3K
Member Avatar for BonaDrag

I have this code that works fine: [code=c] protected void ButtonImgTextToDB_Click(object sender, EventArgs e) { string ID = TextBoxStartPictID.Text; string Rubrik = TextBoxHeadLineStart.Text; string Text = TextBoxTextStart.Text; SqlConnection conn = new SqlConnection(config); conn.Open(); string sql = "UPDATE StartImage SET Headline ='" + Rubrik + "', Text ='" + Text + …

Member Avatar for BonaDrag
0
149
Member Avatar for mulevad

I have an IIS7.5 server installed on my laptop. I'm learning C#, XML, XSLT, .NET, Visual Studio 2005, 2008, 2010 and Microsoft Expression Web. I am the webmaster on a simple PHP website that I inherited. I figure I ought to learn PHP, but figure I also need to install …

Member Avatar for mulevad
0
140
Member Avatar for cjay175

What I would like to do is have 2 buttons to submit a single form. One button is to save the form for editing later the other is to process it. With... [CODE]$("#saveform_ns").click(function(){ $('form#form_main').attr({action:"http://path/to/save.php"}); $('form#form_main').submit(); })[/CODE] I can get the submit button to work and the above button to work. …

Member Avatar for cjay175
0
637
Member Avatar for qazplm114477

Is there a particular reason as to why some people use .inc and some just use plain .php for include files? Does actually do anything performance wise or does it just make it easier to distinguish between files?

Member Avatar for digital-ether
0
110
Member Avatar for romkas

Hello! I have problem! So, first of all I have page wich consist of 3 pages. In first page I press Button "Start" it will create empty record in my DB, in Page 2 is Form where I need to fill data and when I press Button "Next" it will …

Member Avatar for MichaelWClark
0
139
Member Avatar for kez1985

Hi I recently started using python for work and was tasked with creating a mailer script for one of our linux servers. I found a number of good examples on the web for different mailer app implementations and eventually came to the code below. Can anyone advise me on good …

Member Avatar for TrustyTony
0
195
Member Avatar for NicAx64

This program will use arc-consistency to remove the invalid values from the variable domain and generate the permutations for the 8 queen problem. Here is the source code with the make file. chessboard.h [code] #include <iostream> // uses std::cout std::cin #include <stdlib.h> #include <stdio.h> // uses exit(0) and fprintf #include …

Member Avatar for Ancient Dragon
0
654
Member Avatar for N1GHTS

What do you guys think is a good way to deal with this situation: [code] #define TYPE_INT 0 // 4 byte, signed #define TYPE_CHAR 1 // 1 byte, signed #define TYPE_UINT 2 // 4 byte, unsigned #define TYPE_FLOAT 3 // 4 byte, signed, floating point typedef struct { float Value; …

Member Avatar for N1GHTS
0
111
Member Avatar for bobjohnson

I have to write a C++ program that: Declares and defines a class called “bankAccount

Member Avatar for roshaero
0
240
Member Avatar for Sarama2030

how is c++ a graphical user interface programming language, i mean how does all the code fit in to develop window based applications.

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for fire_

Hello. Can someone tell me how can i add string to combo box? i tried [CODE]GetDlgItem(IDC_COMBO1)->Items->Add("Text"); [/CODE] but it didn't worked. and everything that i could find on google didn't helped :( so i'm asking you pros ;)

Member Avatar for Ancient Dragon
0
117
Member Avatar for broli100

Hello, I want to do classic "save as" function, how you know it from all programs, but I have a problem - when I put constant pathname in fopen function , like "file.txt" ,it works. But when I type a variable char[], it does nothing. Then I looked for function …

Member Avatar for broli100
0
225
Member Avatar for MichaelWClark

I have a master page with an update panel wrapping up the content template. In one of my pages I have a grid view that is residing in a Div that utilizes the overflow method to produce scroll bars. I need to be able to retain the scroll position through …

Member Avatar for MichaelWClark
0
588
Member Avatar for neoraghav

Hi, i accidentally given input as character for a integer variable.....then the program went crazy and just flooded the console..... so, is there any way to handle this exception......and how to achieve that thank you

Member Avatar for neoraghav
0
153
Member Avatar for Klaurac

Hello I've got this Videorental code. The flow: 1. Another user wants to rent a video. 2. Hes Videorental creates a new Video object with a Rent object, which sets he the renter and the other user the owner of the Video. The User object has Videorental object, it has …

Member Avatar for Klaurac
0
102
Member Avatar for harris21

i have a XML file containing data, i want to parse it in c. can you help me out in parsing.

Member Avatar for N1GHTS
0
2K
Member Avatar for Traicey

Hi All Im not sure if this is possible but here is the thing I have thankyou.html page that should be opened in the lightbox when a submit button is clicked and the email is sent, I have a contact.php that send an email to the person with the details …

Member Avatar for diafol
0
111
Member Avatar for kadriirdak

Hi There I do have a form and a little sql query to update the row before do something else. Problem is in the code below works when I enter the date like that= 01-02-2001 but I need to do it dynamic I know getdate() but it does not work.. …

Member Avatar for kadriirdak
0
156
Member Avatar for abdull110

Please if you can sketch a paper and scan it for me with the solution... ABC County Basketball Conference (ACBC) is an amateur basketball association. ACBC has contacted you to create a database that will meet the expected data requirements for its basketball game management program. The ACBC administrator gives …

Member Avatar for Ezzaral
0
156
Member Avatar for BzzBee

hello, I had a fckeditor at my php page, i want to put some data in fck editor when user click a button. How can i do that using javascript. Please help

Member Avatar for dennishall
0
420
Member Avatar for xsnake7

hi, how can i use the result of a function without having it repeated ? like in the code down there i have to use the result of the function [B]get_sides()[/B] in all of the other functions..but the way i coded it down there will make me enter the values …

Member Avatar for xsnake7
0
247
Member Avatar for dennishall

Hi: I have a process allowing the admin to view users information and download files that the user uploaded to MySQL. When the admin clicks on the file link in the admin page, I expect the file will display using the default program (i.e. pdf or txt), or download (i.e. …

Member Avatar for dennishall
0
151
Member Avatar for tomtetlaw

Can someone give me an example of how to use the ToAscii functions to convers windows virtual key codes to ascii characters? I've tried to search on google, but I can't find an example..

Member Avatar for Ancient Dragon
0
198
Member Avatar for neoraghav

Hi, i want to konw how to create and use thread in c++[vc++ 6.0], what all are the header files needed, can anyone please write a simple code for that...... can anyone please refer to some links where i can get good hold of c++ threads

Member Avatar for Ancient Dragon
0
287
Member Avatar for PeterX

Hi! I want to learn C language. my question is: how dose this while loop wok. [code] while((c=getChar()) !=EOF) if(c>'0' && c<'9') nbr++; [/code] How EOF(end of file ) works? EOF=-1; How can I stop the program? when I write (-1) I can not stop the program.

Member Avatar for N1GHTS
0
258
Member Avatar for gpsmith1

I have a Perl parsing problem. I have to find a keyvalue for a KEYWORD KEYNAME. I have a file containing KEYWORD KEYNAME on a line followed by keyvalue on a subsequent line An added problem is that the file allows perl & shell type comments using # – e.g. …

Member Avatar for d5e5
0
110
Member Avatar for s2xi

Hey guys, I was making a form that is um... quite large and all inputs consist of the form looking like [CODE]<input type="text" id="first_name" name="first_name" />[/CODE] so instead of having to do [CODE]$first_name = $_POST['first_name'];[/CODE] and so on for every input, is there a way to grab every 'name' or …

Member Avatar for SolidSolutions
0
153
Member Avatar for MichaelWClark

I recently discovered the power of Linq To SQL and decided to implement it into a control that I am working on right now. So far it is making life much easier but I have ran into a small stumbling block here and need the experts assistance. I have a …

Member Avatar for MichaelWClark
0
121
Member Avatar for myk45

i needed to write a simple program to demonstrate the CRC mechanism in Networks. i needed a string of bools to be XORed with the polynomial. Well, i used <bitset> but that did not help much. So i just used a bool vector. This is how i proceeded. Here, when …

Member Avatar for myk45
0
138
Member Avatar for dennishall

Hi All: I have been working very hard and long at understanding this situation. I have tried many different sample scripts, to check my work and find find my solution. I have created a job board for a client, the user applies for a job in application form.php which then …

Member Avatar for dennishall
0
351
Member Avatar for falconwise

I am getting the following errors. ../MergeSort.c:32: error: expected expression before ‘]’ token ../MergeSort.c:33: error: expected expression before ‘]’ token [CODE]void mergesortinplace (int start, int length, int array[]){ if (length >= 2){ mergesortinplace(0, (length/2), array[]); /*GETTING ERROR HERE*/ mergesortinplace((length - (length/2)), length, array[]); /*AND HERE*/ } if (length >= 1){ …

Member Avatar for falconwise
0
222
Member Avatar for koduruabhinav

Hi, I have two files and each consists of modules and in turn modules consists of some verilog data and instances.i have to search for module name in the two files and comapare the contents of the modules in the two files. i have code it does module search,extract the …

Member Avatar for koduruabhinav
0
236
Member Avatar for cmcpart0422

Hey I'm new to the site but I'm taking a class that will probably have me here often asking stupid questions. One of my homework problems is create a python program using a while loop to answer the 100 fowl problem. The 100 fowl problem is a farmer sold 100 …

Member Avatar for cmcpart0422
0
111
Member Avatar for tomtetlaw

What is the windows api virtual keycode for the ` key(the one next to the 1 key), i can't seem to find it anywhere on google or msdn.

Member Avatar for N1GHTS
0
91
Member Avatar for hally

I'm taking a database class and I am struggling with the basics right now. First of all, I need to know the difference between physical and logical data independence. I have the definitions but it's really not making a lot of sense to me. This is what I have: Logical …

Member Avatar for AndreRet
0
156
Member Avatar for mpc123

I have a news feature on a website and have a page that shows all of the news and a link to the actual page of each individual news. On first page that lists all the news i would like to limit the amount of Characters that is echoed from …

Member Avatar for P0lT10n
0
152
Member Avatar for julianmoors

Hello, I am building a search filter, but I don't have much experience using AJAX. What I want to do is select a subject from an initial list then return a list of tutors which I have already done. Then I would like to return a list of centres, year, …

Member Avatar for P0lT10n
0
634
Member Avatar for Sandhya212

Dear all. I have a file with lines like this.[CODE] query 210 ACTTGGACTC 219 query 311 ACTTGGACTC 320 ....[/CODE] From every line, I need to extract the number coming right after 'query' and then the DNA sequence. I currently read each line as a list but was only able to …

Member Avatar for Sandhya212
0
179
Member Avatar for mrbungle

I guess I have two questions (Visual Basic 2010)- When I run my compiled project, it creates a start menu folder and desktop icon. But there's nothing in the Program Files of my OS. Is it because my project is still small- or something else? Shouldn't it create a folder …

Member Avatar for AndreRet
0
110
Member Avatar for shaikh_mshariq

I have written some code to fetch details from database according to the given id. I am using ajax to help the ui. I can see the responseText in alert box but when i use it as reponseXML than it doesnt give me any child node my server side and …

Member Avatar for gecata83
0
153
Member Avatar for iceman101

Hi could some one please help me with code for vb6. I have started on a calculator for profit but a error "Overflow" keeps coming up here's the code im usin dim number as integer number1 = label1.caption number= val(label2.caption) label3.caption = number Pls help!!!!!!!!!!!!!!! thanks iceman:rolleyes:

Member Avatar for AndreRet
0
112
Member Avatar for MDanz

i'm having trouble getting this to work. i want mysql to delete a row where the word 'example' is within a paragraph of a column. e.g. in the column reply.. it has a paragraph with the word 'example' in it. [code]$deletebadreply1= mysql_query("DELETE FROM `Reply` WHERE `reply` LIKE '%example%'") or die …

Member Avatar for AndreRet
0
151

The End.