64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for anu123d

Hello all! I am trying to write a program in C , which works as an efficient Login function. It is expected to have following properties: 1.Should accept the username( valid usernames are : '11user1', '12user2' & '13user3' ). The usernames are hardcoded in the program and not stored in …

Member Avatar for anu123d
0
11K
Member Avatar for SoulMazer

For reference, I am using Python 3.0. So, I have a small script I am working on trying to improve. I am now trying to create it with only dictionaries and loops. My problem is that I keep getting a Key Error at one of my lines. The line with …

Member Avatar for SoulMazer
0
161
Member Avatar for sonakrish

hi all... Am a beginner in c#. wen i place a control in a webpage and double click it i'm getting it's default event. how can i view its other events and how to include in my coding. Thanks in advance.

Member Avatar for sonakrish
0
116
Member Avatar for FrancisC07

i am using an two dimensional arrays... and i inputed five names on it.. anyone can help me on how to output the five names?? i dont need the whole program.. i just need the code... thnx... ^_^

Member Avatar for Agni
0
104
Member Avatar for Ole Raptor

I have a Stored Procedure that is called through VB6 for a report. The Reports were working great until yesterday. Now all of the reports that use that sp are timing out. The default time is set to 60. I have adjusted this to 1000 and the report finally displays. …

Member Avatar for Ole Raptor
0
169
Member Avatar for DemonGal711

I'm working on this program for a new professor and he wants us to write out what are program is going to do before we work on it. So, I've been thinking about the program and I think I'm making it more complicated. Basically, I'm going to be given permutations …

Member Avatar for DemonGal711
0
124
Member Avatar for kenji

Hi, Im having some trouble with the function and I hope some one can help. The function is supposed to go through an class array and loop for an empty spot. If it finds one its copies data to the data members. Otherwise it creates a temporary array and copies …

Member Avatar for StuXYZ
0
285
Member Avatar for Coyboss

Hello everybody, I know what I want to do with the code, but I am not sure where exaclty to put the "if" statements. I am working on a weekly payroll program and I need to put in an if statement so it throws an error if the weekly hours …

Member Avatar for Coyboss
0
274
Member Avatar for orwell84

I'm getting into bash shell scripting with Ubuntu 8.10, and the tutorial I'm using is telling me to open the file .bash_profile which is allegedly in the home directory. However, I cannot find this file, except in /usr/share/doc/adduser/examples/adduser.local.config.examples/skel and it's called "dot.bash_profile". Plus, the whole thing is just comments. The …

Member Avatar for Aia
0
207
Member Avatar for jober

here the code, [code=php]<?php $a = $_GET['Cors']; $b = $_GET['sem']; $c = $_GET['yrlvl']; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO sked (crs,sm,yrlvl) values ('".$a."','".$b."','".$c."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php the listbox is "sem", tnx[/code]

Member Avatar for diafol
0
183
Member Avatar for wheatontrue

Hello - my Python 2.5 IDLE used to start up, but now it won't. I tried looking at the preferences - those don't have any glaring mistakes. When I try to start it command line I get the following error: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. …

Member Avatar for wheatontrue
0
320
Member Avatar for squirell

Hi, This is my first post on this forum. Apologies in advance if this isn' the right place or there isn't enough info. I'm basically trying to retreive an ID from a quesry string... xyz/nuts.aspx?nuttype=7 What I'm having trouble with is defining the variable and referencing the querystring in the …

Member Avatar for squirell
0
94
Member Avatar for rock9449

[code=cplusplus] #include <iostream> using namespace std; int main () { int choice,num1,num2,answer; cout<<"This is a caculator program which will do math for you\n"; cout<<"Please Choose From one of 4 math operators\n"; cout<<"1 +\n"; cout<<"2 *\n"; cout<<"3 -\n"; cout<<"4 \\n"; cin>>choice; if (choice==1) { cout<<"please enter in two numbers to add" …

Member Avatar for shasha821110
0
94
Member Avatar for samtan

Was wondering about Null pointers , do they really point to location zero in memory and does that location got all the bits zero. Does this mean a NULL pointer points to itself? [CODE] Node<Type> *A = 0; A = Find_Node(Position-1)->R_Link; [/CODE] I have this code , where "Find_Node" function …

Member Avatar for samtan
0
116
Member Avatar for starzstar

Hi, I am new to Python and have a requirement to develop a simple requirement to design a login screen, and then a screen which will have two parts in it one will show local files and other files on server I am planning to use tkinter for this is …

Member Avatar for jlm699
0
115
Member Avatar for leegeorg07

hi again i have been looking at the bacon cipher and i have made this [ICODE]import re dictionaryofcodes = {'A': '11111', 'B': '11110', 'C': '11101', 'D': '11100', 'E': '110111', 'F': '11010', 'G': '11001', 'H': '11000', 'I': '10111', 'J': '10110', 'K': '10101', 'L': '10100', 'M': '10011', 'N': '10010', 'O': '10001', 'P': …

Member Avatar for leegeorg07
0
125
Member Avatar for Gribouillis

What do you think would be the best way to write this structure [code=python] if testA: actionA() if testB: actionB() if textC: actionC() else: actionDefault() else: actionDefault() else: actionDefault() [/code] if I want to write only one call to actionDefault() ?

Member Avatar for Gribouillis
0
139
Member Avatar for daviddoria

I put together this little example to test my sanity, and it failed! [code] #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> using namespace std; /* Example.txt 23 test 4.5 */ int main(int argc, char *argv[]) { string Filename = argv[1]; cout << "Filename: " << Filename << …

Member Avatar for Freaky_Chris
0
780
Member Avatar for isotope

Hi everybody, I'm trying to read a Microsoft Word file, exported as microsoft xml, with PHP and simple_xml but I can't figure out how to do it exactly. Only things I managed to do are: [CODE] $tempXml = simplexml_load_file(file.xml); $xml = $tempXml->asXML(); print $xml; [/CODE] If I print before the …

Member Avatar for isotope
0
174
Member Avatar for mjsmikey

I have been trying to process some text about 10000 lines to upwards of 26000 lines of text. I wrote a program to search for text strings and copy the lines around them if they are found. It searches Line by Line. I need to improve this code speed so …

Member Avatar for mjsmikey
0
268
Member Avatar for AdRock

I have an inheritance heirarchy and I need to use polymorphism. I have some questions because i don't really understand it fully. What i have to do is create a vector of pointers (account) to 2 of my derived class objects, SavingsAccount and CheckingAccount. Then for each account in my …

Member Avatar for AdRock
0
2K
Member Avatar for harryoma

hi, i have one question: does anybody know how to end program. i have one function in whom i calculate two numbers. i want to end program if my number is to big for example 12345 + 91111=103456 but i don't want that my has 6 digits so i want …

Member Avatar for harryoma
0
195
Member Avatar for brothertse2008

Im having trouble with my internet linking. I have a picture boc named [I][B]picq[/B][/I] that i want the user to be able to click to take them to a web page. i tried the following: picq.picture =(url) im new to this so bear with me

Member Avatar for brothertse2008
0
192
Member Avatar for slimjimmer

I'm having a bit of trouble with this random number generation function. It's going to be part of a much larger program which requires lots of random numbers so I decided to use time as a seed. However I can't seem to get this to work. This code is virtually …

Member Avatar for slimjimmer
0
179
Member Avatar for khalidmehmood

Hi Experts! I am trying to build dynamic hyperlinks but i cant do this. i am new to JSP. please guide me. here is my code: [code=JSP]<% try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM contacts"); while (rs.next()) { %> <a href="viewdata.jsp?value1="+<%rs.getString(1)%>+">"+<%out.println(rs.getString(1));%></a> <%} …

Member Avatar for peter_budo
0
2K
Member Avatar for serkan sendur

is there any performance benefit of using constant pointer to constant variable like the following? [CODE]void doSome(const int * const param) { //do something ; }[/CODE] i know that making param constant is good for performance, how about making both constant?

Member Avatar for skatamatic
0
69
Member Avatar for jober

++++Here is my code in to call the records from the list box that must be display in the datagrid. [code=php]<?php $a = $_GET[$query1]; $b = $_GET[$query2]; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO try (section,grp) values ('".$a."','".$b."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php // …

0
84
Member Avatar for gilmarP

Good day! Im trying to unit test my current project(the code behind) but I can't manipulate the controls inside the content page. Say I want to put some text inside the textbox, where textbox is inside the content page. I tried the accessor but failed, example: MyClass_Accessor acc = new …

Member Avatar for gilmarP
0
91
Member Avatar for txwebdesign

I'm looking for C# based, asp.net code (either with or without ajax extensions), that will allow me to load full size images (from thumbnails) into a "template" or aspx page that I will have focused advertising embedded. I know I have to create the thumbs gallery page and the ad …

Member Avatar for txwebdesign
0
170
Member Avatar for kevinchkin

Hi Guys, I was wondering if you guys could please give me some good project ideas. Projects should be real world problems related and should be of the level of a Masters Student (latter is not that important). Please let me know if you guys have any great project ideas.

Member Avatar for skatamatic
0
108
Member Avatar for eitan

hello everyone =) can someone help me please to solve somthing..? I have difficulties in my calculator program. I am using the 2005/2008 edition of vb express. I created a calculator with only one textbox, and i can't figure it out how to insert 2 values and make the arithmetic …

Member Avatar for eitan
0
295
Member Avatar for Aue
Member Avatar for serkan sendur

to make the programs more efficient, do i need to free variables which are declared locally in the functions? Are they not disposed when the function ends?

Member Avatar for Narue
0
104
Member Avatar for majesticmanish

Hi all, I have little problem when reading a file char by char and when i tried to make a check at the end of file. I am making a check through '\n' but its not working. Please have a look in the following Program and let me know yours …

Member Avatar for majesticmanish
0
170
Member Avatar for neoseeker191

I am doing a homework assignment in which we have to get an undetermained amount of numbers from the user. I was wondering how to tell when the user is done entering numbers and wants to exit the loop, such as perhaps a blank space or a word like 'quit'. …

Member Avatar for neoseeker191
0
245
Member Avatar for shazzy99

Can anyone help me out with the code. I'm getting the Null Reference Object Exception at the following line textFile1_Paras[paraNumber] = line; I'm trying to separate paragraphs from a text file into string array [code] int paraNumber = 0; string[] lines = File.ReadAllLines(filePath1); foreach (string line in lines) { while …

Member Avatar for shazzy99
0
114
Member Avatar for dreamer14

Is It possible? Tried this but all i see is blank haha [code] while (rs.next()) { String c=rs.getString("ProductID"); String d=rs.getString("ProductName"); String e=rs.getString ("ProductImage"); out.print("<option value="+c+"><img border=0 src=\"picture/" + e + "\" width = \"170\" height=\"157\"></option>"); } [/code] ANy one with recommendations on how to make a picutre based drop down …

Member Avatar for dreamer14
0
161
Member Avatar for cppnewb

I am having trouble using cin.getline and classes. Here is the code[CODE] #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <fstream> using namespace std; class RememberPlans { public: string date; string subject; string resources; string description; }; RememberPlans nds; // Function Prototypes bool enterPlans(RememberPlans& nds); void exportData(RememberPlans& nds); void …

Member Avatar for cppnewb
0
414
Member Avatar for rapture

Hi all, I'm researching how to move data from a C#.Net web program into our accounting MAS90 database and back. I can do this manually, what I want to attempt to figure out is how to make the system do it without me having to hit a button. I'm hearing …

Member Avatar for rapture
0
165
Member Avatar for Apollo64

I am some-what new to programming in python, and i'm trying to make a game but I need to know some of theses thing. Sprites I have sprites created, but how do I import them and print them on the screen? Movement I am completely clueless on how to make …

Member Avatar for jlm699
0
112
Member Avatar for CasTex

Hello coders, I have a script that saves the values to database. I have this value [CODE]$uzuncuk = $cummle." is easy to use. We suggest you to install ".$cummle." to your computer and view the features of the product. For your safety, please have a decent antivirus installed, with updated …

Member Avatar for CasTex
0
107
Member Avatar for Modo

hi guys how r u doing .. i am trying something in java .. i want to know if there is a way to the java looks into the current year. i want to be to return the age of someone after filling in his birth year .. and then …

Member Avatar for Modo
0
137
Member Avatar for d0pedup

I'm from a C background and need help with the following lines of code [CODE] struct IGame { // Summary // Entry function used to initialize a new IGame of a GameMod // Parameters // pGameFramework - a pointer to the game framework, from which a pointer of ISystem can …

Member Avatar for d0pedup
0
195
Member Avatar for lifeworks

Hi Im creating a list of tutorials on my website and I want to group them by the designer. Is it possible, to write a MySQL query which will function on a PHP website which prints the designer name once and then lists all of his tutorials underneath... in one …

Member Avatar for lifeworks
0
119
Member Avatar for khr2003

I am not sure where to post this topic but I though this section is the right one. I have a large amount of data in a MS word file. Basically, I want to automate the posting of this data into my website through the normal form of posting topics …

Member Avatar for khr2003
0
115
Member Avatar for java2000

Im trying to make a counter that tells how many times a name appears with array. I am using a scanner that read the names from a file and stores it an array. It then uses random class to pick a random name. I then stored all the names that …

Member Avatar for java2000
0
175
Member Avatar for smartness

Hi people... I have phpVideoSearch script, and want to add a feature, that if someone a specified page, to add to mysql a +1 value... Example this is the page: [CODE]watch.php?title=Riz+Khan&link=http://www.youtube.com/v/[B]xE0wOa5R6KY[/B][/CODE] i've set a code to create a id for this video like: [B]yt_xE0wOa5R6KY[/B] Can someone help me create a …

Member Avatar for mwasif
0
194
Member Avatar for maddogsprofiles

Can someone help me with this database, code bellow [CODE]-- -- Table structure for table `bapps` -- CREATE TABLE `bapps` ( `bappID` int(11) NOT NULL auto_increment, `bappFROM` int(11) NOT NULL default '0', `bappBUSINESS` int(11) NOT NULL default '0', `bappTEXT` varchar(255) NOT NULL default '', PRIMARY KEY (`bappID`) ) ENGINE=MyISAM AUTO_INCREMENT=51 …

Member Avatar for maddogsprofiles
0
215
Member Avatar for Elmo_loves_you

Hello Everyone :S I am rather new to ASP.NET. I have an SQL Server 2005 database set up. So far its quite basic with just two tables (UsersLogin, Roles). My aim is to allow users of different ranks to login to the system ie. Admin, Staff etc. [B]UsersLogin [/B] table …

Member Avatar for salaam_taher
0
163
Member Avatar for impactdesign

I am trying to create a personality test using javascript and I need help writing a javascript that calculates 4 columns of 12 rows. Each column will have it own total. So column 1 = total 1, column 2 = total 2 and so on. What I would like to …

Member Avatar for essential
0
127

The End.