199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for revenge2

hello there, i started learning python yesterday and im having quite a bit of difficulty following tutorials... I was following this[URL="http://en.wikibooks.org/wiki/Python_Programming/Variables_and_Strings"] tutorial [/URL] but most of what i wrote did not work. How do i make the code compatible with python 3.0?. for instance it says [CODE]lucky=7 print lucky [/CODE] …

Member Avatar for Stefano Mtangoo
0
468
Member Avatar for BevoX

I have a rather simple question, and I' ve been looking for the answer for awhile, but did not find any. So I would like to know, what is the proper way of deleting a pointer. For example I have a class with some kind of array, which I want …

Member Avatar for BevoX
0
122
Member Avatar for SkyVValker

I m new in php.i want some help in my code..plz.. i have 15 image in mysql table .and i want to retreive atleast 3 images in first row.den other 3 in second row..how can i make it possible.. the code is given below..! [code=php]<?php include "dbconfig.php"; ?> <link href="main.css" …

Member Avatar for SkyVValker
0
207
Member Avatar for aveltium

Hi, I'm sorry for making the question unclear, but my English is not good. I will try to explain it: [code=java] class test0{ test1 t1 = new test1(); public static void main(String args[]){ new test0(); } public test0(){ t1.displaymsg1(); t1.callDisplaymsg0(); } public void displaymsg0(){ System.out.println("Successfully linked to test0 class"); } …

Member Avatar for aveltium
0
125
Member Avatar for dourvas

Happy new year to everyone.. in my sql db there r 2 tables. mathimata and apousies from table -apousies- i "select" some data (the amount of absences) for a particular person (student) for every class he attended. i want for every class of the above result to search in table …

Member Avatar for DiGSGRL
0
172
Member Avatar for firoz.raj

sir i want if user click on submit all the records should come form production table if it match dtpicker1 and dtpicker2 value i have written a code but it is not working kindly let me know. [code] Private Sub Command1_Click() Set rs = New adodb.Recordset [B]rs.Open "select * from …

Member Avatar for firoz.raj
0
103
Member Avatar for vandenzergen

Hello everyone, I really want to know what should I do first in making games using c++. We all know that c++ is the most widely used programming language in making games. But, there is still things which are not clear to me as of now. I'm still a newbie …

Member Avatar for vandenzergen
0
117
Member Avatar for vandenzergen

I'm having a problem on how to create a program on c++ that creates its own file and storage capabilities. I'm planning to have an interface like this so I put a little detail about the program just to give you the idea of what I actually mean... it goes …

Member Avatar for vandenzergen
0
164
Member Avatar for Blackeagle

Hello, i'm trying to make a a list of items in a Text Area, something like this: apple 2 22 banana 31 1 orange 1 3 i want to it o be organized such that the numbers are in one column, and thats not working with me since the names …

Member Avatar for Blackeagle
0
104
Member Avatar for marsheng

Hi I need to move a shape (say for example a 5 mm circle) across a drawing, however as the shape moves it needs to redraw what was on the page before the shape got there. Thanks Wallace

Member Avatar for LizR
0
259
Member Avatar for ddanbe

I'd like to write a matrix evaluation tool.(add, multiply, inverse etc.) So I need some way to manually input the values of a matrix. I don't want the input to be console like : "Give val for r1,c2" or something like that. I want a forms app with a table …

Member Avatar for LizR
0
118
Member Avatar for Aerialknight

I try to use 'extended' type for variables but I cannot, turbo pascal 7.0 report 'Error 116: Must be in 8087 mode to compile this' - so I don't know if sbd can help me solve this.

Member Avatar for LizR
0
130
Member Avatar for Grimshad

I'm looking for some help with some C++ code. I have working knowledge and understanding of code and coding in general, but don't actually program myself. I have 2 files TFGame and TFMenuConsole In TFGame I put [CODE]var config bool ToggleWarhead;[/CODE] and later put [CODE] PlayInfo.AddSetting(default.GameGroup, "ToggleWarhead", default.SIGPropsDisplayText[i++], 0, 1, …

Member Avatar for Grimshad
0
181
Member Avatar for DennyW

I do not know the proper way to reword this to work in my version3.0.4. Any help would be much appreciated. This is what I have there now, 3.0.4, subsilver2: S_USER_LOGGED_IN --> <!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- …

0
116
Member Avatar for clutchkiller

You are able to hide the desktop icons on xp by right clicking on the desktop and choosing to hide them, but how would you do it through c++? I was messing around with DestroyWindow and ShowWindow, but I cant figure it out. Any help? WinSpector is telling me that …

Member Avatar for Comatose
0
105
Member Avatar for srs_grp

I have a byte array has follows: 0 6 -56 28 How can I get its integer value by doing a manual calculation?

Member Avatar for verruckt24
0
851
Member Avatar for WhYuLoOkIn

I wanted to ask this before I tried to build these two large tables myself. Does anyone know where or if I can find an MS Sql table of the United States, Cites and States. Possibly with the relationship between state and cites already built, or even an Sql procedure …

Member Avatar for WhYuLoOkIn
0
122
Member Avatar for james_eblin

Hey, my friend sent me this funny java script, if you copy and paste it in the adress bar and hit enter it makes the links spin around, any one know how this works? [COLOR=black]javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=2.6; y3=.24; x4=100; y4=100; x5=300; y5=300; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; …

Member Avatar for James1997123
0
119
Member Avatar for revenge2

How does [URL="http://www.swaroopch.com/notes/Python_en:Basics#Indentation"]indentation[/URL] work exactly?. Could someone expand on the explantion given on that page please. -regards.

Member Avatar for mn_kthompson
0
122
Member Avatar for sinduja

#include<iostream.h> #include<conio.h> void main() { int n,i,j,t,s; clrscr(); char sname[30],rating[60]; cout<<"enter no of songs in the list"<<endl; cin>>n; cout<<"enter song name and rating"<<endl; for(i=1;i<=n;i++) { cin>>sname[i]; } for(i=1;i<=n;i++) { cin>>rating[i]; } cout<<"The top songs are in the order:"<<endl; for(i=1;i<=n;i++) { for(j=i+1;j<=n;j++) { if(rating[i]<rating[j]) { t=rating[i]; s=sname[i]; rating[i]= rating[j]; sname[i]=sname[j]; rating[j]=t; …

Member Avatar for vmanes
0
120
Member Avatar for mustaine85

Hi, how do you append to a variable? I can only get it to work with a seperate file like this: printf $number1 >> sum.txt I tried this : $number1 >> $sum but it says $sum: ambiguous redirect, any ideas? :)

Member Avatar for eggi
0
89
Member Avatar for cam875

I am trying to figure out for my physics simulator how to give my object name a variable or something, ill show an example and the compiler flags it an error but all i am trying to do is pass it the value not the variable long atomID = 0; …

Member Avatar for cam875
0
119
Member Avatar for csharplearner

Hello all, I am trying to pass data between two files using POST method. I am using Visual Studio 2008 and working in C# Environment to run this in ASP.net. The code i am using is: sareeweb.aspx [code=c#] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="sareeweb.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar for iDeveloper
0
143
Member Avatar for pnorten462

this is because of the time it takes to upload the files. if you upload too many at once your php script has a good chance of timing out while it waits for all of the files to upload and die. this is especially true if the files are big.

Member Avatar for DiGSGRL
0
111
Member Avatar for SOB224

I am trying to keep two menu lists' option in variables but i dont know whether to use "selected" or "select name" to assign value 1st one which brings "Student Numbers" rows from its column in selected class table. [code=php]$query="SELECT StudentNumber,Student_id FROM $CC"; $result = mysql_query ($query); echo "<select name=\"STUDENT\" …

Member Avatar for DiGSGRL
0
150
Member Avatar for andreb

I was working with some c++ code from a site. When i try to link in dev c++ I get this. [QUOTE] [Linker error] undefined reference to `GameEngine::m_pGameEngine'[/QUOTE] The code compiles perfectly but does not link. [CODE]class GameEngine { protected: // Member Variables static GameEngine* m_pGameEngine; HINSTANCE m_hInstance; HWND m_hWindow; …

Member Avatar for Clockowl
0
117
Member Avatar for bamabambhole01

//cube.h #ifndef CUBE_H #define CUBE_H class Cube { public: Cube(); ~Cube(); void setSide(double s); double getSide(); double Area(); double Volume(); void Properties(); private: double Side; }; #endif ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´ #include <iostream> #include "cube.h" using namespace std; Cube::Cube() { } Cube::~Cube() { } void Cube::setSide(double s) { Side = s <= 0 …

Member Avatar for StuXYZ
0
166
Member Avatar for monere

Hello, I am a new beginner to c++. I am trying to launch an application in using the following command: system("clip100.txt") File clip100.txt got opened on my word processing software running and i had to exit from word processing to get my program continued. My question is: How can i …

Member Avatar for monere
0
131
Member Avatar for vckicks

Hello, I'm having some very confusing problems with the StringFormat class. I'm hoping someone will know what's going on. I want to draw text right-to-left. It's multiple lines so I figured using the StringFormat class was an easy way to handle that, I declare it as: [CODE]StringFormat f = new …

Member Avatar for vckicks
0
201
Member Avatar for clutchkiller

Here is my code that i am working on. Upon running the exe, it asks the user for a temporary password. After that, the screen saver pops up. Upon exiting the screen saver, the console will ask you for the temporary pass that you entered in order to renable the …

Member Avatar for Comatose
0
111
Member Avatar for SOB224

I have created two table by generating via forms. My question is although second table's foreign key appears on phpmyadmin it doesnt have that same value with the first table's primary key. currently foreign key has all zero values in all of the rows. Table codes: [code=php]$sql2='CREATE TABLE IF NOT …

Member Avatar for SOB224
0
191
Member Avatar for Alishaikh

I'm trying to do selection sort for objects...But it wont work, please help. We were told to change the first one to do objects. Any help appreciated [ICODE] public static void selectionSort (int[] numbers) { int min, temp; for (int index = 0; index < numbers.length-1; index++) { min = …

Member Avatar for verruckt24
0
168
Member Avatar for edgar5

Here is what I want to accomplish--I want a ListBox exactly like everyone else uses (almost always)! When the user mouse-clicks in the box and enters a keypress, the first item in the dropdown list, with that char as a first char, is selected. The values are restricted to those …

Member Avatar for edgar5
0
120
Member Avatar for pixclinic

Hi everyone I having some cross browser issues with prototype's ajax.Updater I have a js function call chargeAll(), that calls the same chargeOrder() function using the ajax.Updater several times, with different order IDs. chargeAll is built dynamically, retrieving all the order IDs from the db. Here is the javascript code …

Member Avatar for pixclinic
0
131
Member Avatar for asif786

i want to store multiple values in an array. lets say the variable name is voternumber which is a unique number that is generated which is between 1 and 5000. i will output the voternumber to a voter and then as them to input it so that i can perform …

Member Avatar for Ramy Mahrous
0
168
Member Avatar for lavin

HI, I am a beginner. I have designed a simple site in HTML. I want to add a login and register page. And I want to add a database to store the login and register informations. Can anyone help me with this? I am beginner in database.

Member Avatar for boblarson
0
112
Member Avatar for Aigini

I would like to know the purpose of using the table adapter in vb.net, how to use it and how to relate it to the coding section when it is used?

Member Avatar for Ramy Mahrous
0
97
Member Avatar for scrypt3r

does any of u know how to make a app in vb 2005 send a e-mail with text and/or attachments ?

Member Avatar for Comatose
0
209
Member Avatar for damo87

Hi guys, i'm doing a peice of coursework for uni where we are required to implement a Min-heap/priority queue for calculating the Minimum Spanning Tree. In a min heap, the parent's value needs to be smaller than that of its two children. I've tried to implement this,giving the following list …

Member Avatar for damo87
0
434
Member Avatar for cppnewb

Hi, It's me again with another silly question:) I was wondering if there was a way using ofstream to not erase the contents of the file it is writing to and simply write at the end. Thanks! P.S. I'm using windows XP and Dev C++

Member Avatar for Freaky_Chris
0
123
Member Avatar for dwhite409

If you recall in the implementation of list: struct list_node_base { list_node_base* next list_node_base* prev ... [B]void hook(const list_node_base*);[/B] .... }; I wanted to look under the hood of the [B]hook[/B] function, but can't find it anywhere in the STL library or any reference to this method via Google for …

Member Avatar for dwhite409
0
164
Member Avatar for sydetys

HEADER; I am noob in programming, so keep it simple thank you :) I use VS 2008 pro SP1 OS is vista Ultimate x64 SP1...(SP2 beta I will try later) Which function is better and what are differences? 1. system () 2. CreateProcess () ...is there more choices? My goal …

Member Avatar for Freaky_Chris
0
255
Member Avatar for mustaine85

Can I use my own variables within awk and sed for example: I've written a while loop with a counter $i and I want to use the value of $i within sed and awk to edit certain lines of text within a data file. I want to use : sed …

Member Avatar for mustaine85
0
90
Member Avatar for zedame

i'was asked to develop chat application using c++ anyone can help me finding tutorials/ articles/ walkthrough or what ever i can get that discuss this topic

Member Avatar for Freaky_Chris
0
116
Member Avatar for u8sand

Hello everyone... Recently, i tried making a puzzle solver. And it came out perfect. I wanted to try somthing harder so i went on to a sudoku puzzle solver. You see i checked a bunch of places and found that the best and easiest way to do it is with …

Member Avatar for algoboy
0
165
Member Avatar for firoz.raj

SIR , I WANT IF USER CLICK ON PRINT BUTTON ALL THE RECORDS SHOULD COME IN A REPORT FROM MR QUERY [ATTACH]8753[/ATTACH] BUT RECORDS ARE NOT SHOWING ON DATA REPORT. I HAVE WRITTEN A CODE IN PRINT_CLICK Private Sub Command4_Click() [B]Set rs = New adodb.Recordset rs.Open " select * from …

Member Avatar for ryan311
0
316
Member Avatar for u8sand

Hey guys. Another problem : ( Well you see, i was attempting to make an array that stores char's in a lets say 10 by 10 grid. Then i can display it Example: [code] char array[10][10] = { "----------", "| |", // ...... ext... "----------" }; for(int y = 0; …

Member Avatar for u8sand
0
98
Member Avatar for Swemp

Hi, I'm a newbie in C++ and i'm working on a project, but it doesn't work.. The C++ program should read numbers into an array, the numbers are in a txt file. Each array number : ex. array[1], array[2], array[3]... should get a number from the txt file. In the …

Member Avatar for Swemp
0
5K
Member Avatar for brothertse2008

OK im new to this so bear with me. I need to add a search function to my project. I need to input a value into a textbox, click a submit button and a screen needs to appear with the results Ive got a the following code but i get …

Member Avatar for ryan311
0
122
Member Avatar for Clockowl

Hey guys, Could I "teach" my compiler to do automatic type conversions for me? So when I have this program: [code=cpp] #include <cstdio> #include <string> using std::string; int main(){ int x; string y = "1234567890"; x = y; printf("y: %s == %d\n", y.c_str(), x); return 0; } [/code] It won't …

Member Avatar for Clockowl
0
112

The End.