64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Mazille

Hi I'm a python beginner! I'm trying to make a list of 3 numbers per line but I get an error. =( Here's my code: [CODE=python]list2 = [23, 764, 12, 54, 83, 2, 543, 890, 1235, 453, 98] k = 0 while list2[k] != -1: first = str(list2[k]) k = …

Member Avatar for Mazille
0
1K
Member Avatar for QuantNeeds

Is it possible to store * and # in an array? I thought I could do this through the data type char. On top of that I was wondering if I could check the array elements to see if the element equaled that character, but I don't think that's possible. …

Member Avatar for QuantNeeds
0
76
Member Avatar for reniies

Hi all, I've developed a vb.net application for a desktop digital clock and deployed it. I made the application start at windows startup and it's working fine. But the taskbar button for the application is there in the taskbar every time the windows login. Please help me to modify the …

Member Avatar for reniies
0
267
Member Avatar for ferzan

Hello, I'm embarrassed for asking this question but for the life of me I cannot find an answer. This ultra simple code is giving this error as well as any other function that I'm trying to write. [CODE]a function-definition is not allowed here before '{' token expected `,' or `;' …

Member Avatar for ferzan
0
145
Member Avatar for Besherek

Hi folks, I have a small Paging problem, was wondering if anyone could help me out with. I have a blog that I need to page after a set number of blogs. The Next and Previous links work fine and so does the Page number Nav. However, my page number …

Member Avatar for Besherek
0
343
Member Avatar for Kavitha Butchi

Hello All, I have this strange problem .. I am using require function twice in a single program to call two different programs.Each one of them has their own database connections. The page doesnot execute completely untill I hit refresh.:-/ It works as if those functions are executing one-after-the-other while …

Member Avatar for Kavitha Butchi
0
144
Member Avatar for HLA91

Hey all I recently picked up the book "Java the first semester". It uses the EasyIn class to get user input. I have downloaded the file EasyIn.java but I dont know how to make the class accessible from my programs. [QUOTE]As long as the EasyIn class is accessible you can …

Member Avatar for peter_budo
0
186
Member Avatar for scru

Take a look at this page: [url]http://tejerodgers.com/[/url] and type four or more characters in the search box on the right. My problem is the div box that pops up. I'm only getting the behavior I want with Firefox. in Opera and in IE the page widens to fit it. What …

Member Avatar for scru
0
100
Member Avatar for gregorynoob

a mouse is trapped in a labyrinth.. and he has to find the cheese! the input is W and H (height and width), and a graph like this one: [CODE] ##...# C###.. ...... .####. .....M [/CODE] i'm supposed to calculate the shortest amount of steps he needs to make to …

Member Avatar for gregorynoob
0
189
Member Avatar for Clockowl

Hey guys, I come over from C, wanting to learn C++. I have a nice little book but figured I could use a project to get me going. So I magicly crafted code, and ran into this problem: [icode]C:\Code\Rapture\World.h|7|error: ISO C++ forbids declaration of `Breeture' with no type|[/icode] With this …

Member Avatar for Clockowl
0
173
Member Avatar for Shadow14l

I am using this function to download files: [code=python]def download(url): urllib.urlretrieve(url, url.split("/")[-1])[/code] I am downloading files from a site, but I don't know the EXACT filename... All I know is the id for them... Example: download("http://site.com/files/489411/") When i am to do that, it automatically resolves the appropriate filename and it …

0
85
Member Avatar for adaykin

Hello, whenever I try to call this function, web developer plugin for firefox gives me a message that says: "Error: addRow is not defined Source File: [url]http://localhost/xampp/Aptana/index.php[/url] Line: 1" Here is my code: [CODE] <script type="text/javascript"> var k = 7; function addRow() { var rowItem = document.createElement('input'); newRow.setAttribute('type', 'text'); newRow.setAttribute('name', …

Member Avatar for adaykin
0
126
Member Avatar for camthalion95

Menu.RC [CODE]POPUP "File" } MENUITEM "New", CM_NEW MENUITEM SEPERATOR MENUITEM "Save", CM_SAVE MENUITEM "Save As", CM_SAVEAS MENUITEM SEPERATOR MENUITEM "Exit", CM_EXIT { }[/CODE] I have another file with the definitions to CM_NEW, Etc.

Member Avatar for camthalion95
0
194
Member Avatar for triadR

hi all, i've a problem in converting struct into short here's the code i'm using, but it's still error while i'm running it. [CODE] typedef struct ip_header; unsigned short *temp; memcpy(temp, &ip_header, sizeof(ip_header)); [/CODE] any help will be greatly appreciated. thx.

Member Avatar for jephthah
0
223
Member Avatar for 1andyw

My isp web server is separated into ‘www’, which parses php, html, etc; and ‘private’ which does not parse. What are the practical limitations of placing files in the private section. I am setting up a content management system for off campus work. Anyone know of a decent tutorial or …

Member Avatar for alphaseinor
0
169
Member Avatar for enim213

here's what i already have, whenever i click a specified letter like for example 'A' it must print out and count how many countries starting with that letter. The problem is whenever the count is greater than the specified limit, when i clicked to page 2, it shows also countries …

Member Avatar for enim213
0
106
Member Avatar for titaniumdecoy

I have a template function as follows: template <typename T> int my_func(T& arg) T is expected to be of type map<T1, T2>. T1 is expected to be of a basic type (int, long, etc.) and T2 is expected to be of type vector<T1>/list<T1>/etc. I want to iterate over the contents …

Member Avatar for vijayan121
0
115
Member Avatar for Luckychap

Hi python guys, I just started to dig in Python. I am new to this. I came close to Python when I got a project to be done with Django. I got stuck when I was fetching data from database(mysql). the data was fetched in variable 'rows' which have Id, …

Member Avatar for Luckychap
0
146
Member Avatar for kvdd

I am following some exercises in Delphi in a Nutshell from Ray Lischner. Very easy to follow and readable. He was explaining how units are working the following code: [code=pascal] program Units1_1; uses UnitA; {$AppType Console} begin WriteLn('Units 1_1 main program'); end. unit UnitA; interface uses UnitB; implementation initialisation WriteLn('UnitA …

Member Avatar for kvdd
0
148
Member Avatar for TeCNoYoTTa

hello all i dont know what is the problem ....... a very simple change in the order of functions make the program goes in infinite loop this code works will [CODE=cpp]#include <iostream> using namespace std; int main() { int i; while(true) { cout << "\nEnter Intger:"; cin >> i; if …

Member Avatar for Narue
0
770
Member Avatar for bob82

Is there a place where we can evaluate our jsp page code is in accordance with the sun "jsp coding standards"?

Member Avatar for peter_budo
0
65
Member Avatar for titaniumdecoy

If I declare a struct node, is the following legal in C++? [icode]node nodes_array[vector.size()];[/icode] I know this is not legal in C. However, my C++ compiler does not complain. Is this only in recent versions of C++, or has this always been legal in C++?

Member Avatar for sarehu
0
101
Member Avatar for TeCNoYoTTa

hello all i want to know the proplem with this program and first ........ can i write a string object to a file normally like other objects ?? this is the code ......the program writes the file but it can't read it again [CODE=cpp] #include <iostream> #include <fstream> #include <string> …

Member Avatar for TeCNoYoTTa
0
84
Member Avatar for johnkeating

I am a new convert to MySQL. It sounds like an answer to my prayers, BUT when I look for some training I find the cost to be substantial. I have purchased a book Beginning MYSQL by WROX but I now realize that I need some more structured training. I …

Member Avatar for stephen84s
0
104
Member Avatar for esy928

Greetings! I was given a task yesterday to constuct a table like this: 5 4 3 2 1 4 5 4 3 2 3 4 5 4 3 2 3 4 5 4 1 2 3 4 5 using loops and only loops. I've been trying to solve this for …

Member Avatar for javaAddict
0
121
Member Avatar for another guest

well here's da problem,its not really a problem i guess but i'm kinda confused about all this:S i'm currently doing BCS(british computer society professional examinations),well its pretty kewl considering u can complete a degree equalent programm in half da time:D anyways all it has is theory so i'm guessing i'll …

Member Avatar for another guest
0
234
Member Avatar for stephen3200

I am currently experimenting with function pointers as part of a larger project. Drawing from both online sources and textbooks. The problem however is that after storing the values as an array, when i call them the functions either fail to be called, or if i attempt to print the …

Member Avatar for stephen3200
0
110
Member Avatar for alexutza_r_m

Hi, everybody! I am new to this forum. I have a problem with an oriented weighted graph, more precisely, I have to find the shortest path between 2 nodes, but this path should pass through a given intermediary node. For example, I have a graph with 5 nodes, namely A, …

Member Avatar for alexutza_r_m
0
119
Member Avatar for Shilpa Jain

Hi all, I am generating a report in flexgrid. I need to copy this data in excel and attach the excel sheet in the outlook so that the mail can be send. Outlook will be opened on a button click. I am able to open the outlook but unable to …

Member Avatar for Shilpa Jain
0
101
Member Avatar for swefil2008

I need a routine for printing out to pre-printed paper forms. We recently had a programmer install in our office software written in php , and to be used locally through localhost on our pc, mysql, php and apache2.2 all installed, the software is working well, however we have a …

Member Avatar for casper_wang
0
149
Member Avatar for dskumar_85

hai friend's i am beginner in MS sql db . so can any one explain me detail about Foreign key and primary key , please give example also , thank;s in advance.....

Member Avatar for Ole Raptor
0
81
Member Avatar for mustafaneguib

[CODE=php]<html> <head><title>Write a New Article</title></head> <body> <?php session_start(); $connect=mysql_connect("localhost", "worldofp_mussy", "mustafa"); mysql_select_db("worldofp_blog1") or die(mysql_error()); $get="SELECT user_id, user_name FROM user WHERE user_name = '" . $_SESSION['username'] . "' ORDER BY user_id"; $results=mysql_query($get) or die(mysql_error()); $row=mysql_fetch_array($results); $insert="INSERT INTO article( article_name, article_content, user) [B]VALUES ( '<h4>" . $_POST['articlename'] . "</h4>', '<pre>". $_POST['articlecontent'] ."</pre>', …

Member Avatar for nav33n
0
161
Member Avatar for MDGM

Hi all, I have just put together a simple log in script from various tutorials on the web and at the moment it is only checking the username entered by the user against what is in my database. I cant find any infromation about any kind of AND function or …

Member Avatar for nav33n
0
122
Member Avatar for ingeva

Searching for a solution to my problem I found this forum. Hope someone here can help. Instead of manually updating a table by using copy/paste from a web page, I would like to read the page directly from php. Pasing the contents would be a breeze, but I have no …

Member Avatar for ingeva
0
76
Member Avatar for k.wiseman

I'm still grappling with the concept of passing parameters and returning responses. See code below: [CODE]#Measurement Converter # Converts Common Chinese Units of Measurements (Practicing function return) # Convert "cun" to "inches" def cun_to_inches(cuntoinchesQ): cuntoinchesUR = None while cuntoinchesUR == None: cuntoinchesUR = float(raw_input(cuntoinchesQ)) cuntoinchesUR *= 1.31 return cuntoinchesUR # …

Member Avatar for k.wiseman
0
123
Member Avatar for all blacks

I wan to read from multiple files and write into 1 file....the fuse_cortex_header_r function will read a file and then break the file into several file which only consist of classes...for fuse_cortex_header_w file, i would like to read all the files which have been writen by previous function and write …

0
93
Member Avatar for veledrom

Hi, How do i select a particular value of a combobox? Example [code] combo1.selectvalue(rset.field("id"))[/code] I believe you understand what i mean. I bring data from database and want select it in combo. Thanks

Member Avatar for selvaganapathy
0
121
Member Avatar for patel_anks

Hi can anyone help me, I am learning the language C but need some help writting some code. what i need to do is from the input of the keyboard i need to find the max and min of some values and out put them. what i got so far …

Member Avatar for patel_anks
0
110
Member Avatar for Jennifer84

I have 2 loops like below. In the second loop I am searching a string if I can find the "*" character. This loop will loop 100 times but what I am wondering is that if you wont find the character "*" in the string str, is is possible to …

Member Avatar for Jennifer84
0
129
Member Avatar for PomonaGrange

Hi, I have been trying to create a searchable database and have the following code for my form and the action code. When the form is changed/submitted ll I get is an error "Query was empty" Can anyone offer any help?? [code]SEARCH By Last Name (Letter)<form NAME="navsel" action="sel_byLetter.php" method="get"> <select …

Member Avatar for PomonaGrange
0
273
Member Avatar for skelly16

Hi All Anyway of compressing a gzip file down evern further. I have a file which is already compressed by gzip but is till to big to email. Any ideas how to make it even smaller???

Member Avatar for masijade
0
130
Member Avatar for mcx76

Hi, I am looking for help to find "popup script" which can Automatic open when website open. I want to add Image or any way to Flash Movie. Thanks you in advance.

Member Avatar for ~s.o.s~
0
81
Member Avatar for Jishnu

Hi, There are certain spell-correcting features in search engines like google... What I want to do is this: If the word entered by the user doesn't match with any of the words in the databases, the program should try to find the word in the database that is closest to …

Member Avatar for Jishnu
0
110
Member Avatar for Jennifer84

I have declared a map like below. What I have some problem with is how it is possible to set the double Number1 to have the value of "Numb". I am not really sure I have understand how the mapping works here. [code] std::map<std::string, double> numb; void Test() { double …

Member Avatar for Jennifer84
0
91
Member Avatar for Evan M

I have a function which takes an array of SDL_Rect (which is a data structure containing four integers, x, y, h and w), and assigns values to the data members. However, when I try to compile, each line generates the error "error C2059: syntax error : '='". [CODE] int main() …

Member Avatar for Evan M
0
608
Member Avatar for emit_flesti

This is the weirdest problem I've seen so far. But upfront this is my first javascript development. I've mostly programmed in Actionscript and PHP. I have quite a bit of javascript running on my PHP page. I had just gotten everything to work well (looking at you IE7!) and I …

Member Avatar for emit_flesti
0
95
Member Avatar for sidatra79

I am trying to implement the composite "structural pattern". The attached code compiles but when I run the exe file the memory collapses. Here is the code: [code] #include <iostream> #include <iomanip> class CTreeComponent { public: virtual void traverse(int)=0; }; class CTreeLeaf:public CTreeComponent { public: CTreeLeaf(int wert):m_wert(wert){} void traverse(int tiefe){std::cout<<m_wert<<" …

Member Avatar for Alex Edwards
-1
108
Member Avatar for cVz

Hey dudes...i am currently working for a company that codes in delphi 7... i am familliar with C# language but not that much of Pascal language...i need to make a form where i can print an added HTML page... I managed to get it to print a form but i …

0
91
Member Avatar for swapna7999

hi i have 3 form and an exit button in 3rd form i want to close the whole project when i click exit i think unload me can only stops that particular form i want to close the whole project thank u very much

Member Avatar for hemen
0
569
Member Avatar for maxiam

Hi I am trying to learn c++ by using it where I can at work. Usually I can muddle through by searching forums and although I might not end up with an elegant piece of code, my programs seem to work ;) What I am trying to do, is open …

Member Avatar for maxiam
0
139

The End.