199,114 Archived Topics
Remove Filter ![]() | |
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, … | |
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 … | |
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 … | |
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 … | |
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. | |
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++. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 () … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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? | |
[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 … | |
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 | |
I want to call another object's methods from another object, and I have no idea how. Can someone please help me? Thank you. | |
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; … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 … | |
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, … | |
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 … | |
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 … | |
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> … | |
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! | |
[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 ( … | |
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 … | |
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 … | |
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. | |
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 … | |
[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 … | |
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 … | |
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. | |
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 … | |
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 … |
The End.