132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SquirrelProdigy

Is it neccesary to ever define more than one output or input handle in a Win32 Console program?

Software Development c
Member Avatar for Narue
0
257
Member Avatar for Narue

Just for fun, I threw this together by modifying and adding to a simple language definition posted here recently. Since everyone hates me, I'll give you a chance to snipe at my first draft. :D The code is long enough to be an uncomfortable post, so I'll attach a zip …

Software Development first-post
Member Avatar for Narue
0
546
Member Avatar for pmorones

My homework assignment is to implement a class that represents a set of integers. Each set object may contain up to 100 integers. The main program will allow the user to create up to 10 different Set objects and perform actions on them. Actions such as return the interaction, union, …

Software Development c++
Member Avatar for Fasola
0
172
Member Avatar for maizen

Okay, I'm trying to do my homework, but my code isn't doing what I want it to. What I'm trying to do is have the user enter a file name and then the program will output the number of words in the file. It works fine the first time through …

Software Development c++ file-system
Member Avatar for Dave Sinkula
0
349
Member Avatar for hopeolicious

[CODE][#include <iostream.h> void initialize(int& coke, int& pepsi, int& dry, int& hires); void sales_type(char& sale_type, int& brand, int& quantity, int& coke, int& pepsi, int& dry, int& hires); //void clearline(); void purchased(int& brand, int& quantity, int& coke, int& pepsi, int& dry, int& hires); void sell(int& brand, int& quantity, int& coke, int& pepsi, …

Software Development c++
Member Avatar for Narue
0
129
Member Avatar for phragix

I declared mNodes as a String Array and try to assign a value to it with sTemp which is a String as well...but there's an error occurred as: "array required, but java.lang.String found". I don't understand why. I need some suggestion please. Thank you. String sTemp; String mNodes[][] = new …

Software Development java
Member Avatar for phragix
0
539
Member Avatar for scrapper777

Hi, I am having problem with the following code.This is on a 32 bit system. The problem statement is: /* isLess - if x < y then return 1, else return 0 * Example: isLess(4,5) = 1. * Legal ops: ! ~ & ^ | + << >> * Max …

Software Development c legal
Member Avatar for Tight_Coder_Ex
0
174
Member Avatar for Dani

[b]Declaring Objects[/b] When one works with classes, each instance of the class which is defined is known as an object. C++ is an extremely object oriented language (perhaps not so much so as Java, however). In OOP, or Object Oriented Programming, one can easily perform multiple tasks on objects which …

Software Development c++ data-structure java-swing oop
Member Avatar for Pmaster
0
149
Member Avatar for computerages

Hello everyone! I am planning to build a database application for my school to maintain school lockers. However, I have a few questions regarding that application: [list=1] [*]Is it possible to use access databse with C++? [*]Is there anyway to authenicate a user with C++? [*]How shoud I go about …

Software Development c++ gui
Member Avatar for Narue
0
161
Member Avatar for tricia

Hi, I have 2 variables defined in a code module as public which are used in the same 3 sub procedures. While the first variable is ok, when I debug, the second variables comes up "variable not defined"! Can anyone help? PS I'm a researcher using VB to design experiments …

Software Development visual-basic
Member Avatar for tricia
0
178
Member Avatar for shelly121

Please help!!iv tryed and tryed with this!basically i have a combo box which displays the date-of-births from 1940-1995, and a button to press to display the maximum mortgage in a label. The max mortgage depends on the age of client:[quote] *Over 50yrs- maximum mortage = 15yrs *between 40 - 50 …

Software Development display vb.net
Member Avatar for shelly121
0
141
Member Avatar for TheWorld

hi all ;) i'm fairly new with c++ and i'm having some problems with a dynamic array of structures. I've declared the array with the syntax structname *pointername= new structname[3]. Now, if i try to assign to one of the structures members a value the compiler (visual c++ 2003) gives …

Software Development c++
Member Avatar for Dave Sinkula
0
137
Member Avatar for Tight_Coder_Ex

[b]kimfalk[/b] posed a question about static functions in a class in [url="http://www.daniweb.com/techtalkforums/thread19241.html"]http://www.daniweb.com/techtalkforums/thread19241.html[/url] to which my reponse was duly correct by [Quote=Narue]You're mixing up your statics. :) static is overloaded for too many different uses. In a class declaration, static means that the name belongs to the class and not to …

Software Development c++ oop storage
Member Avatar for Tight_Coder_Ex
0
135
Member Avatar for Cherrio

Can someone help me find the error that keeps this prg from running thanx [code] #include <iostream> #include <vector> using namespace std; int main() { vector<int>v(1,1); v.push_back(2);v.push_back(3);v.push_back(4); vector<int>::iterator i=v.begin(); vector<int>::iterator j=i+2;cout<<*j<<""; i+=3;cout<<*i<<""; j=i-1;cout<<*j<<""; j-=2; cout<<*j<<""; cout<<v[1]<<endl; //output 1 (j<i)?cout<<"j<i":cout<<"not(j<i)";cout<<endl; //output 2 (j>i)?cout<<"j>i":cout<<"not(j>i)";cout<<endl; //output 3 i=j; i<=J&&j<=i?cout<<"i and j equal":cout<<"i and …

Software Development c++
Member Avatar for Cherrio
0
114
Member Avatar for KUJhawks

Hello everyone, I have just started learning C++ and I am trying to write a program that reads from a file (scores.txt) and then prints the average of these numbers to the screen and print to another file named "average.txt." I have written some code but when I compile I …

Software Development c++ file-system
Member Avatar for Gnome_101
0
141
Member Avatar for Lorita

Hi, I need help changing this code to reference the variables rather than using the return statement. This is as far as I have gotten and my brain is mush...Please help. Thanks! #include <iostream.h> #include <conio.h> void main() { int numDrawers; int x=0; double total; //int getDrawers(); //int getWood(); double …

Software Development c++
Member Avatar for compshooter
0
278
Member Avatar for Kiba Ookami

Hello all! I'm a year one programming student who is currently finishing up his first year, and heading into AP! We only really work with VB in our corse, and we're not moving too fast, so I had a question I'd hope was answerable. Is it possable to cause a …

Software Development visual-basic
Member Avatar for uniquestar
0
140
Member Avatar for {{unknown}}

Hi.. I made two codes in C language. One of them is a [B]Dynamic stack [/B] and the other is [B]Dynamic queue[/B]. They are working correctly but I had one problem In both of them. The option 3 in Dynamic Stack [B]code [COLOR=DarkRed]doesn't display the topic in order[/COLOR][/B]? This problem …

Software Development c display email queue
Member Avatar for Dave Sinkula
0
140
Member Avatar for server_crash

I had all of this program finished except for the plotting like a week ago...Ever since then, I've been trying to figure out how to plot the stupid polynomials..I thought I had it, but the program seems to go crazy whenever it's suppose to repaint..It's like repainting components on top …

Software Development image java java-swing
Member Avatar for server_crash
0
128
Member Avatar for kimfalk

How do I solve this? [COLOR=DarkRed]illegal reference to data member 'myClass:flag' in a static member function [/COLOR] [CODE] class myClass{ public: static void change_flag(); private: bool flag; }; myClass::change_flag(){ flag=false; } [/CODE]

Software Development c
Member Avatar for prog-bman
0
492
Member Avatar for Chester1

Iam a New to web page need help making My program access a web page automatic, so when a user starts a program it will send user to server to get information off of server

Software Development c web-server
Member Avatar for Narue
0
120
Member Avatar for jonnie83

This is my first attempt at creating a program and I am having great problems. The program is meant to scan a file and increment a counter if specific words are found. Can anyone let me know where I'm going wrong,Thanks #include <iostream> #include <fstream> #include <string> #include <iomanip> #include …

Software Development c++ display ios
Member Avatar for Acidburn
0
136
Member Avatar for scar_zone82

hello there ....can someone help me solve my problem of my assignment....i try to code it....so I need some guidances ... This is the question... An operating systems uses shortest job first scheduling for it’s process management. Assume that there are 10 processes waiting in a queue which is implemented …

Software Development c linked-list operating-system queue
Member Avatar for vegaseat
0
195
Member Avatar for JB1

Dear all, I have a question around the issue of using VB6 to access MS Access databases. Can VB6 be used to open access 2002, retrieve data from and input data into a table? The following code keeps on giving me the message of "Unrecognised database format" error code 3343. …

Software Development visual-basic
Member Avatar for uniquestar
0
227
Member Avatar for jksmithyuk

Im wondering if anyone can suggest a solution to my problem. Im simply trying to connect to a database through VB 6 and add a new record and populate one of the fields. Any help would be great. The code below throws up error message 'Current Recordset does not support …

Software Development microsoft open-source visual-basic
Member Avatar for uniquestar
0
102
Member Avatar for ecyarter

Can anyone tell me how to get rid of console window? I'm writing a gui program for an assignment... Spoiled by VB... I use the console for troubleshooting while testing or writing code, but would like to make it invisible or close it while sharing with the class. (We run …

Software Development gui java
Member Avatar for Ghost
0
140
Member Avatar for ltme

Hi Everyone, I've read some threads on this forum and found some good hints already :) I'm having trouble writing a script and would appreciate all input, advice, info, or tips. I'd like to write a script that does the following; - identifies current recognized partitions - flags those with …

Software Development ide shell-scripting
0
121
Member Avatar for roeschh2

i am having a problem with a function i am writing that takes in a txt file and stores the data in 3 arrays. The data file is always rows containing three numbers such as 1 2 3 2 3 4 5 6 7 8 9 10 with each column …

Software Development c++ file-system
Member Avatar for roeschh2
0
82
Member Avatar for hopeolicious

I know everything that i want to do but i never did a menu before so i dont know how to go about doing so if at all possible can someone post a sample program that uses a menu-selection with subprograms for each. This here is something like what i …

Software Development c++ display first-post
Member Avatar for Narue
0
199
Member Avatar for Khishin

At the beginning of an "IF" statement, I have: [code]if (SHORT GetKeyState(int 48)==1){[/code] When compiling I get a syntax error just before the constant, and I've played around with it a bit, but haven't found what to do. Could someone fix this or explain to me why it's not working?

Software Development c
Member Avatar for Narue
0
130
Member Avatar for Ronbo

Hello One & All, I am a fully experienced mainframe programmer, attempting to program for Windows utilizing the Assembly language. Am technically oriented. Have written 11 16 bit real mode PC DOS programs three of which dynamically linked Have written one 32 bit protected mode VB 5 program, utilizing both …

Software Development assembly
Member Avatar for Ronbo
0
114
Member Avatar for Jaron

1)UNIX operating system uses Round robin Time slicing with multilevel feed back. Assume that there are 10 processes waiting in a queue which is implemented as a linked list of PCB’s ( process control blocks). Assume the PCB have information about Process ID , CPU burst time required , amount …

Software Development c++ linked-list operating-system queue unix
Member Avatar for Intel
0
428
Member Avatar for missy

#include <iostream> using namespace std; #include <string> #include<cstring> int main() { char list1[50][31],list2[50][31],list3[100][31]; int i, size1, size2, i1, i2, i3; char ch; int inf; ifstream indata; ofstream outdata; // read each list while(inf.peek()= EOF) { inf>> list1; i++; size 1=i; i=0; } while(inf.peek()= EOF) { inf>>list2; i++; } size 2=i; …

Software Development c++
Member Avatar for Intel
0
168
Member Avatar for OurNation

I want to learn a good programing languge and was wondering if c or c++ is a good languge to learn I know HTML and some Java. :(

Software Development c++
Member Avatar for frrossk
0
115
Member Avatar for os008

Hi, i want the best program to compare CPP files, i tried Araxis and Beyond Compare and ExamDiff, all compare good, BUT, the problem is that i want a program which compares the WHOLE file, then gives me the REAL differences, meaning ..., let's say there's a TEST1::TEST2 (int x) …

Software Development c++ file-system
Member Avatar for os008
0
153
Member Avatar for mariners95

Could someone help me with a linked list code. I just cant figure it out. I dont know how to code the part where I need to insert an element in ascending order. Either when there are no nodes then when there is one or a few nodes. Can anyone …

Software Development c linked-list
Member Avatar for Tight_Coder_Ex
0
77
Member Avatar for alsoagirl

I have read in problems "INFIX" AND CHANGED THEM TO "POSTFIX" or RPN notation, however i need to evaluate the problems and i can't get this to work. I am not sure where to go from the infix to postifix i have. Please help. My Stack.h is just a basic …

Software Development c++ display mathematics
Member Avatar for alsoagirl
0
105
Member Avatar for tommy_tucker198

I have decieded to learn c++ just wondering what compilers you would all suggest? thanks

Software Development c++
Member Avatar for alsoagirl
0
183
Member Avatar for blackdove

Can someone help me please? I've got 17 errors and 3 warnings. The main problem is that it keeps telling me that "Triangle" isn't a class name :confused: i'm so confused. Could you also help me with any other problems that you see? Thx in advance. (list of errors at …

Software Development c++ display storage
Member Avatar for blackdove
0
229
Member Avatar for Sadako

Hello! :p I don't fully understand how the Fall-Through method works. I’m making a Calendar and I’m using the switch statement to find which season it is for the month. Here is the book code: [CODE]switch (month) { case 12: case 1: case 2: Console::WriteLine(S" [Winter]"); break; case 3: case …

Software Development c
Member Avatar for Sadako
0
240
Member Avatar for tuskyballer

I'm about 3 weeks into my C++ class. I already made a simple program below that calculates grade averages and received an A. Now my teacher wants me to turn in three variations of it, replacing the goto with a while, do while, or for loop. I have experimented and …

Software Development c++
Member Avatar for Stack Overflow
0
716
Member Avatar for SquirrelProdigy

What I'm looking for is where to look for how to set the size of the console window automatically, as opposed to the default. I've searched through the MSDN library's Console reference for any function that would set it, but nothing seemed relevant to me, granted I'm not very proficient …

Software Development c
Member Avatar for prog-bman
0
115
Member Avatar for deejay400

Hi, Trying to get my head around constructing an array of pointers (I think this is what its called). Been reading lots of online tutorials etc and just getting confused. Basically what I'm trying to is set an array of chars, with each array cell pointing to a linked list …

Software Development c linked-list
Member Avatar for Tight_Coder_Ex
0
107
Member Avatar for Tom Pilk

I've produced an exe file in visual basic - (recently downloaded as beta version) When I run it it will start up an excel file - runs fine on my computer but when I try it on another I get error message that dotnetfx must be installed. Can I alter …

Software Development file-system vb.net visual-basic
Member Avatar for mcldev
0
152
Member Avatar for nanodano

Hey guys, I am trying to write a section of a program that reads in data from a file and stores the data into an array. The problem is the length of the file can vary, and I need to know how many items to store in the array.(I really …

Software Development c++ file-system
Member Avatar for Tight_Coder_Ex
0
101
Member Avatar for ohnbabygal

hi im tryin to read some info (both characters and integers) from an input file and save them into the sorted list. it is a big project and i cant put all the files i have over here. so i'll just put the part im having a problem. i have …

Software Development c++ display
Member Avatar for Dave Sinkula
0
112
Member Avatar for seeplusplus

alright, here i have this code i wrote....but it tells me now i have to have a public member function that will add two rational numbers, and have the result be stored in reduced form.......hmmmmmm......heres my code: RATIONALL [code] #include <iostream> using std::cout; using std::cin; using std::endl; class rational { …

Software Development c++
Member Avatar for Dave Sinkula
0
120
Member Avatar for cap2361

ok, help!!! I'm totally lost. I have to use a file stream program and add names to file, then keep count of file names, then display the count of names entered and the names entered. Use a loop to enter names until prompt to end. these are just two of …

Software Development c c# c++ display file-stream ios
Member Avatar for cap2361
0
149
Member Avatar for server_crash

I have this problem with graphics, actually I know it's with my compiler... If I try to set the background of a button or something I get erros that's not even in my code.. I have this: [Code] btnCalc.setBackground(Color.blue); [/Code] and I get theses errors [Code] //g is already defined …

Software Development java
Member Avatar for server_crash
0
143
Member Avatar for OurNation

I have a GUI that displays a graph and I want to have some help with a code that allows you to click a point and then another point and then it draws a line. I need some help with this because I don't know were to start. ;)

Software Development gui java
Member Avatar for server_crash
0
103

The End.