199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm fairly new to C++. My project states that I must write a program that will allow the user to view a list of TV shows read from an input file. each show should consist of four data members: show ID, Title, day of show, and time(pm). ID serves … | |
hi everyone i'm new in programing, so don't judge me if i will say something stupid... i'm trying to write i poker game in C++ but have faced with several problems, the first one is how to determine a winner... for example i player hand is: Ace of spades card … | |
i dont know where to put my getValidString validation when i ask the user if he wants to judge another public class JudgingApp { public static void main(String args[]) { Scanner sc= new Scanner(System.in); DecimalFormat df = new DecimalFormat("0.##");//format decimals to 2 decimal places //These variables hold the max and … | |
hey guys i have a problem with a game of mine...farcry....the problem is that whenever i play the game the graphics gets messed up and the screen goes white though im still playing the game....ie, the game doesnt hang at all. i am currently using a dell computer: intel core2 … | |
Can somebody tell me how to set a cookies & how to retrive cookie values on the other page???? Why cookies are used???? If we have to pass info from one page to another,for dat we can use QuerySTring,y Cookies??? | |
Hi! i have an asp.net project developed. Now i want to run it on lan. I mean i want to store all the asp files on the server and access it from the clients through browsers. what is the mechanism used for it vry vry vry urgent plz thnx in … | |
Hey, I'm currently learning about classes and I am wondering how to implement a sub-class into a class. I have a class atm called "Person" but I want to create a sub-class called administrators. So would it be: [code] Class person { public: // class methods // class methods private: … | |
Hello, I am trying to make a program to calculate the payment for a babysitter like this: A babysitter charges $5 an hour until 9:00 p.m., at which point the rate drops to $3 an hour because the kids are in bed # the start and end times are in … | |
Hello, I need some help on processing only even numbers on a counter-controlled do-while-loop, an event-controlled do-while-loop, and event-controlled do-while-loop to process only even numbers that breaks within the loop. I'm new at C++ so help would be appreciated. Thanks. [CODE] #include <iostream> #include <fstream> #include <string> #include <cstring> #include … | |
hi i want that if i click on a particular row of a datagrid then rows lying below and above the clicked one, should swap.i mean to say that the row lying below the clicked one must reach above the clicked one and the rows lying above the clicked one … | |
When the program calls the getValidString it won't display "Judge Another? (y/n)" It seems like everything should work I just can't figure it out //see if the user would like to continue choice = getValidString(sc,"Judge Another? (y/n): ", "y" , "n" ); private static String getValidString(Scanner sc, String prompt, String … | |
I am having a real tough time understanding the logic involved in writing the pseudocode for the following problem. Any help would be greatly appreciated and beneficial. If someone could please show me an example of how they would write the pseudocode for this problem, I could learn from the … | |
Hello all, I am writing a program that implements a parser for the grammar. One of the methods I created is a boolean method which returns true or false depending on if a character is an expression. The compiler is saying "this method must return a result of type boolean" … | |
hey im a freshmen in hightschool and i need to learn to code, i was hoping some one could tell me the the [COLOR="Green"]visuial basic [/COLOR]version of this [COLOR="Red"].NET [/COLOR]codeing and i know i made a few mestakes Dim Name As String Console.WriteLine("your name here" {} ) Dim Name As … | |
I have no idea how to fix the compile warning. Y:\Development\Java\Mileage\Mileage\src\my\Mileage\MileageUI.java:296: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector dataList.add(doctorData); Appreciate some suggestions. Thanks.. | |
I'm attempting to create a computer program that prints a triangle of digits, as well as a "ruler" that measures the user specified width of the screen, showing the width in digits. The ruler must have a tens row and a ones row. The program reads three integers: a) the … | |
Hello guys.. I am really new to OOP (object-oriented programming) with C++. I am trying to make a simulation window program. I have a bit confused about apply linked-list inside the class. I mean, I am trying use linked-list to do adding item menu. Yes, I make the lists of … | |
Hello all, I am writing a program for a class that implements a parser for a given grammar. I have already successfully written it in c++ and now I have to also write it in java. The string to be parsed is a string array in my program and when … | |
Hi, I was hoping someone could help me with a C++ string problem. I currently have my program open up a file, read the contents into a string, and then I am trying to look for certain key characters in the string, like < and </. In short, I am … | |
Helllo all, well I am trying to split a file on the basis of space first and then trying to join it with "-" but i am not able to do it, can sumone please suggest what should I do in order to do it. I am attaching the required … | |
I'm mapping out an entity relationship diagram to try learn more about database design. I currently have approximately 17 tables that map out a quotation management system that quotes customers prices for products and/or services. I've been working on it for a number of days now but I am unable … | |
so I am working on an assignment in class, and I've hit a road block. the assignment is to replace certain letters (b, c) with others, (x, y). Right now, my program is not recognizing 'b' in ebx, and the second letter in the array, 'b', (stored in eax) as … | |
Hey, I am trying to write a program that will take the grades from an input file and average them and print them to an output file along with the names and grades. I know i am missing something simple (but ive been staring at this for 6 hours). Here … | |
Hello, I was just wondering if the hlt instruction would produce a blinking cursor at the command line until enter is pressed or if its use is not noticeable to the user. Google wasn't too helpful for the specifics of the instruction. Thanks! | |
Alright, I'm trying to get a script to visit a website and copy the contents. The problem is that I must fill out a form before I can get to the page I want, but that's not the issue really. The url basically does this. [url]www.mysite.com/page.php[/url] // form is submitted … | |
Hello Community, I have the following query: [CODE]SELECT Inventory.Inventory_Id, Inventory.Inventory_description, Inventory.Inventory_stock_count, nz((SELECT Sum(Order.item_qty) AS SumOfitem_qty FROM [Order] WHERE Order.From_date<=Date() AND (Order.To_date)>=Date() AND Order.Item_ID="I" & Inventory.Inventory_Id),0) AS CurrentlyOut, [Inventory_stock_count]-Nz((SELECT Sum(Order.item_qty) AS SumOfitem_qty FROM [Order] WHERE Order.From_date<=Date() AND (Order.To_date)>=Date() AND Order.Item_ID="I" & Inventory.Inventory_Id),0) AS NetHere FROM Inventory;[/CODE] This query runs perfectly under … | |
#include<iostream> using namespace std; int main() { char name; cout<<"Enter your name.\n"; cin >> name; cin.get(); cout<<"Hello, " << name; cin.get(); } this is what I have.. Very simple program but I cannot get it to work, as soon as I enter two or more letters when debugging, the cmd … | |
I'm trying to set up an app for users to put their individual photos into different albums, eg. friends, family, whatever. I would like one pic from that album to be displayed for each album along with the album name. I thought SELECT DISTINCT would do the trick for me … | |
could be this is an HTML problem, but I'll take the help anywhere I can find it... [CODE] <% @ Page Language = "VB" aspcompat=true Explicit="True" Dim src As String = " bet " %> <html> <head ></head> <body > <form name=loc action=testsac.aspx method=get> <table class=s0 width=100% cellpadding=1 cellspacing=1 align=center … | |
Dear all, There is some errors in the code that I can’t seem to spot. The code is [CODE]# include <iostream> using namespace std; int main () { int N; // Declaring and initializing variables int n=0; int i=0; int fact=1; cout << "Please Enter an Integer" << endl; // … | |
Hi all, I have a library built in C++ targeted for linux platform. The authors suggested that with some minor changes, it can be compiled in windows as well.. This library in turn uses the mathematical library called miracl, which does support VC++ and I was also able to build … | |
Hi, Im new to DaniWeb and C++ and was hoping some of you more experienced tech fellas could help me out with a problem. I want to open a file, then read it by 5 characters at a time by putting it into a [CODE]char[5][/CODE] type of array, then analyze … | |
![]() | Hello all. This is not a php question, but I assume that you php aficionados will probably know more about this than most. I have a laptop that I use from home and work and have a different IP address when connecting from different locations. I am able to gain … ![]() |
Hi All, I'm curious to know what is the difference as well as recommendation for two beasts :) Is it Panda or Pygame and why? | |
> THe program works - its is the last piece of code I am having trouble with. I am supposed the wirte and function (month_conversion) which changes the int month that is represented in the input by (montnNumber and monthNumber1 input that number which represents the month and conver that … | |
I have an array of numbers and want to print out how many of each number there are in the array. My method works but I was wondering what a more efficient way of doing this would be. I figure a loop would work but I haven't figured out how … | |
Hello, I've made a website but I've run into a problem. The site looks great when the user has the browser window maximized but when the browser is minimized an image I have on the right side of the screen is pushed over onto my background image. This is what … | |
I have a txt file as an input. It is a list which looks like this: [COLOR="Red"]A12345 B153875 C34893 ... ...[/COLOR] and I have a database file which looks like this: [COLOR="Green"]A12345 detail information nvonafwenfovosdncsjdnfoewhuwerhwieufhiudhfisdfnsd sdofnowerugfeuhgfurhgiuwerhfjdshfiasdhifheruwufhi irgfiweurgf A246 detail information isdofnowerugfeuhgfurhgiuwerhfjdshfiadhifheruwufhi wgerjgneiguihuhdnvkjdnvkjbdegiauberiubgieubgridfb ooogrngoawerngiauengugbuivrug B153875 detail information wgerjgneiguihuvkwwjddnvkegtiaugberijubgieubgridfb eragnowergnoweungfiousdhiuhsdnjkfnsk C34893 detail … | |
I have administration part of my web site. But it will have only one user who will login in the page.My question what is more safely from attacks ? The user and password to be stored in mysql database or directly in .php file ? | |
Hey, so I need to write an algorithm that will do the following and run in O(n): Search linearly through an array of size n and for each element check whether array[i]>array[i-k] for all k=1,2,...n/5. Its easy to do this with two loops but I cant figure out how to … | |
Hi all, My first post here -- I've been trying to update some old code that uses C-style casts into the C++ equivalent, and I've stumbled on one cast that I can't figure out how to convert. This isn't the code that was giving me issues, but it reproduces the … | |
First look at attached picture. As you can see there is few check boxes. I would like when I click Install it run selected components (mostly .exe or .bat file) If I'm sure I need to add some code to event handler of Install button? Now in event handler there … | |
Unfortunately, I couldn't find a suitable thread already so please forgive me if there is one already... but! This was a project due today which I just bit the bullet and left out one part of. Here is my problem: I am building a circular doubly linked list with a … | |
i am trying to host my own site............i have one static ip address...........and windows xp and wamp installed the site is working fine ............. but when ever i try to see the site it imediately starts to download original index.php file but when ever i try to access my site … | |
I need help!!! !I am just starting a programming class but teacher hasn't taught anything about writing pseduocode, yet she expects us to be able to do so. Here is what she wants me to do, but the book doesn't elaborate much on this. Any help will be appreciated even … | |
I am trying to optimize my hash function, for a separate chaining hash table that I have created from scratch. My hash function is as follows: [CODE] int hash( const string &key, int tableSize) { int hashVal = 0; for(int i = 0; i<key.length(); i++) hashVal = 37*hashVal+key[i]; hashVal %= … | |
1. Create a class Account that has following instance variables: a. private account number (string) b. private account holder name (string) c. private balance (floating-point) d. private account opening date (string) e. profitRate (final, floating-point): 5% for all accounts Supply a default constructor, a parameterized constructor, and a clone constructor. … | |
Howdy, I have an assignment which requires that I get user input for 3 different variables, each in it's own function. These three functions are called by another function, which is called by main to begin with. Each of these inputs have a range that the input must be in. … | |
So I would like to know if there's any way to do the following more efficiently: [CODE]while(g[0] = 0 || g[0] = 1 || g[0] = 2 || g[0] = 3 || g[0] = 4 || g[0] = 5 || g[0] = 6 || g[0] = 7 || g[0] = … | |
how can i make a program that the computer will allow the usser to input a number.. then it will turn into a word? example: 1030=one thousand thirty |
The End.