132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for arikeri

Hi, I have an assignment which entails coding a sequential state machine form arbitrary charecteristic table of a flip-flop and the state specifications given. .For example, if the user wants one input x and one output y, and the following excitatoin table for the state machine: | x = 0 …

Software Development c
Member Avatar for Dave Sinkula
0
134
Member Avatar for Iamhere

Hi ppl I would really appreciate if someone help me out here. I really tried to do this problem and its driving me crazy. All I could get is the algorithum of worst fit, best-fit next fit and first fit. Please help me as soon as I can. And I …

Software Development c++
Member Avatar for Iamhere
0
178
Member Avatar for robsammons

Hi I am trying to write a pipeline which updates the content of a file by replacing all the mathches of the word 'and' with the symbol '&' and replaces the end of each line with my name. I have tried using sed and can replace the and's but can't …

Software Development shell-scripting
Member Avatar for Stack Overflow
0
216
Member Avatar for degoden

I need some help with the following problem. We've touched on scanning tree algorithms a little bit, but not to this extent. My textbook has been useless so far. Can somebody help me with the answers to this? Answer the following: template <typename T> int treeFunc(tnode<T> *t) { int n …

Software Development algorithm c
Member Avatar for Narue
0
102
Member Avatar for roscioeak@direc

I posted earlier for help with this and someone gave me a good clue and I worked with it but I am still boggled. I have been working on a couple different ways to accomplish this but have come up with nothing right yet. I am close but still need …

Software Development c++ queue
Member Avatar for Narue
0
134
Member Avatar for tat2dlady

Can anyone tell me how to compare a string to an integer? I have a SSN stored as a string, SSN[10]. I need to compare each number in the SSN. What I need to do is to add up the ASCII values of the SSN to use for a hashing …

Software Development c++
Member Avatar for tat2dlady
0
105
Member Avatar for tat2dlady

Does anyone know how to stop a Java thread? I am not very familiar with Java and am not really sure exactly what I am doing. I have to create the necessary classes to facilitate an indirect blocking and non-blocking communication environment between threads (producers and consumers) using a bounded …

Software Development java queue
Member Avatar for jwenting
0
107
Member Avatar for firion

hi administrator, I'm a beginner in c++.I need to draw a graph(x vs y type).I used graphics.h and ended up with a very primitive version of a graph.The graph appears like a scribbling in the top left corner of the screen.I don't know how to draw the x and y …

Software Development c++
Member Avatar for vegaseat
0
103
Member Avatar for evilsilver

I am trying to get my program to display multiple files for a user to choose from to load, this is the general code i tried but don't know how to actually put it as (the for loop is what i am having the trouble with) [code] ofstream save; ifstream …

Software Development c display
Member Avatar for evilsilver
0
78
Member Avatar for TOG85

Hello i'm very new to programming and self teaching myself. I'm having a problem with my project. I'm trying to preform an equation, but every time I in put the variable it runs to the end. It is a programm to help solve precents for my friend. This is the …

Software Development c++
Member Avatar for Narue
0
90
Member Avatar for Lapari

Hi there, I am working on an assignment that I have to create a menu. The user is suppose to select the menu and change form color. But I have no idea how to that. Help please. Anyone?

Software Development visual-basic
Member Avatar for Lapari
0
253
Member Avatar for arikeri

consider this for [code]int i.j; for (i=0;i<=5;i++){ for (j=i+1;j<=5;j++){cout<<"\n"<<i<<"\t"<<j<<"\n"; } }[/code] now suppose we have[code]list<string>::iterator l,m;[/code] the corresponding thing[code] for (l=0;l<=5;l++){ for (k=l+1;k<=5;k++){cout<<"\n"<<i<<"\t"<<j<<"\n"; } }[/code] won't work because "l+1" is meaningless here. How do I solve this problem?

Software Development c++
Member Avatar for Narue
0
70
Member Avatar for Ghost

Hi: I'm writing my own programming language and I wanted to be able to save the code. When I compile i get this error message: "cml.java": cannot resolve symbol: constructor cml (int[],int[],java.lang.String)in class cml at line 439, column 13 Here's the code: [CODE]//Cinnamon Machine Language Compiler import javax.swing.*; import javax.swing.event.*; …

Software Development email java java-swing
Member Avatar for server_crash
0
262
Member Avatar for arikeri

As a part of a larger problem I have to solve the following:: *input - number of variables (say n=4) *input - 'n' numbers in decimal (say 1,3,5,7) *I need to check for all the grey code neighbours i.e, to say, 2=00000001(a fixed length string) and 3=00000011(a fixed length string) …

Software Development c++
Member Avatar for arikeri
0
212
Member Avatar for SyLk

currently my program only reads in the one first name and last name with 5 grades and computes the average from the first line of my input file. eg. Albert Lake 54 23 54 32 12 average test score 35 im trying to edit this code so that the file …

Software Development java
Member Avatar for SyLk
0
490
Member Avatar for dal4488

Here's what I have so far and here's my response from my teacher. I'm not exactly sure what or where the problem is. Anyone else see it? Have you run this project with many different test cases, and does it work? At first glance, it seems to me that the …

Software Development c++
Member Avatar for Narue
0
124
Member Avatar for roscioeak@direc

I am trying to make this queue right now that uses elements in an array to increase the appointment time for a queue. Only problem is I don't really know how to get each individual element from the array to add it to the queue. I thought I could just …

Software Development c++ queue
Member Avatar for Narue
0
137
Member Avatar for walljoshua

I am writing a program that has a membership class. Each Membership object contains details of a person's name, and the month and year in which they joined the club. All membership details are filled out when a Membership object is created. Then there is a club class that has …

Software Development java
Member Avatar for Narue
0
107
Member Avatar for Dark_Omen

Hello, I just started laerning c# and I made this program that took the dimension of a box(house), and then use a function to get the volume of the box_house. One problem that I encountered was that I dont know how to make a string into an int. Here is …

Software Development
Member Avatar for Dark_Omen
0
127
Member Avatar for tchampion22

i am curently attending college and i don't know how to start this assignment i was givin: while spending the summer as a surveyor's assistant you decide to write a program that transforms compass headings in degrees ( 0 to 360 ) to compass bearings. using only one decimal place. …

Software Development c++
Member Avatar for maj0nes
0
664
Member Avatar for dal4488

I'm trying to write a code that calculates a cell phone bill. There are two different services: a regular service that is $10.00 and the first 50 minutes are free and charges over 50 minutes are $.20 per minute and the other a premium service that's $25 and the first …

Software Development c++
Member Avatar for Narue
0
159
Member Avatar for NewVBguy

Hi there, I want to center the caption of a form and make the caption bold. Can anyone show me how to do this... Many thanks.... Newvbguy

Software Development visual-basic
Member Avatar for NewVBguy
0
151
Member Avatar for tantomushi

Hi! I'm really new to all this so please excuse me if I'm not providing enough information for anyone to answer my question. I'm getting this error: [code] error C2079: 'Playlist::PLarray::playlists' uses undefined class Playlist [/code] and it's referencing a line in my PLarray.hpp file-> see *** PLarray.hpp: [code] #include …

Software Development c++
Member Avatar for OurNation
0
438
Member Avatar for Asif_NSU

I have to write a program where the input is a Boolean Expression and the ouput is the corresponding sum of minterms for that particular expression. My idea is that i need to convert the infix boolean expression to a postfix expression. From there I need to construct the truth-table …

Software Development c++ first-post queue
Member Avatar for Asif_NSU
0
751
Member Avatar for syphyr_0707

:eek: I have been working on this for hours now... I am trying to enter a string and then count the words in the string. Only problem is my book is no more than a paper weight, and other online areas are kinda confusing. Can someone point me in the …

Software Development c++
Member Avatar for syphyr_0707
0
101
Member Avatar for AQWst

I have created a GUI Java menu using a pull down menu in which I want to have the date and time show up. I am currently getting null for my time value and I think it is because I am not refreshing this each time I calculate my time …

Software Development gui java java-swing
Member Avatar for AQWst
0
218
Member Avatar for evilsilver

(for reference i am in c++, windows, borland 3 compiler)hey guys here is what i want to do, i am trying to save a file using <fstream> but want the player to pick a name to save the file as, so to do that i have to modify the string …

Software Development c++
Member Avatar for Narue
0
182
Member Avatar for FireNet

[code] Mode13h The Beginning of 3D/2D Graphics [/code] [B]Intro[/B] Lots of people want to know how to do graphics but find most APIs like OpenGL, DirectX etc too complex for a beginner, especially as they involve GUI code which follows a different approach from the simple dos programming Here, I …

Software Development c++ gui opengl video video-card
Member Avatar for 1o0oBhP
0
2K
Member Avatar for dal4488

I'm trying to write a program that mimics a calculator where the user inputs two integers and the operation to be performed. Then I want it to output the numbers, the operator, and the result. I need to use a switch statement and I'm very confused on what to do …

Software Development c++
Member Avatar for Narue
0
323
Member Avatar for atul

hi ppl, I was wondering why my JDK 1.4 gives error for not having any such method for dispose(); if i have button b1 on my applet it shud quit the applet when i press the button b1........but the error is shown......what would b possible solution....? my function : public …

Software Development java
Member Avatar for atul
0
78
Member Avatar for sutty8303

We have a homework problem that we had to modify. we had to make the user input their name and a radius to compute the area. The program was supposed to ask the name before it asked the radius. I have two problems i can not get the program to …

Software Development c++
Member Avatar for Index
0
124
Member Avatar for christi

hi-i hope someone can help me.. I am creating a linked list of nodes, I am trying to insert a new node alphabetically by strcmp the name field. I keep crashing at this point... you will see in my code below, I can add to the front of the list …

Software Development c++ linked-list
Member Avatar for 1o0oBhP
0
103
Member Avatar for evilsilver

ok here is my question, i use borland c++ builder 3 and in a book i found an example for a graphics.h program which is supposed to work but i have heard that this only works in dos mode not in windows (which i am running in) is there another …

Software Development c++
Member Avatar for 1o0oBhP
0
123
Member Avatar for Paramaribo

Hi, I don't want anyone to do my assignment for me, I just want some help. I'm a student in Suriname, formerly Dutch-Guiana. My teacher decided that we should learn how to write basic programs in Turbo Pascal to improve our "problemsolving skills" and for so far things have gone …

Software Development pascal
Member Avatar for Jackrabbit
0
131
Member Avatar for billy-student

I am new at programming and need help: #include <iostream> #include <cmath> using namespace std; int main() { int a, b, c, area, tri_area; area = tri_area(a, b, c); if area (area>0); cout << "Area is "<<area<<"!"<<endl; cout << " Those values tri_angle " <<endl; } double tri_area (double a, …

Software Development c++
Member Avatar for Fasola
0
189
Member Avatar for JoBe

Hello ladies and gents, I'm starting on the next exercise, but I'm puzzled a bit and was wondering if any of you might help me with this. I have to enter four integer numbers, non negative and smaller then 16 into ONE variable int x, now, the thing I was …

Software Development c
Member Avatar for Fasola
0
443
Member Avatar for jonnie83

I am having a problem with inputs. I can get the input using the cin command but i want to use the input to open a file with the inputs name ie the user types in FRED. cin>>name i want to open a file called fred.txt ifstream in("name.txt"); the above …

Software Development c++
Member Avatar for vegaseat
0
109
Member Avatar for Foxtildawn

i keep getting error messages when i try to build my program: EmpType.obj : error LNK2001: unresolved external symbol "public: __thiscall SortedType::SortedType(void)" (??0SortedType@@QAE@XZ) EmpType.obj : error LNK2001: unresolved external symbol "public: void __thiscall SortedType::ResetList(void)" (?ResetList@SortedType@@QAEXXZ) I also get the same error for InsertItem,GetNextItem,DeleteItem,RetrieveItem,LengthIs any help in understanding this would be …

Software Development c++
Member Avatar for Narue
0
165
Member Avatar for Crazyike

how do i do summation of n+sin(n) without A while loop, only for?

Software Development c
Member Avatar for Narue
0
94
Member Avatar for ianwaters

Hello all, im writing a c++ program to interact with an SQLServer database. my code will run a query and retrieve data fine. for example SELECT data FROM TestTable returns all strings from the data column. but when i run the following statement INSERT INTO TestTable (data) VALUES ('HELP') i …

Software Development c c# c++ microsoft sql
Member Avatar for ianwaters
0
279
Member Avatar for tenoran

The assignment is to read and keep records and perform statistical analysis for a class of students. This is what I have done so far,then the codes can show the information(Id,4quizes,exam) of each students on screen. But I need to show 3 more things (The Highest ,The Lowest,The Average of …

Software Development c++
Member Avatar for tenoran
0
136
Member Avatar for kpfannenstein

I have a fairly simple C++ program problem. This program is suppose to read in two sets of coordinates (x,y) and report the magnitude, distance, and where on the plane the points lies. Here is my code so far the whole thing works except for the location function. We haven't …

Software Development c++ display
Member Avatar for Dave Sinkula
0
141
Member Avatar for Letscode

After days of searching in the web i found out that One cannot create menu and tabs in VB... You need to use a Java script or HTML to do this task.I got some examples to start with and in couple of these examples i got something like user controls... …

Software Development vb.net
Member Avatar for Letscode
0
162
Member Avatar for Foxtildawn

I keep getting this error message and I cant figure out how to fix it. Im not sure whether I have been trying to fix it for to long or somehting that maybe im not seeing the problem: ItemType::ItemType' : error in function definition or declaration; function not called it …

Software Development c++
Member Avatar for Narue
0
166
Member Avatar for matt_5104

Hi, I'm developing a GUI with several forms, one of which contains a jLabel that displays a JPEG image of a graph as it's icon. How do I go about plotting a simple 2d curve on that image from a set of data? I know of drawLine etc, but how …

Software Development gui image java
Member Avatar for server_crash
0
113
Member Avatar for compshooter

I have a couple of questions about the main function. Do you need to put the ; after the last }? Do you need to put a return statement before the last }? If so, what number do you put in the (), i.e. return (0), return (1), etc. What …

Software Development c++
Member Avatar for vegaseat
0
153
Member Avatar for jengels

I understand I can write a statement like: if==12 or if <12 but how do you write an if statement for something like, A = 90-100 B = 80-89 How do you write the if statement for that? My java book doesnt tell you how to write an if statement …

Software Development java
Member Avatar for jengels
0
70
Member Avatar for steosaur(oWn)

i can't for the life of me figure out how to write int num; num = rand() %. ... i need a range of 0 to 1 I want to store either zero or one to num. That is my goal. plz help (i'm a noob obviously)

Software Development c++
Member Avatar for steosaur(oWn)
0
85
Member Avatar for anchi

I want to draw a surface in Java3D and I need to set bounds (using BoundingBox, BoundingSphere, BoundinLeaf or something else) because I'm working with infinite surface (in some cases I devide with number that is very close to 0). Computer automaticly sets bounds, but I need something else (for …

Software Development java
Member Avatar for server_crash
0
151
Member Avatar for evilsilver

hey i am making a game and decided that i want to put a load/save option in it and was wondering if anyone here knew how to do this, (the program has to be able to close, open again and load the progress from before). I am running in windows …

Software Development c++
Member Avatar for vegaseat
0
187

The End.