199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ViP3l2

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 …

Member Avatar for DemonGal711
0
181
Member Avatar for Renas

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 …

Member Avatar for Clinton Portis
0
188
Member Avatar for El Duderino

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 …

Member Avatar for kekkaishi
0
164
Member Avatar for neilsam

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 …

Member Avatar for neilsam
0
94
Member Avatar for sandeep_1987

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???

Member Avatar for sandeep_1987
0
105
Member Avatar for ejazmusavi

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 …

Member Avatar for jbennet
0
103
Member Avatar for Phil++

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: …

Member Avatar for dkalita
0
149
Member Avatar for rociel

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 …

Member Avatar for snippsat
0
507
Member Avatar for ASFtlink

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 …

Member Avatar for DemonGal711
0
202
Member Avatar for sharad_85

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 …

Member Avatar for mail2saion
0
83
Member Avatar for jammercb

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 …

Member Avatar for El Duderino
0
128
Member Avatar for 2fac323

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 …

Member Avatar for BestJewSinceJC
0
107
Member Avatar for klackey19

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" …

Member Avatar for klackey19
0
184
Member Avatar for ipodkilla

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 …

Member Avatar for ipodkilla
0
143
Member Avatar for bruceaj

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..

Member Avatar for Mikeyp926
0
86
Member Avatar for Towely

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 …

Member Avatar for Towely
0
247
Member Avatar for tiara

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 …

Member Avatar for tiara
0
73
Member Avatar for klackey19

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 …

Member Avatar for Mikeyp926
0
156
Member Avatar for dylank

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 …

Member Avatar for Clinton Portis
0
383
Member Avatar for ajay_p5

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 …

Member Avatar for ajay_p5
0
126
Member Avatar for daveomcgee

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 …

Member Avatar for Airshow
0
173
Member Avatar for amw2326

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 …

Member Avatar for NotNull
0
152
Member Avatar for Ponomous

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 …

Member Avatar for Ponomous
0
319
Member Avatar for dmanw100

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!

Member Avatar for NotNull
0
192
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
118
Member Avatar for raymyster

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 …

Member Avatar for TomW
0
155
Member Avatar for poopynoob

#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 …

Member Avatar for poopynoob
0
154
Member Avatar for CFROG

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 …

Member Avatar for CFROG
0
90
Member Avatar for jimib

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 …

Member Avatar for jimib
0
120
Member Avatar for new programer

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; // …

Member Avatar for Grn Xtrm
0
340
Member Avatar for abhipro

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 …

Member Avatar for Agni
0
242
Member Avatar for dylank

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 …

Member Avatar for dylank
0
195
Member Avatar for diafol

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 …

Member Avatar for diafol
0
95
Member Avatar for Stefano Mtangoo

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?

Member Avatar for Stefano Mtangoo
0
132
Member Avatar for ross42111

> 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 …

Member Avatar for sfuo
0
104
Member Avatar for kiddo39

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 …

Member Avatar for kiddo39
0
119
Member Avatar for RunTimeError

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 …

Member Avatar for RunTimeError
0
176
Member Avatar for jacquelinek

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 …

Member Avatar for d5e5
0
195
Member Avatar for ultras1

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 ?

Member Avatar for smartness
0
124
Member Avatar for shakunni

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 …

Member Avatar for eggmatters
0
108
Member Avatar for Galf

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 …

Member Avatar for Galf
0
176
Member Avatar for kustrle

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 …

0
61
Member Avatar for Fire00f1y

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 …

Member Avatar for ~s.o.s~
0
172
Member Avatar for shishtawitch

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 …

Member Avatar for shishtawitch
0
95
Member Avatar for DumbGuy

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 …

Member Avatar for Grn Xtrm
0
180
Member Avatar for killerqb

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 %= …

Member Avatar for Rashakil Fol
0
5K
Member Avatar for ahmedshayan

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. …

Member Avatar for javaAddict
0
785
Member Avatar for jupiterrise

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. …

Member Avatar for dan63043
0
159
Member Avatar for Xantox

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] = …

Member Avatar for Sky Diploma
0
120
Member Avatar for vhertie

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

Member Avatar for vhertie
0
147

The End.