199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JoBe

Hello ladies and gents, Ive got this example of a program that I tried out wich shows some special possibilities to use new. [code] #include <iostream> using namespace std; int main() { int a[100]= {0}; for (int i = 0; i < 100; ++i) a[i] = 100 * i; int …

Member Avatar for Fasola
0
276
Member Avatar for edw5086

Hello Everyone! how are you? fine i hope. How can i print just 5 records per Table row and the next 5 records on the next table row? Much thanks in advance! #!/perl/bin/perl print "Content-type:text/html\n\n"; open(INF,"data.txt") or dienice("Can't open data.txt: $! \n"); @grok = <INF>; close(INF); print <<EndHdr; <html><head><title>My Data</title></head> …

Member Avatar for Comatose
0
160
Member Avatar for winbatch

What's the difference between a set and a map? (As described below on cppreference) Set: The C++ Set is an associative container that contains a sorted set of unique objects. Map: C++ Maps are sorted associative containers that contain unique key/value pairs. I'm having trouble finding the distinction.

Member Avatar for Narue
0
631
Member Avatar for WhataNerd

I didn't know which thread to post this question in so i just chose the visual basic one(random). My question is what do you guys recommend as a first programming language to learn for a highschool student interested in game programming....i'm sure there are a few that would do fine, …

Member Avatar for Iron_Cross
0
457
Member Avatar for sKiTzo

I recently purchased music files from "musicnow.com" and have discovered that my "purchased" files are apparently not exclusively mine at all as I have had nothing but problems with these files. After twice having to redownload the files purportedly due to "problems with the musicnow software", I now get this …

Member Avatar for Iron_Cross
0
151
Member Avatar for apcxpc

I've got to implement Prolog in C++ for an assignment. I'm very new to C++, it's a little daunting. Also, I have no idea of where to start. Can someone point me to some basic algorithm and/or some resources online?

Member Avatar for apcxpc
0
391
Member Avatar for acee

Working on a problem which uses a main only to implement Selection Sort. You enter arbitrary amount of integers and when the program runs it spits out the integers in increasing order. So the output would be something like this: Enter Integers to sort: 3 > 1 > 8 > …

Member Avatar for shyammurarka
0
410
Member Avatar for tat2dlady

Does anyone know how to match a negative number? What I am doing is printing the lexemes with their token to an output file. But, the problem is negative numbers. It should print like this: INT -1 Instead, it prints like this: SUB - INT 1 The SUB - is …

Member Avatar for Comatose
0
192
Member Avatar for yacob_uk

Hi, I have two problems, been bugging me for a couple of days... I have a 32bit float array that has been calculated, I now need to convert it to 16bit int values to be scaled for use. I tried the code: h[N] = int (h[N]*(scale[N]) and that sort of …

Member Avatar for yacob_uk
0
169
Member Avatar for winbatch

Hi, I've been experimenting with STL on solaris with the 7.0 sun compiler. I am able to write programs using string, map, vector, list, etc. however, I am trying to use hash_map and can't get the most basic (ie hash_map<string,string> h; ) to compile. It appears that hash_map is not …

Member Avatar for winbatch
0
217
Member Avatar for techied
Member Avatar for nucleo

I am writing to console from several threads using printf(). The process is synchronized and it works fine. The problem is that sometimes some of threads freezes (never returns ) at WriteFile() function used to implement printf() and the really strange here is that it returns and everything continues when …

Member Avatar for Narue
0
389
Member Avatar for thomasisaac

Hi, in part of some code i am using there is a message defined by: char message1[133]="Please Select Features"; And then its referenced as: feature_select=message1; And called as a perameter using: UF_UI_select_feature ( feature_select, NULL, &count, &feature_tags, &response) I was just wandering what the [133] part is. Is it just …

Member Avatar for thomasisaac
0
135
Member Avatar for Qatar

Hello ... I must do a mini project on Inheritance .. It's about 2-D and 3-D shapes.. The base class is point .. and we must define as many derived classes as we could such as circle .. rectangle .. triangle .. Cylender .... and so on ! The most …

Member Avatar for Narue
0
153
Member Avatar for nandoo

Hi everyone, Last time i posted an question but still there is no response. ok no problem but this time i came with solution but with small difficulties. could you please help atleast in this difficulties. i have created the page with button and on clicking the button it produces …

0
144
Member Avatar for jopdukes

I have been given the task of writing a small shell script which does the following: It takes two arguments: the first argument is the name of the original file and the second argument is the new name for the file. If a user does not provide two arguments, a …

Member Avatar for ShaneUniStudent
0
201
Member Avatar for sydneyrustle

hi just wondering if anyone can help me out. i need to create a loop to display 50 roll of two dice?? i keep getting an infinate loop and i don't know how to limit it to 50.....

Member Avatar for sydneyrustle
0
156
Member Avatar for Anine

I am working on a login password. I want my front page to load and then the password form to appear. The user then types in userid and password - if correct the login form closes. I want the front page to remain visible behind the login form BUT - …

0
100
Member Avatar for Dark_Omen

Hello, I want to know how to use xml and c#. Can someone give me and example of how to do this or link me to a good tutorial. Thanks in advance

Member Avatar for Dark_Omen
0
112
Member Avatar for csi_a_m

I am trying to close this file so that it stops reading the array twice. i have placed it in different places but i does not seem to work, please look at my code and advise me on were to place the infile.close() Thanks in advance [code]#include <iostream> #include <fstream> …

Member Avatar for Dave Sinkula
0
161
Member Avatar for nawaray

:ehh: helloo... i have this renting application in which the user enters his name, phone , amount, date , payment to rent a flat ,, i have a table called rent which is related to this its fields are : name, telephone,amount, date, paid and there is one more field …

Member Avatar for mdv3441
0
448
Member Avatar for Fasola

I kind of know the definition through studying Java.] Inheritance is like when a child class inherits some value, object, or function from a parent class, right? I need an example of how its done in C++

Member Avatar for wilsonian
0
409
Member Avatar for XxAndyxX

Okay, this is driving me insane... The compiler error I'm getting says I am trying to convert a void to an account? I don't see why it thinks I'm trying to do that... Maybe you guys can help me out. [CODE] void get_accounts(account a[], int n); int add_customer(account a[], int …

Member Avatar for Dave Sinkula
0
175
Member Avatar for ckrieger1

I need help. I keep getting a Bus Error when I run my program and I've narrowed down where it occurs to the following code fragment. px0c0 and px0c1 are type double pointers and count_x0c0[m] and countc0 are integers. Can anyone see why this code would be giving me a …

Member Avatar for Fasola
0
267
Member Avatar for paradox814

I am in the process of learning JSP and my question is how do I check to see if a variable exists? The equivalent of this in php would be [php]if (isset($_POST['someVar']))[/php] or [php]if (isset($_GET['someVar']))[/php] any and all help would be appreciated!

Member Avatar for Comatose
0
206
Member Avatar for mntlnstituteflr

hey guys... i need help on making an undo/redo command in my menu... can ya help! o yeah! plz put this stuff n the simplist terms that you can think of like (insert this code here and this there) i just got vb standard 2003 3 days ago, and have …

Member Avatar for Iron_Cross
0
216
Member Avatar for tat2dlady

Does anyone know how to ignore the rest of a line in Perl? I am reading a file and printing out tokens to an output file. I want to ignore the rest of a line after a colon is found, which indicates a comment. That way it will not print …

Member Avatar for Comatose
0
217
Member Avatar for XxAndyxX

I'm wanting the program to read a line out of file. I wish c++ had .eoln()! I get: test.cpp:10: no match for `std::ifstream& != char' operator obviously because I'm comparing the wrong data types. [QUOTE] #include <iostream> #include <fstream> using namespace std; int main () { ifstream infile("test_file.txt"); while(infile!='\n' && …

Member Avatar for Dave Sinkula
0
9K
Member Avatar for hopeolicious

Can someone help me to make my program sort according to the average gallons used per car I keep geting 30 - 40 error when i try to compile it. Also my files do exist. [CODE]#include <fstream> #include <iostream> #include <iomanip> using namespace std; const int MAXCARS = 12; float …

Member Avatar for Dave Sinkula
0
156
Member Avatar for sensi

hi, i have been asked to create a class, TestStudentContactDetails, which uses another classes method. the first class StudentContactDetails contains a method emailAddress(String RegNumber, String Course). This method takes the Course code supplied and opens a csv file stored at c:\UserFiles. It then searches the file for an entry corresponding …

Member Avatar for Phaelax
0
246
Member Avatar for paradox814

When I open a Java Program, I want a method which returns true if the program is already running, and false otherwise. Is there a way to check for this? For example, say we open our web browser, the first time we open it, i want the method to return …

Member Avatar for tonakai
0
184
Member Avatar for dreyes67

:?: Ok, this might sound like a dumb question. I am a beginner and I am not sure how these programs work. Our programming dept. creates and maintains severl programs they wrote in VB6 and VB6.NET. Every few weeks they make changes to some of them and they go to …

Member Avatar for Comatose
0
189
Member Avatar for Facey

hello, i was wondering if you could help me out! i am creating a database in oracle8i (sqlplus) i am trying to allow on one of my pages for the user to select things from the table i.e if there is a passenger table, i want a combo box that …

Member Avatar for Facey
0
569
Member Avatar for Potsuki

Hi to all I have just joined this lovely community today. I was wondering if someone would be willing to help out a newbie gal with a pseudocode problem.... Basically I am trying to write some pseudo code for the following problem - A company has some data for each …

Member Avatar for murschech
0
186
Member Avatar for notbunny

I'm kind of lost. I'm trying to find the mode value in the list. All list are stroed in array. Anyone has any idea?

Member Avatar for notbunny
0
118
Member Avatar for electronym

Hi. Does anyone know how access data stored in Visual Fox Pro 6.0 (ancient, yes) through asp.net? I've read conflicting information, saying I need to use ODBC connections, but that doesn't work -- after I make my connection to the data table, I get an error on my command.execute saying …

Member Avatar for gmonee
0
204
Member Avatar for tyczj

i cant figure this out, here is what im suppose to do Create a text file containing the pertinent information for the following table(not the identification row): [code]Employee No. Department Pay Rate Exempt Hours Worked 101 41 8.11 Y 49 722 32 7.22 N 40 1273 23 5.43 Y 39 …

Member Avatar for Dave Sinkula
0
177
Member Avatar for Ghost

Hi Everybody, I was wondering if anybody knew if you can controll hardware with Java (open the CD drive, etc.). Thank you in advanced, C++

Member Avatar for miri
0
140
Member Avatar for SSSBoy

Anyone know how to remove an object at a particular index from an array? Im doing a Noah's Ark project for my class and Im using an Array to hold the abstract animal class and once an animal dies, I have to remove it from the list. However I can't …

Member Avatar for miri
0
238
Member Avatar for vex

What development kit is the most widely used? Which is the easiest to use? Thanks in advance

Member Avatar for miri
0
266
Member Avatar for mel2005

hello am in need of some help on question 7 and 11, if someone has time please also try question 15. i really don't have any idea how to do the following question, and i need to have this assignment in soon. could you please try. thank you (7) allows …

Member Avatar for marinme
0
280
Member Avatar for ellas747

I have this code that I started on but cant seem to finish it. i have to create an file and put the outcomes in it. I cant seem to figure it out. can soemone please help. thanks, john [code] #include <iostream> #include <fstream> #include <cstdlib> #include <ctime> using std::cout; …

Member Avatar for ellas747
0
184
Member Avatar for Raiders

[COLOR=Blue][FONT=Arial Black][SIZE=5]:idea: [COLOR=Blue][FONT=Arial Black][SIZE=4][FONT=Arial][SIZE=2]hi everyone, i need some help. My question is , if i want to input a password which is 123456, how do i output the password on the screen using ****** instead of 123456. Do anyone know how to create the source code ???[/SIZE][/FONT][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR]

Member Avatar for Dave Sinkula
0
188
Member Avatar for xanatoes
Member Avatar for Toulinwoek
0
106
Member Avatar for Acidburn

Hello, our tutor set us a task to do , which was make a vector out of a class. So I've implemented a basic one but it doesnt work well... its runs ect ... but when you re print the entered elements it doesnt print the correct ones: [php] #include …

Member Avatar for Dave Sinkula
0
167
Member Avatar for hbmarar

hi, I would like to know whether i can use the phpBB package with my current system configuration.... *Windows 98,XAMPP Can I use it to develop the offline intranet application which has all the features of the site though is for use within a Lan. how to install the package …

Member Avatar for mediaphyte
0
246
Member Avatar for banbangou

Anybody can help to explain why "m_line.replace(idx, m_search.size(), replace);" doesn't compile in cygwin and how to change it? Thanks. [code] using namespace std; int main(int argc, char *argv[]) { assert(argc==3 && "Usage: <searchstring> replacestring> to process stdin"); string m_line; string m_search(argv[1]); string m_replace(argv[2]); assert(m_search!=m_replace); while(getline(cin, m_line)) { while(true) { string::size_type …

Member Avatar for banbangou
0
125
Member Avatar for oberle1515

I need to find the square root of the following numbers 0,2,4,6,8,10,12,14,16,18,20 I know how to use the square root method I know how to use the loop function to find it for all numbers If I just wanted to print the numbers I can do this What I cant …

Member Avatar for oberle1515
0
144
Member Avatar for dazzer143

i'm having a trouble getting this right .. Write a program to calculate parking fee for customers who park their vehicles in a parking lot when the following information is given: The time the vehicle entered the lot (in 24-hour format, without a colon, such as 1645) The time the …

Member Avatar for peter_budo
0
224
Member Avatar for tyczj

im doing this lab and im so lost on it, i dont know where to start. here is the link for the lab [URL=http://north.ecc.edu/kuroskit/cs111-01-sp05/labs/Lab10%20spg%2005.doc]Lab[/URL] now im not lookin for someone to do it for me just help me out on gettin started. im not sure how to use arrays and …

Member Avatar for tyczj
0
228

The End.