199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jepapel

I have the following code: #include <iostream> using namespace std; int main () { char alphabet[]="abcdefghijklmnopqrstuvwxyz"; char word; cout <<"Please input a word: " <<endl; cin >> word; int res = -1; for (int i = 0; alphabet != '\0'; i++) { if (alphabet == word) { res = i; …

Member Avatar for slumburock
0
4K
Member Avatar for techy23

I have no idea of 'game programming', but would love to learn it. i am a complete beginner, what ebooks or free resources would be best to lean it quickly and make a game after that? regards, techy.

Member Avatar for princysharma90
0
202
Member Avatar for nsteve

Hello friend, I have a registration form and a admin panel for that, In admin panel we can see the list of registered users. I can filter user details by search but i cannot export searched results to .xls or .csv format. kindly help me...!!! Thank you.

Member Avatar for gabrielcastillo
0
217
Member Avatar for amelia.rox

I am writing a program that calculates factorials. I have everything fixed except I can't seem to get case ('Y'), case ('y'), in the switch to start the program over. If you have another number you'd like to calculate then you say y and it starts the program back over …

Member Avatar for amelia.rox
0
156
Member Avatar for resmi sanker

can u give me some details regarding this paper?can u plz tell me what is a master defect record and feature association?

Member Avatar for rubberman
0
153
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { int n,i,p; printf("enter the no: "); scanf("%d",n); for(i=0;i<n;i++) { p=i*i if(p==n) { scanf("the square root of %d is %d",n,i); } } } its not working error at if(p==n)

Member Avatar for rubberman
0
374
Member Avatar for RobRob666

I had a nice set of useful preferences set up such as code coloring preferences. One day they were just gone. I had not installed anything or done anything to cause it -- to my knowledge. Now I’ve re-updated many of my Dreamweaver preferences. I would like to save / …

Member Avatar for RobRob666
0
207
Member Avatar for Sendy Hipo

hi guys, im learning c++ on my own and i have finished reading and studying E-book by Tony Gaddis ("starting out with c++, from control structures through objects, student value edition, 7th edition ") now im completely "lost" , i have searched google to see reference, but there are too …

Member Avatar for Sendy Hipo
0
143
Member Avatar for Travus

I am using the [jQuery validation](http://docs.jquery.com/Plugins/Validation) plug in on a website I am creating. The validation works, and the messages are set, however when they get displayed on my webpage they have line breaks. I only display one message at a time so I dont know why a single message …

Member Avatar for Travus
0
1K
Member Avatar for hughesadam_87

I'd like to make a dictionary subclass that takes in positional keywords in addition to the standard *args, **kwargs. I found this example on stackoverflow: class attrdict(dict): def __init__(self, *args, **kwargs): dict.__init__(self, *args, **kwargs) self.__dict__ = self a = attrdict(x=1, y=2) print a.x, a.y print a['x'] b.x, b.y = 1, …

Member Avatar for hughesadam_87
0
726
Member Avatar for ScottFountaine

I'm trying to add a space before and after a user input. I have the space after using strcat() but cant figure out how to put one before. Here is the snippet. void find_keyword() { int len=0; int lenkey=0; int key_no=0; char teststr[50]; while((ip.keyfound==0) && (key_no!=MAX_KEY)) { // getting the …

Member Avatar for ScottFountaine
0
130
Member Avatar for goody11

Hey guys. I'm trying to get an idea on how to code a certain table. The table has 6 cells: 3 columns and 2 rows. Each cell needs to be filled with information from a MySQL database. The columns are completely even. However, the second row is very uneven depending …

Member Avatar for diafol
0
356
Member Avatar for reyesg

hi i need to get a program done that reads a series of numbers and operations from a file using in order traversal to build a tree from the file data and evaluate the data in post order by traversing the tree while modifying a stack. here is what i …

Member Avatar for reyesg
0
115
Member Avatar for SolidSora

I've got a photo gallery button on my website. I've got one button that looks like a forward arrow, which works fine and a back arrow, which does nothing. Also clicking on the thumbnail to view a larger one works fine. Everything is fine except for the back arrow. Here …

Member Avatar for Helianthus
0
163
Member Avatar for rori

hi, i have this code to submit a login form: [CODE] <?php if(!isset($aid)){ ?> you must login:<br> <form name="form1" method="post" action="<?=$PHP_SELF?>"> <input type="text" name="aid"><br> <input type="password" name="apass><br> <input type="submit" name="submit" value=" Login "><br> </form> <?php } else{ ?> welcome etc... <?php } ?> [/CODE] this code was working fine until …

Member Avatar for joelbezerrapinho
0
263
Member Avatar for osiron

Hey Guys, I'm trying to create a timer program that is based on the MVC model and I'm having trouble with updating the views via `notify()` function as they should display the number of seconds or minutes and seconds elapsed. Could anyone help me with this problem? //KeyboardController.h class KeyboardController: …

Member Avatar for mrnutty
0
193
Member Avatar for gilgil2

Hi, it's my first time using captcha with PHP, I think I'm pretty close. I can get it echo everything is right or whatever when the fields are filled in correctly and correct words are entered, but what I can't do is make it run the script from another file …

Member Avatar for gilgil2
0
191
Member Avatar for Ghost

When using C++, how do you find the REMAINDER of two numbers and store it in an integer. I think the answer is: [B]X % Y = Int Z;[/B] :idea: Please help. Thanks :lol: , C++

Member Avatar for wangchung
0
961
Member Avatar for XodoX

I can nto find anything that explains semaphores well. From what I understand, you can create an array of the type sem_t , for instance. Like a "semaphore array", I guess. And you use loops somehow to create them. Or can somebody explain this to me, please? I'm trying to …

Member Avatar for XodoX
0
115
Member Avatar for laura301019

I have the following code that I'm trying to modify so that the speed of the ball will slowly increase over time. Never done any JavaScript coding for animations before so it is quite new to me so any help would be great thanks. <html> <head> <title>Interactive Game</title> <script language="JavaScript"> …

Member Avatar for rotten69
0
172
Member Avatar for ROSS679

Hi Everyone, I am currently practicing through the NorthWind Example in ASP.NET, when i debug i am greeted with the message "Could not find output table 'ViewCustomer'. Despite linking to the form in the try statement, am i missing something here? I am using a OleDb connection rather than SQL. …

Member Avatar for bill_kearns
0
128
Member Avatar for gurusubramaniam

I want to clear the session in a project. If i have opened an another project in the same browser, that session also cleared. How to clear the session without affecting the other projects?

Member Avatar for rotten69
0
130
Member Avatar for cguan_77

hi gurus, had tried to install apache and php. apache seems to run and work fine and no error displayed during startup. but when i tried to do some testing for the php file. like: http://localhost/test.php the whole php code is displayed not the expected output. i had already load …

Member Avatar for rotten69
0
135
Member Avatar for kejionnet
Member Avatar for 111100/11000

#include <iostream> #include <cmath> #include <string> #include <cstdlib> #include <cstring> using namespace std; char Outputing(char shifted_letter); int found_match; int searching_alphabet; int main() { const char ORIGINAL_alphabet[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; //maybe const isn't necesery char alphabet[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; cout << "This program encrypts messages using Ceaser Cipher\n"; cout << "\n---------------------------------------------------------"; cout << "\n---------------------------------------------------------"; cout << "\nEnter …

Member Avatar for Labdabeta
0
328
Member Avatar for godzab

I am just starting to load ajax. Whats supposed to happen is when you click on the submit button, the contents of a php file will be put in the paragraph. The problem is that it ouputs undefined. Here is the code: ajax.php <html> <head> <title>Welcome to our ajax page</title> …

Member Avatar for godzab
0
135
Member Avatar for imobby

I need to highlight the current key pressed in my C# application. To get the keyboard keys code during keyDown and keyUp events i tried returning the keycodes as protected override void OnKeyDown(KeyEventArgs keyEvent) { // Gets the key code lblKeyCode.Text = "KeyCode: " + keyEvent.KeyCode.ToString(); } Other way i …

Member Avatar for mvxg
0
285
Member Avatar for hughesadam_87

Hi, I think I have a pretty simple question but my google searches are giving me more information than I need. I think my terminology is not clear. Let's say I'm making a dictionary to hold a datatype very specific to some filetype or data of interest. Let's say I …

Member Avatar for hughesadam_87
0
441
Member Avatar for skran

I try to filter my datagridview with a datetimepicker. When the datetime value is just date (eg.15/5/2010) everything work fine. But when there is also date and time value occurs conversion problem "conversion failed when converting date and/or time from character string". Iused also combobox populated with the dattime values …

Member Avatar for G_Waddell
0
558
Member Avatar for rhm532005

hi every one i'm writing a program in vb.net in visualstudio i want to know how can i update my database by using dataadapter dataset dataconnection and command builder can you give me an example thank you

Member Avatar for M.Waqas Aslam
0
97
Member Avatar for m.zheee

how do i create a trigger to display the columns of the record after it is inserted into the table. how do integrate php and mysql to do so?

Member Avatar for pritaeas
0
124
Member Avatar for m.tompkinsnz

Hey Guys, I'm working on a practice Project at the moment where I'm recalling user information from a database, placing it into a form with several textBoxes, comboBoxes, etc and then proceeding to update the information in the database when the user clicks save. I understand this is simple, however …

Member Avatar for M.Waqas Aslam
0
273
Member Avatar for joshmac

Ok, so I finally was able to convert my framework to the PSR-0 standards, but now I am getting errors in the sample application that I have not been getting before. I am not sure why, so I need a fresh pair of eyes. Any help is greatly appreciated. The …

Member Avatar for joshmac
0
215
Member Avatar for stevanity

Hey guys. Im designing a web app with rails for storing and analysing college students' marks. Ive come up with a database design like this: ![First](/attachments/large/3/First.png "First") Now IM not sure how to set the associations. Can you please help me? And is the design ok?

Member Avatar for stevanity
0
115
Member Avatar for DeeperShade

Ok, basically i'm putting together a win32 wrapper based on various tutorials I've seen. But when I try to close it via the close buttong (top right) or via the esacpe button it doesn't do anything, with the first it closes the window but doesn't end the program, with the …

Member Avatar for DeeperShade
0
138
Member Avatar for muhd.ardany1

hello..i got a probem here.. You see that i have been given a task that is to make group of 4 people. The data i had received were 79 names including their ID, gender and races.... There are condition need to be satisfy that are in a group there should …

Member Avatar for pritaeas
0
140
Member Avatar for arunod
Member Avatar for vishalonne

Hi I am trying to validate a form with different type of message for different error, but you can see [Click Here](http://cbsecsnip.in/csnip/form.php) the problem. Please guide me in solving this problem... Partial Code of form.php- <!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"> …

Member Avatar for Taywin
0
239
Member Avatar for shehnaz1991

hi i have a form which has 5 textboxes i want to add the values of all this 5 text boxes and place the result in total text box automatically how do i do this pls giv me some code

Member Avatar for Taywin
0
100
Member Avatar for collinsislee

OK here is my code to print all prime numbers less than 100 and also print the first 36 numbers in the fibonacci series. I want to change it so that the fibonacci prints 9 numbers per line and the prime numbers print in 5 per line. Im new to …

Member Avatar for JamesCherrill
0
368
Member Avatar for Helianthus

Hi all, I have a new website that has a portfolio page. Currently, the code is such: <input type="image" src="_images/01.png" id="01" alt="" onclick="document.getElementById('outputDiv').innerHTML = '<section class=gallery><img src=_images/img01.jpg>' + '<p>Image name - by Photographer</p></section>';" /> This seems extremely cumbersome and is impractical for a site that could have many images on …

Member Avatar for Taywin
0
491
Member Avatar for 47pirates

HOw can i convert the String "2012-07-30" to Date object with same format 2012-07-30 which is date not a string. I've tried but i get the result in string. plz help

Member Avatar for Taywin
0
191
Member Avatar for rithish

in java we use import javax.swing when we want to use frame and panel we write like this class frame extends jframe but in c++ we use <iostream.h> and <conio.h> where we use cin and cout from these libraray functions but we dont inherit anything .we use normally we dont …

Member Avatar for Taywin
0
151
Member Avatar for manticmadman

I am a fledgling at best when it comes to programing. I am trying to acclimate myself with Python's date and time functions. Below is a program I wrote to calculate the Sun rise and set times for a given lat, long. What I am hoping to find out is …

Member Avatar for hughesadam_87
0
376
Member Avatar for abbelylee

I want to be able to read data from a csv file (comma seperated,tab seperated or space seperated) and pass the data into an array.my intentions are to combine four classes. such as a class for the data model,file reader, driver and textui. i can handle the textui and the …

Member Avatar for NormR1
0
156
Member Avatar for libathos

i am having difficulties to have my android app running in the emulator to connect to servers in my local network. i am getting a java.net.UnknownHostException but the servers are resolvable fine from the machine where the emulator is run. thanks for any help on this topic!

Member Avatar for libathos
0
407
Member Avatar for triumphost

How can I compare Dimensional arrays using iterators? My attempt is below but I gave up and used indexing instead. I plan to change comparing doubles with == to use epsilon later. Also should I be using vector of vectors? //In my class, Data is defined as std::vector<std::vector<double>> Data; bool …

Member Avatar for deceptikon
0
187
Member Avatar for ashuag

Getting error "OleDBException was Unhandled: No value given for one or more required parameters" while submitting the insert query through VB.Net. Below is the sample code I am using: custid = txtcusid.Text custname = txtcustname.Text age = txtage.Text gender = cmbgender.SelectedItem.ToString phno = txtcontact.Text custadd = txtadd.Text comm.CommandText = "INSERT …

Member Avatar for Reverend Jim
0
119
Member Avatar for miramiey

Hi, I try to open vb6 file to visual basic 2008 but have a problem during a converting. here's the error that appear, ![26-7-2012_11-44-11_AM](/attachments/large/3/26-7-2012_11-44-11_AM.jpg "26-7-2012_11-44-11_AM") Can anyone please help me to fix this error. Thank you in advance.

Member Avatar for AndreRet
0
311
Member Avatar for Israelsimba

Im running an accounting package using crystal reports. all my fields are coming from the table except the totals. the problem is i have a running total where the **total income**-**the total expenditure = net income** for each month. the problem is that the opening balance is supposed to be …

Member Avatar for AndreRet
0
291

The End.