199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for restrictment

Hello all, I am currently making an rpg type game in C++. The code is bellow: [code] #include <stdlib.h> #include <time.h> #include <iostream> #include <fstream> #include <string> #include <windows.h> using namespace std; int main() { int person, opponent, atk, asuccess, msuccess, game = 1, counter1=1, level = 1, atr, a, …

Member Avatar for Clinton Portis
0
153
Member Avatar for Shanti C

Im shanti.. I am developing one dynamic site , here my product display page is like products.php?prod_id=1 It means the products under first category are displayed.. but i want my url like products/categoryname.html..something like this, with my category name...which will spiderable format.. Please help me to do this... All helps …

Member Avatar for ultras1
0
414
Member Avatar for amrani.ah

since im new here and this is my first post........ i started programming as a freshman (im now a sophmore) with VB, and have since, i and my teachers feel, have mastered that, tought myself C and am pretty accomplished in that language. I am working on the object oriented …

Member Avatar for NotNull
0
234
Member Avatar for Zooker

The error occured in this program after I changed to option explicit and got rid of all the dollar signs and percent signs and switched to 10 or 12 character variables as showed in MSB Exaples!! Public Sub CreateDir() Drv = App.Path ChDir Drv Select Case intRegg Case 1 Message …

Member Avatar for vb5prgrmr
0
367
Member Avatar for shakunni

Hey, How do you prove that log (n!) is big theta of n log n? I tried using the definition method and the shortcut rules but I keep getting stuck.

Member Avatar for SebKom
0
99
Member Avatar for raigs

1. How can I check if a variable has been initialized (if it exists). 2. How can I check if a variable is empty (if the variables contains data). I'm using g++.

Member Avatar for mrnutty
0
81
Member Avatar for Shinedevil

I need some help with delay functions, First off, I know about windows.h, and the sleep(x) function. But I can't use windows.h because it conflicts with my allegro.h causing my compiler to spew out errors from allegro.h everywhere. Is there another function that i could use (Other than having to …

Member Avatar for mrnutty
0
445
Member Avatar for RobBrown

Hello, I am having a hard time with a loop for pulling information from a txt file and averaging it together. My problem is that the loop only reads one line and then quits, so it is only averaging one number. the program prints all the data and then shows …

Member Avatar for RobBrown
0
340
Member Avatar for sebassn

Hey guys, I just need some opinions about this work. I don't need you to do it for me. I'm just a little confused about getting the correct order in the dates (months and days). I know I got to use the [B]while[/B] function. So just please let me know …

Member Avatar for Fenrir190
0
80
Member Avatar for Confused@JS

Ok I am having a lot of trouble making my Nav bar stay fixed in the upper left corner. Every time i scroll down the nav bar follows down the page. I need some help here is the JS but iam not too sure if my prolbem lays in the …

Member Avatar for FourPart
0
239
Member Avatar for sanch01r

Hey guys, I am writing an Active Directory Tool that allows my team to read data without having to access Active Directory through a remote desktop session. I am not too familiar with the TreeView control and I was wondering if there was a way to add the Active Directory …

Member Avatar for DdoubleD
0
1K
Member Avatar for jamesbrad288

I'm having trouble with my programming assignment. It's made up of two parts. Part I is a while loop, and part II is a for loop. The first part counts how many even numbers and how many odd numbers the user types before typing 0. I think I have most …

Member Avatar for jamesbrad288
0
131
Member Avatar for KRal

I am trying to get this program to return a value, but it will not work. Can anyone help? 1. #include <iostream> 2. #include <iomanip> 3. using namespace std; 4. 5. int number_right (char let1, char let2, char let3, char let4, char let5, char let6); 6. 7. int main () …

Member Avatar for Clinton Portis
0
119
Member Avatar for lrh9

So I'm interested in learning about data validation. Especially in Python. Python all ready has several common idioms for data validation. There are several statements that evaluate data. For instance, isinstance(object, classinfo) will check that the given object is an instance of the class or type in classinfo. One idiom …

Member Avatar for paddy3118
0
362
Member Avatar for jess99

Hello, I am a newbie and I am learning Visual Basic 2008. My homework is the following: ublic Class Form1 ' This Internet Service provider offers three subscription packages ' to its customers, plus a 20% discount in all packages ' for nonprofit organizations. ' Package A: 10 hours of …

Member Avatar for jess99
0
3K
Member Avatar for A_Dubbs

Hello everyone, new programmer here. In my class we have an oppurtunity to make up credit on a previous homework by modifying a program if we got any of it wrong. The problem for the progam was: Problem #4. Write a program to solve the following problem. Find a word …

Member Avatar for woooee
0
138
Member Avatar for GARO

This is what I have so far. It's wrong in a bunch of ways. I can't seem to find whats wrong. It worked well on paper though :D So... I need some help. Can't use strings. It's giving me wrong palindromes. The numbers have to be prime and palindrome. [CODE]void …

Member Avatar for DoctorBinary
0
144
Member Avatar for agentgaurav007

Hi, I'm getting a [QUOTE]java.lang.NoSuchMethodError: main Exception in thread "main" [/QUOTE] error when trying to run this code. I have some variable being returned to the main method, but I don't know how else to write this program without doing that. Any help would be greatly appreciated. Thank you. [CODE]import …

Member Avatar for quuba
0
105
Member Avatar for whisper_101

Hi Guys My hosting company confirmed that recently it appeared that somebody was trying to hack into my website. I was able to confirm the page used but not whether they actually got through - no data in the database was changed. I have never come across this before and …

0
53
Member Avatar for scooby36

I cannot seem to get the datagrid to update with the correct data from the combobox selection the program just crashes. Do I need to bind to the combobox some how?? Any help or advise would be apreciated [CODE] Private Sub cboBarcodeInCust_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Member Avatar for TomW
0
164
Member Avatar for RejectKid

ok so i need my code to be able to have the balls on the screen detect collision and remove a ball when they collide but for some reason every time i hit the add a ball button they disappear on me. and they dont detect collision in the first …

Member Avatar for quuba
0
235
Member Avatar for opatut

Hi Community! I have already searched the whole web about this Problem, and I didn't find anything. Maybe you can help... I want to show the number of all SQL queries I executed to load a web page. It is a very complex system I programmed, and I don't want …

Member Avatar for opatut
0
237
Member Avatar for bdesc100

I am trying to specify which variables a function should return. The purpose of this is to allow the function to return different sets of variables according to the requirements of another function, in order to make things more efficient (rather than always returning all the variables): [CODE] # Python …

Member Avatar for paddy3118
0
113
Member Avatar for Room101

I'm having problems using my AudioPlayer class. I have a class that calls it which simply contains the following: [CODE=java]public class Test { public void test() { AudioPlayer ap1 = new AudioPlayer(); ap1.printUsageAndExit(); ap1.main({"a.wav"}); } }[/CODE] I recieve the error on line 6, when I call [CODE=java]ap1.main({"a.wav"});[/CODE] Note: When I …

Member Avatar for Room101
0
101
Member Avatar for Toxikr3

Hi guys, I asked a friend to try and hack my site to see how safe it is. He hasn't been able to get to the database or do any serious damage but he has used JS Injection to block my strip_tags(); function. I would like to know how to …

Member Avatar for Frement
0
108
Member Avatar for Qmage

for example [CODE] cout << "User Name: "; getline( cin, s.userName); cout << "Gender: "; cin >> s.gender();[/CODE] but i can't use s.userName or s.gender, because they are protected value(incapsulation), how do i use setUserName(string)/ setGender(char) together with getline/cin?

Member Avatar for Peppercat101
0
3K
Member Avatar for low1988

[CODE] import java.util.*; class Painting { private String title; private String name; int value; public Painting(){} public Painting(String t,String n) { title = t; name = n; } public void setValue(int v) { value = v; } public void setPrice() { value = 400; } public String getTitle() { return …

Member Avatar for masijade
0
134
Member Avatar for james16

i have just start to learn how to program i was just wondering how long does it take to learn and has anyone got any advice

Member Avatar for William Hemsworth
0
99
Member Avatar for lrh9

I want to call another object's methods from another object, and I have no idea how. Can someone please help me? Thank you.

Member Avatar for lrh9
0
203
Member Avatar for rmcummings

I am new to C++ and am writing a program that will call other functions. I keep getting an error for a undeclared identifier for "vowel" in this section of code. Can anyone help? #include <iostream> #include <iomanip> using namespace std; void generate_random_vowel(char &vowel); int main () { char vowel; …

Member Avatar for rmcummings
0
189
Member Avatar for OldQBasicer

I want to use more than one form in my project and be able to code a button or something that will do that. I tried this on Form1 and it worked. [CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Goes from this …

Member Avatar for OldQBasicer
0
336
Member Avatar for Web_Sailor

Hi. I have a constructor like below whose class extends JFrame. The problem is that my for loop is printing only the last string.( I am using this information ultimately to build a JButton table). Can somebody tell me whats wrong with this ? Below is the code:- [CODE] public …

Member Avatar for masijade
0
104
Member Avatar for ajay_p5

Hello friends , I need to parse some data from a file and arrange it in a certain file..however the file is so confusing and has such minute issues that it has really confused me now..can sumbody help. Thanks Aj I am attaching the main part of the input file …

Member Avatar for d5e5
0
176
Member Avatar for nilesh.shinde

I am a newbee to JavaScript was was just fiddling around with events for a browser... Is it possible to detect the browser process termination done through the [B]Task Manager[/B] in windows. [B]Process:[/B] 1. Goto Task Manager 2. Right click on the browser process e.g. iexplorer.exe 3. Select "end process" …

Member Avatar for nilesh.shinde
0
244
Member Avatar for simpatar

Alright, this is how my newest program looks like: [CODE]import math def main(): print('This program finds the real solutions to a quadratic') print s = float(input('Please enter the coefficients (a,b,c): ')) a, b, c = s.split(',') discRoot = float(math.sqrt(b * b - 4 * a * c)) root1 = (-b …

Member Avatar for vegaseat
0
82
Member Avatar for jeffreyjs

Hi, I am currently developing a cafe ordering and payment system which i encounter some calculation issue... i need a formula which is able to calculate the total price in this scenario, If Customer A order 5 items of different prices and Customer B order 9 items of different price, …

Member Avatar for Jaiam
0
182
Member Avatar for ddanbe

Hi, Why do I only see appearing a red rectangle after 1 sec with the following code, and not a blue one and after a sec a red. Just used a new forms app with a panel control added and the following code: [CODE=c#]using System.Drawing; using System.Threading; using System.Windows.Forms; namespace …

Member Avatar for Diamonddrake
0
291
Member Avatar for Excizted

Hello eveyone! :) I am making a rather huge application, and I'm starting to face a global problem. Whenever my application is doing sommething, i have a functional [B]progress bar setup to show the progress[/B].[B] My problem is now[/B], that, atleast on Windows Vista / Windows 7, my application whitens …

Member Avatar for Excizted
0
380
Member Avatar for number87

ok so I am trying to read in a file. Do some string checking. And output the counters. But somehow I think something is wrong with my strcmp. And I do not know where is the problem. Everything compiles fine too. [code] #include <iostream> #include <fstream> #include <cstring> #include <iomanip> …

Member Avatar for Ancient Dragon
0
133
Member Avatar for mirn27

how to program a program to calculate the area and the perimetre of a circle? pls answer me asap i need to know quickly thank you!

Member Avatar for Grn Xtrm
0
196
Member Avatar for SKANK!!!!!

[CODE]<?php $documentroot = $_SERVER['DOCUMENT_ROOT']; $username = "Administrator"; $dir = $documentroot . '/' . $username; function rmdir_r ( $dir, $DeleteMe = TRUE ) { if ( ! $dh = @opendir ( $dir ) ) return; while ( false !== ( $obj = readdir ( $dh ) ) ) { if ( …

Member Avatar for SKANK!!!!!
0
134
Member Avatar for phneoix

We have been using dbase4 in our workshop for all our database requirments for the last 12 years. for example our stores management, finances, salaries, challans, quotations etc. Now i want to upgrade to open source software, but i am quite unsure as to whether "mysql" will fulfill all my …

Member Avatar for mwasif
0
292
Member Avatar for snakay

Hi, I'm having problem when I read more then one datareaders in row. The second one always get exception. I know this is one of the favourite topics of ADO.NET, but could not solve my problem no matter what I do. I use a class to prepare my datareader. If …

Member Avatar for snakay
0
114
Member Avatar for matasko24

Hallo I would like to make some simple mp3 player as my diploma work,but I dont have a lot of skills about this problematic.Can you help me? Thank you.

Member Avatar for matasko24
0
77
Member Avatar for shankbond

Hi, I am making a form in asp.net 3.5 which will send an email to the recipient Initially I was using system.web.mail as it is obvious whenever you send an email to some recipient a display name appears instead of theemail id of the sender consider: mail_sender=mail@gmail.com display_name="my name" in …

Member Avatar for shankbond
0
116
Member Avatar for somaja

[B][COLOR="Red"]hi every body i need a lot of help in my assignment : and of course i will show my work .[/COLOR] really biggeners :confused: +++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++ [COLOR="Red"] this is the task :[/COLOR] The factorial of a number n (written n!) is the number times the factorial of itself minus …

Member Avatar for squ
0
411
Member Avatar for peck3277

Hey guys, Hopefully someone out there can help me. I've written a script that displays the contents of a directory. It also links to the file so when I click on it it displays the file contents. What I want to do is when I click on that file it …

Member Avatar for peck3277
0
153
Member Avatar for Lord Soth

Note that the angle is in 1/10 of degrees. Any attempt to manipulate font.size or font.color will reset the angle to zero degrees.

Member Avatar for Vector Khanal
0
239
Member Avatar for nevets04

Heres the situation so far.I'm in 9th grade and I've been programming in python. I enjoy python however, my high school doesn't offer any courses for python. In 11th and 12th grade, I can take C++. So here's my question: Should I: A) Learn python for the next to years …

Member Avatar for hawash
0
198
Member Avatar for network18

I have an API parsing script, which inserts into the db more than 40,000 rows.and maybe due large numbers of queries getting fired continuously, after some specific time the script throws "MySQL server has gone away" error. I know the reason behind this error can be closed connection or any …

Member Avatar for network18
0
705

The End.