199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JRM

Hello all, While I understand what the class access keywords public, private, and protected are supposed to do, I just don't see how this ACTUALLY "hides variables" and makes for more bullet proof code. Do the variable names survive the compilation process? If someone was to read compiled code in …

Member Avatar for Ancient Dragon
0
124
Member Avatar for neeven

/*QUESTION 2*/ [code] /*Program to compute frequency of a list of marks obtained by a group of students*/ #include <stdio.h> #define SIZE 100 main() { /*define n as number of students.x[SIZE] is a array to store marks of students*/ /*tempo[SIZE] is also used to store marks, but used in computation …

Member Avatar for Ancient Dragon
0
145
Member Avatar for hippychic43

Hi, I have a problem when selecting values from some combo boxes. I have a form with two combo boxes next to each other, they both have the same data source, which is an array. I need to be able to select different values in each combo box. My problem …

Member Avatar for waynespangler
0
131
Member Avatar for ecoloney

Friends, I have an array of TEdits. They all use the same On Key Down method. How can I determine (from within my On Key Down method) which TEdit called the method ? Thanks,

Member Avatar for John A
0
126
Member Avatar for orko

Hello, I usually don't complain too much. But this time I am getting mad. I just wrote a linked list, where 1. If the value was not present before in the list, it will be added. In this case, there is a capacity. If the new value increases the list …

Member Avatar for Lerner
0
131
Member Avatar for mahe4us

Hi everyone, I have tried to copy the images in my local folder to the server using php script without using the upload function. But it displayed errors. While accessing the folder from server it displayed no such file in this directory. Can anyone help me how to copy the …

Member Avatar for tgreer
0
84
Member Avatar for Colin Mac
Member Avatar for sneekula

I like to create a structure in Python, something like: [code]solvent_name boiling_point melting_point flash_point [/code]I need to search and sort this structure. How can I best do that?

Member Avatar for jbennet
0
232
Member Avatar for johnbal

I have a table for which I have to create a report.The user must only enter the dates(from and to).The date field is present in the table. Please help me to do this.

Member Avatar for udaywali
0
722
Member Avatar for slash10

am beginner in C..am trying out some questions in books n i want to write a small encryption program that will encode a word..cn any1one help?i want to convert a character such as 'a' to the next character of the alphabet that is 'b'...how should i proceed?

Member Avatar for neeven
0
177
Member Avatar for NonProgrammer

Hi everyone, Sorry to be a bother but everything programming seems almost foreign to me. Im trying to write a shell script (using 'sed' and 'tr' etc.) which replaces a string of text with another. That is the easy part. The part Im stuck with is making it case insensitive. …

Member Avatar for sn4rf3r
0
125
Member Avatar for wednesday

Hi I am creating a button & textbox manually and have those codes in the form load event. Also I disabled the button & I have the number 1 in my text box. May I please have the code to enable the button when any number greater than one is …

Member Avatar for waynespangler
0
112
Member Avatar for hbmarar

[B]Wishing you all a Happy new Year wishes.[/B] Hi good morning. I thought of sharing with you a requirement that i am not clear and thought as an expert you might be able to help me out with pointers and logic.Well, I would try to be brief:- I have a …

Member Avatar for hbmarar
0
191
Member Avatar for pointers

Hi i hav a doubt could u pls explain me.............. wt s da sizeof(int*) , sizeof(int**),sizeof(int) in the following code [code=c] int **p; int *q; p=(int *)malloc(sizeof(int *)) *p=(int *)malloc(sizeof(int)) **p=12; q=*p; [/code] Thanks and regards.

Member Avatar for Salem
0
97
Member Avatar for king13

Hello, I'm having issues with my final total for charges. When I run my program, it either comes up with "0" or if I don't declare my variable, it comes up with a long string of numbers. My total hours works great, but not my charges. Can someone take a …

Member Avatar for king13
0
994
Member Avatar for mandanainred

I am working on an assignment to get an intiger from user, find all prime numbers smaller that it, and show all of them which dont contain a '1'. for breaking the integer into digits, I am using " x / 10 % 10 " algorythem, but I as it …

Member Avatar for ~s.o.s~
0
107
Member Avatar for Gorilla

I have created a project using Jython (there was no bug in compling it by my IDE) I also have read the topic named [B]Py2exe help [/B](Ene Uran---Oct 23rd 2006 6:43 pm) and I can tell you that it really helped me so much. But in this project, I cannot …

Member Avatar for bumsfeld
0
179
Member Avatar for Amelia_25

[COLOR=#000000]Hello Guys![/COLOR] [COLOR=#000000]I am preparing for SCJP certification and looking for good study material on the Web like SCJP model tests, sample questions and tutorials etc. Please help me out by sending some links related to this certification.[/COLOR]

Member Avatar for woofytalk
0
67
Member Avatar for MarkWalker84

Hi, I've just installed python & wxpython on my university computer. I went to run a script that was working just fine on my computer at home last night and i am greeted with this message: [quote] Traceback (most recent call last): File "C:\Documents and Settings\d22601\My Documents\Project_4\Python Files\Sequence Driven Controller.py", …

Member Avatar for bumsfeld
0
119
Member Avatar for assgar

Hi Can you see somthing I am missing? My form is passing arrays to the process and the process is producing some errors. I cannot see any problems. In fact I have two other simular foreach loops that are not creating errors. Thanks [php] <?php $fee2_choice = strip_tags(trim($_POST['fee2_choice'])); $fee2_choice = …

Member Avatar for assgar
0
168
Member Avatar for raheleh

[COLOR=#000000]I use messagebox on a web page but when I upload my file on a virtual directory on a server the messagebox does not work and there are some errors, why?[/COLOR]

Member Avatar for tgreer
0
86
Member Avatar for pointers

I hav one doubt regarding post decriment,the code in c is as follows............. void main() { clrscr(); while(i--!=6) i=i+2; printf("%d\n",i); getch(); } I know the output is 5, but i read in a book dat the post incriment or decrement operators are evaluated after reaching semicolon(;).....but in while condition,the ondition …

Member Avatar for jim mcnamara
0
181
Member Avatar for sneekula

Now I am looking for the best way to reverse the digits in an integer. For instance x = 12345 should become y = 54321.

Member Avatar for ghostdog74
0
466
Member Avatar for desi_programmer

Please help! I know I don't post here much, in fact, I don't post here at all, but this does not mean I am just some noob trying to get some easy code. I have been in programming for two years, and signed up to this website about the same …

Member Avatar for kulandai
0
104
Member Avatar for mandanainred

what is wrong with this code? [color=#0000ff]int[/color][color=#000000] myFunction([/color][color=#0000ff]int[/color][color=#000000] b)[/color] { [color=#0000ff]int[/color][color=#000000] c;[/color] [color=#0000ff]double[/color][color=#000000] z = b;[/color] [color=#0000ff]double[/color][color=#000000] d;[/color] [color=#0000ff]int[/color][color=#000000] y=0;[/color] [color=#0000ff]while[/color][color=#000000] (d<0)[/color] { d= (z/pow(10,y)); c = ([color=#0000ff]int[/color])d; c = c%10; [color=#0000ff]if[/color][color=#000000] (!(c=1))[/color] ++y; [color=#0000ff]else[/color] b=0; } [color=#0000ff]return[/color][color=#000000] b;[/color] } The compiler gets 3 erros of the pow(): - math.h(575): …

Member Avatar for Nick Evan
0
127
Member Avatar for Dhruv Shah

hello there i want to send an email in which user has selected an attachment to send. below is the code for it: [code=asp.net] [COLOR=#0000ff] Imports[/COLOR][COLOR=#000000] System.Web.Mail[/COLOR] [COLOR=#0000ff]Public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Class[/COLOR][COLOR=#000000] WebForm1[/COLOR] [COLOR=#0000ff]Inherits[/COLOR] System.Web.UI.Page #[COLOR=#0000ff]Region[/COLOR] " Web Form Designer Generated Code " [COLOR=#008000]'This call is required by the Web Form Designer. [/COLOR]<System.Diagnostics.DebuggerStepThrough()> …

Member Avatar for web_developer
0
185
Member Avatar for Niklas

Alright well this is supposed to be a basic Geometry calculator that uses set formulas to identify the "chosen" property of the figure by just pluggin in #'s that are used in that formula. I have to admit I'm not expirienced at all in C++ and probably made a ton …

Member Avatar for FireSBurnsmuP
0
239
Member Avatar for rachaelmom

Hi, I am using a CSS hover menu (with a IE fix) to navigate a website. It is working fine in all browsers except for Opera for Windows (and possibley old version of NN). What happens is the menu opens up and works fine unless there is other html that …

Member Avatar for BudBrocken
0
131
Member Avatar for deepak_patro

[COLOR=red][B]HI pals !:lol: [/B][/COLOR] [COLOR=red][B]i really need some projects and their details on java![/B][/COLOR] [COLOR=red][B]i think that u people will help me out![/B][/COLOR] [B][COLOR=red]so,waiting for your response!:rolleyes:[/COLOR] [/B]

Member Avatar for masijade
0
103
Member Avatar for upside10

I have a assignment with these requirements: Please begin stage 1 by writing a program that creates an output file. Name the file using your userid followed by .dat. For example, I would call my file “angelesm.dat”. The file should contain all of the multiples of 5 from 0 to …

Member Avatar for upside10
0
160
Member Avatar for mruane

My fiance is having a birthday in less than 20 days. I am therefore trying to create a program for her (trust me, it is not intended to be the only gift) to play around with, and hopefully enjoy. The only problem I am having so far, is that when …

Member Avatar for Mouche
0
312
Member Avatar for macca1111

Hi, I have a card class and deck class. The cards are in suitList rankList. I call the cards from a file cards.txt and split them into the above. I need to import the cards.txt and then shuffle them. I have the following code: def shuffle(self): import random nCards = …

Member Avatar for macca1111
0
183
Member Avatar for mruane

I am trying Vegaseat's suggestion in one of my threads to use shuffled lists for combat in my text adventure. He suggested creating two lists, myhit_list[1, 0, 2, 0, 3, 0, 0, 1] and monsterhit_list[1, 0, 2, 0, 3, 0, 0, 1] and using random.shuffle(myhit_list) and random.shuffle(monsterhit_list) iterated with "I …

Member Avatar for vegaseat
0
112
Member Avatar for Ghost

Hi everybody! I want to create my own OS. I already know: Java C++ HTML 3D Game Design C# Pascal I was wondering if any of what I know might come in use. Is there a tutorial on making your own OS i could follow??? Thanx in advanced for your …

Member Avatar for Ancient Dragon
0
364
Member Avatar for CTEshopping

Help! I am brand new at writing php and have an error that I can't see. I am totally new at PHP and am wading in with both feet. I tried to change a header in my osCommerce store setup. I am making the changes in the header.php file and …

Member Avatar for Puckdropper
0
159
Member Avatar for EnderX

I've been requested to upgrade php on a number of systems. Currently, they are running version 4.3.4, and the most recent upgrade on the php.net site was version 5.1.6. I've never done this before, and have little clue what I'm supposed to be doing. I'm hoping that once I get …

Member Avatar for Puckdropper
0
104
Member Avatar for katharnakh

Hi, I finding difficult to execute this program. The wx.Notebook i created is coming on the splitted frame(self.p2). How do I that. I am started to learn wxPython, and when I run the code, the code doesnot close gracefully, it throughs me an error. "pythonw.exe has encountered a problem and …

Member Avatar for vegaseat
0
144
Member Avatar for rachaelmom

Hi, I have a PHP/Javascript page and I need to POST code to the same page in which it is posting from. It posts correctly and PHP picks up the information but the javascript code that deals with certain objects won't run again. I actually have to POST to the …

Member Avatar for rachaelmom
0
64
Member Avatar for DarkFlash

Hey guys, I'm making a CMS for my website with python. I was wondering if anybody could give me some insight on (perhaps) an OS function that will copy a file from one folder and 'paste' it in another. thanks!:cheesy: Alright...I couldn't find anything as far as the os module …

Member Avatar for Ene Uran
0
94
Member Avatar for MarkWalker84

Hi guys! Im new to this forum so go easy on me :-) I've got a background in C programming and have recently moved to Python for a GUI project im working on. So far im loving it - compared to VC++ wxPython is pure bliss. Im having a slight …

Member Avatar for MarkWalker84
0
435
Member Avatar for NewVBguy

Hi there, I'm new to this sqlserver package. Is VB6 can able to work with this package like connectivity issues?. Can somebody advice me about this because my previous experience is purely on ms access database as backend front end vb6. thnx in advance.. newvbguy

Member Avatar for NewVBguy
0
90
Member Avatar for Mouche

I'd like to flip the keys and the values in a dictionary. Say I have this dictionary: [php] positions = {'secretary' : 'Jessica', 'IT manager' : 'Matt', 'sales worker' : 'Linda', 'boss' : 'Chris'} [/php] and I want this: [php] employees = {'Jessica' : 'secretary', 'Matt' : 'IT manager', 'Linda' …

Member Avatar for Ene Uran
0
302
Member Avatar for slacke

Hello I need to work out some parallel port output signals. I found a short program to test bits on that port. It tells I need to set the permission with ioperm() as this: [CODE] #include <asm/io.h> #include <iostream> #include <cstdlib> #include <unistd.h> #define base 0x378 /* printer port base …

Member Avatar for slacke
0
205
Member Avatar for mruane

Okay, I just learned that in order to call a program I made in python, say, myfile.pyw, into a seperate program (say, other.pyw) I would use [code]execfile('myfile.pyw')[/code] instead of [code]import myfile.pyw[/code]. I did that, and get one of those ever so helpful traceback errors saying that 'start', the user input …

Member Avatar for Ene Uran
0
136
Member Avatar for silyas

A certain benchmark contains 195578 floating point operations, with details shown in the table in the Figure 1 given below. The benchmark was run on an embedded processor after compilation with optimization turned on. The embedded processor is based on a current RISC processor that includes floating point function units, …

Member Avatar for Sruthi11
0
131
Member Avatar for woj117

Hi, I have a list view report style. Im trying to sort by click on a header, and it works fine, but it sort only the items, and I would like to have ability to sort also subitems (like in Windows explorer when user click for example [B]size [/B]of header). …

Member Avatar for WolfPack
0
101
Member Avatar for MattEvans

My custom error pages (via.htaccess) work for browser requests, but when I print out an error status code from a cgi script, it bypasses .htaccess. I can't see any problem with just reading in an "error page" and printing it to STDOUT... But, I have to use a Content-Type:text/html header …

Member Avatar for KevinADC
0
123
Member Avatar for alias47

Hello everyone :) I have a problem with Kraskal's algorithm. :sad: How it is possible to choose the node I want to start with to build minimmum spanning tree? Thank you for ansvering :) [code=c] //implemented using sets concept #include<iostream.h> class kruskal { private: int n; int graph[10][10]; int tree[10][10]; …

Member Avatar for ~s.o.s~
0
117
Member Avatar for monkey64

I'm real stuck on a php jump script. Basically a value is called from my .html pages; somthing like this: <a href="jump.php?m=c"> which looks at the jump.php page and redirects the user. I track the number of clicks in a MySql database. I want the code to check the database …

Member Avatar for sn4rf3r
0
148
Member Avatar for spacepoet

Hi: I am trying to use AUTHBOT as a form protector against spambots. I have everything working fine, except that the form will not email the values of the fields. It will write them on the page, but for some reason it will not email them through the processor. Can …

Member Avatar for spacepoet
0
131

The End.