43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mickinator

First of all, here's my codes: [code=java] public class SLLNode { protected Object element; protected SLLNode succ; protected SLLNode( Object elem, SLLNode successor ) { element = elem; succ = successor; } } [/code] [code=java] public class LinkedStack { private SLLNode top; public LinkedStack( ) { top = null; } …

Software Development java
Member Avatar for mickinator
0
200
Member Avatar for aclogics

Hi, I need to create multiple TXT files from splitting 1 single TXT file that should look something like this: xyz;0;12345;data;data;data;data xyz;0;12345;data;data;data;data xyz;0;67890;data;data;data;data xyz;0;67890;data;data;data;data xyz;0;54321;data;data;data;data xyz;0;54321;data;data;data;data Let's say the original file was like above, and named original.txt, I would like the resulting files to be like so with the program …

Software Development visual-basic
Member Avatar for NoobertGames
0
176
Member Avatar for eleonora

I am a python newbie and i have trouble with those 2 exercises: 1.A date of the form "8-MAR-85" includes the name of the month, which must be translated to a number. Create a dictionary suitable for decoding month names to numbers. I have to create a function which uses …

Software Development python
Member Avatar for eleonora
0
209
Member Avatar for claudiu_is

Hello, first you need to know that this is my first Win Application made in C#!! I`m trying to draw some circles based on mouse left click coordinates but the circles disappear when I minimize the window, Solutions found on the internet didn`t helped me too much :(. Here is …

Software Development
Member Avatar for InfiNate
0
106
Member Avatar for nathanrt

I'm trying to create a piece of C++ code which will only allow a user to enter odd numbers. If an even number is entered, the program must tell the user to enter only an odd number. Im comfortable with the whole output bit in the 2nd line above, but …

Software Development c c# c++
Member Avatar for Narue
0
3K
Member Avatar for jmasta

Hello folks, I have a program that uses a linked list to implement a stack to convert a string from infix notation to postfix notation, and then to evaluate it. Well, the conversion part works just fine, but I have encountered a problem when trying to evaluate it. In my …

Software Development java java-swing linked-list
Member Avatar for jmasta
0
1K
Member Avatar for talk2tisa

Hello, I am new to this board and C++, so I do not even know what encase code in [] means, but I will try. I have an assignment I have been working on for a week. I have consulted my book and the web, but I have been unable …

Software Development c++
Member Avatar for talk2tisa
0
113
Member Avatar for tracethepath

i am making a menu driven program on linked lists. the program's display function is printing garbage values. i.e if n=3...i add three values and when the values are displayed the last entry is displayed and the rest two enteries are garbage values for eg. [QUOTE]MENU (Linked List) 1. CREATE …

Software Development asp c++ linked-list
Member Avatar for tracethepath
0
148
Member Avatar for ChaseVoid

I just recently came across Shift Operators and it interests me. Though I'm beginning to learn more about it, I'm still a bit confused as where to implement them. However, the problem I'm facing is because of an example I found on [URL="http://msdn2.microsoft.com/en-us/library/336xbhcz(VS.71).aspx"]MSDN[/URL] [CODE]// expre_Shift_Operators.cpp // compile with: /EHsc // …

Software Development c++ visual-studio
Member Avatar for Duoas
0
304
Member Avatar for dantheman3141

Where can I find some really good tutorials for starting to learn java? Thanks Dan

Software Development java
Member Avatar for dantheman3141
0
77
Member Avatar for tarekkkkk

#include<stdio.h> #inculde<math.h> int main () { int R,n,A; float S; printf("plz give me the value of N elements:"); scanf("%d",&n); printf("plz give me the value of the first term A:"); scanf("%d",&A); printf("plz give me the ratio between 2 consecutive elements R:"); scanf("%d",&R); S=(pow(R,n)-1)*A/(R-1); printf("the value of the sum of a geometric …

Software Development c++
Member Avatar for tarekkkkk
0
113
Member Avatar for Noliving

Here is my code, all I need help with is getting the text to display in a graphics window. I have tried several different ways and I'm not getting any errors either. I bolded the part that I'm having trouble with. The other ways I have tried have been pounded …

Software Development algorithm display python
Member Avatar for vegaseat
0
120
Member Avatar for imran_s

[code=C] #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> int toAnyBase(int n, int toBase); // from base 10 (2nd) int toBaseTen(char array[256], int fromBase); // from any base (1st) int fromAnyToAny(char input[],int fromBase,int toBase); int main() { char input[10]; int fromBase=0; int toBase=0; int answer=0; int answer2=0; printf("Enter number :"); …

Software Development c
Member Avatar for Aia
0
4K
Member Avatar for picass0

i'm using stl list to do a simple inserting of a range of value into the list. The problem i have is that when i do a push_front i couldnt see the value when i did a displayed of my list, but when i did a count it show that …

Software Development c++
Member Avatar for picass0
0
91
Member Avatar for smacklby

Help! I am losing my mind trying to display images in my JSP pages -- something that is rather simple, otherwise complicatied in JSP! Here is the code, what am I doing wrong?!?! [code] <img src"../images/situations/pic.gif" alt="pic" /> [/code]

Software Development java
Member Avatar for peter_budo
0
109
Member Avatar for tnvkrishna

hello, i have a header file (intl.h)which contains the declaration of members of class intl and the members functions are defined in 5 different headers and i have one more header (floatl.h) which contains the total declaration of class floatl and it's member functions the over view is something like …

Software Development c++ oop
Member Avatar for vijayan121
0
120
Member Avatar for piers

this is the homework I have to do [QUOTE] This homework is due in week 3. You must work on the program outside the formal laboratory sessions. The program must be ready to be executed at the start of the scheduled laboratory session. Remember you may be asked to explain …

Software Development java session
Member Avatar for piers
0
173
Member Avatar for Majestics

Can Any One Tell Me How To Handle Registers In C ,while We Are Dealing With Mouse Handling ... Can Any One Explain With Some Example.

Software Development c
Member Avatar for Ancient Dragon
0
82
Member Avatar for Gorilatsouk1

Hello guys, I have tried unsuccessfully the following problem with sed and awk grep commands: [B]- Try to find a specific word in a text file, and when you find it, [B]add [/B]after that word the number of occurrence of that word, but leave the first match unchanged, i.e. no …

Software Development shell-scripting
Member Avatar for Gorilatsouk1
0
131
Member Avatar for ceyesuma

Could someone find an obvious reason this while loop performs once and then breaks? I don't think the condition on the while loop is dropping it out. I must be when I call the formatted writers but I 'm not sure how to make it stay in the while loop. …

Software Development java
Member Avatar for sb7000
0
97
Member Avatar for jadedreality

I know this is simple, but I need a bit of help. I need to write a program that will prompt the user to enter three integers, and should then print the numbers in ascending order. The hint the teacher gave was to use scanf three times? I'm just confused...

Software Development c++
Member Avatar for jadedreality
0
396
Member Avatar for Chris147

Hi All, Does anyone know why I'm getting a 'Null Reference' error when I try to use a FolderBrowser? I have the following code (called from a Toolstrip Menu Item): <code> Dim fldBrowser As FolderBrowserDialog = New FolderBrowserDialog fldBrowser.RootFolder = Environment.SpecialFolder.DesktopDirectory fldBrowser.Description = "Which Folder do you want to use …

Software Development vb.net
Member Avatar for Chris147
0
122
Member Avatar for piscean123

Need your help in this code too.. this is the program to convert any entered number into its hexadecimal equivalent but the problem is that same result is printed for any number...:'( :'( [CODE]int main (void) { int n; printf("Enter Number :"); scanf("%d", n); printf("Hexadecimal Equivalent %x", n); getch(); return …

Software Development c
Member Avatar for piscean123
0
139
Member Avatar for zandiago

Good day. My semester of c++ is coming to an end. I've got to complete a total of 7 assignments within the next 3 weeks. I've completed 5 out of the seven. I've got two left (1 has a separate thread by itself). So you can also take a look …

Software Development c c# c++
Member Avatar for Nick Evan
0
195
Member Avatar for kiprono

I am developing a small application that enable users to surf at a fee. Now, I want this user(s) to remain logged in as Administrator but when the application is running, I want the following keys to be disabled : Ctrl+Esc,Windows keys,Ctrl+Alt+Delete, Alt+Esc. I only want the Supervisor access these …

Software Development pascal
Member Avatar for Duoas
0
81
Member Avatar for madhura09

hi im kind of a dodo in VB6 as a part of my project im trying to build a media player in vb using Windows Media Player control but the code that i had written on another system (windows 2000) is not working on my system (windows xp). the error …

Software Development visual-basic
Member Avatar for madhura09
0
292
Member Avatar for AXAsianXie

Hi can someone look at this program for me it wont fill out the whole address for me and when i search or go delete it doesn't do anything. [code=c++] #include<iostream.> #include <fstream> using namespace std; struct Person { char Name[50]; char Address[80]; char Phone[30]; }; void add(); void search(); …

Software Development c++ ios
0
68
Member Avatar for AXAsianXie

Hey i have a HW to do an address book storing the names addresses and phone #s and add to address.txt. and the phone is the key so i have to create a search using the phone #. i'm also suppose to use a mygetline function that i don't quite …

Software Development c c# c++ pdf
Member Avatar for Salem
0
121
Member Avatar for WhitePunk

i have a code which is in the if-then-else statement... then i want to use the select case statement... and i dont know well on this... hope you can help me... the code is Private Sub cmdGo_Click() Dim postA As Single Dim postB As Single If Combo1 = 1 Then …

Software Development visual-basic
Member Avatar for themaj
0
96
Member Avatar for disc

[code] class MyControl : public BaseControl { } class Base { proctected: BaseControl &mControl; } class MyClass : public Base { public: MyClass( MyControl &control ); void ReadControl(); } MyClass::MyClass( MyControl &control ) :Base(control) { } void MyClass::ReadControl( void ) { MyControl &control = (MyControl &)mControl; // <=== ??? control.DoSomething(); …

Software Development c++
Member Avatar for disc
0
245
Member Avatar for tnvkrishna

title was self explanatory.. i repeat .. can a class allow a friend method of a friend class to use it's protected or private members oh yes one more, can a friend method of a derived class use base class's protected members i am new to this type of concept …

Software Development c++
Member Avatar for vijayan121
0
113
Member Avatar for bStiffler582

It's a phone book program. Takes number, name, and address and saves them to addressbook.txt. It has add, search and delete functions. I got all but delete. Here's the search function(works): [code=c++] void search(){ char num[50]; char search[50]; ifstream input; input.open("addressbook.txt"); cout << "Enter phone number: "; cin >> num; …

Software Development c++
Member Avatar for bStiffler582
0
167
Member Avatar for #1Basser

I am new to java and having issues. package components; import java.awt.*; import java.awt.event.*; import javax.swing.*; /* FrameDemo.java requires no other files. */ public class ContactApp { /** * Create the GUI and show it. For thread safety, * this method should be invoked from the * event-dispatching thread. */ …

Software Development gui java java-swing
Member Avatar for #1Basser
0
105
Member Avatar for danbellinger1

I have been trying to get this Binary to Decimal program to work. I'm sure I'm not doing this with the least amount of code, if you have suggestions (using modulus especially). The errors I used to get was binNum is too large for the "long" type. I then used …

Software Development c++ laptop
Member Avatar for Narue
0
125
Member Avatar for fishsqzr

Does C# allow short-circuit evaluation of Boolean expressions? That is, if you have an expression such as if (test1) & (test2) {....} when test1 is false, there is no reason to evaluate test2 and a language which supports short-circuit evaluation never looks at the second test because the result will …

Software Development c#
Member Avatar for iamthwee
0
484
Member Avatar for danbellinger1

I am working on an assignment (I know many have asked but none have asked about the number of digits I need plus some) that is to accept input for the fibonacci corresponding to that (i.e. 0=0, 1=1, 2=1, ..., 96=51680708854858323072). When it gets to 79 (should be 14472334024676221 since …

Software Development c++
Member Avatar for vmanes
0
189
Member Avatar for Ravenous Wolf

can anyone tell me if one can create a form level variable in c# and how one does that. with form level variable i maen a variable which can be accessed by all the command buttons on the form. the buttons are on different panels. i dont know if that …

Software Development
Member Avatar for Ravenous Wolf
0
948
Member Avatar for paradox814

what does it mean when you say z=1? Does it ignore what value you pass into the function? What is this called?

Software Development c++
Member Avatar for Duoas
0
333
Member Avatar for jaepi

hello there, uhhmmm...anyone here could give me an idea or point me a reference on how web server application are created (console based) using c++...i'd be using threading, processes, synchronization and http protocol... a reference to any website or books would be nice...thank you...

Software Development c++ http-protocol web-server
Member Avatar for harshalone
0
153
Member Avatar for jacknight

I have finished writing my Dynamic, Linked-List implementation of the ADT List, but I can't figure out what the book includes the "void retrieve" function for. Insertion, deletion, the constructors, deconstructors, etc. all have clear purposes, but what is the purpose of the retrieval operation? The header file (class declaration) …

Software Development c++ linked-list
Member Avatar for Narue
0
150
Member Avatar for drakkher

I need to make a code that opens a file that contains random numbers and then calculate and display the number of numbers, the sum, and average. I have it so that it will open the file and check for errors and close it. I am also able to get …

Software Development c++
Member Avatar for stacyfrench
0
135
Member Avatar for tones1986

Okay folks. I am writing a c++ program that will take a text file filled with test scores. Test1, Test2 and FinalTest. There are 32 test scores to be processed. I finished this first assignment using pass by reference using things such as: Prototype: [code] void doStatsRef(int [], int, double&, …

Software Development c++
Member Avatar for Narue
0
137
Member Avatar for jliu66

Hi, I have a question regard to assign the values to each memebrs of the class objects because I have a large list of class objects. Can I do the following? If not, how can I achieve the same thing? Thanks in advance. class person(): def __init__(self): self.name = ' …

Software Development python
Member Avatar for woooee
0
167
Member Avatar for piscean123

Peoples i have tried to make this simple progrem in C... that will print alphabets A to Z and their equivalent ASCII code.. like this A 65 B 66 . . . Z here is da source code... int main (void) { char code; for(code = "A";code <= "Z"; code …

Software Development c
Member Avatar for Narue
0
147
Member Avatar for locsin

Greetings! I designed a simple program in VB6 with a background picture in my main menu form. but when i try to install this program to other computer having different resolution or sized in the screen settings my background picture appears not fit in the entire screen. I used jpeg …

Software Development visual-basic
Member Avatar for SCBWV
0
620
Member Avatar for joshmo

i have a problem calculating the cost with this code. the code is supposed to use the different call rates to calculte but it only uses the first rate. it is supposed to get the total cost of around 4 calls with different rates..sorry if it is too long but …

Software Development c++
Member Avatar for Salem
0
116
Member Avatar for DeadJustice

I need help with enums. I don't get them. This is part of a larger assignment, so all I need to do is fix this. I'm trying to assign year levels of school to constants. [code=java] public class Student extends Person { public Student( String name, String address, String phone, …

Software Development java
Member Avatar for DeadJustice
0
191
Member Avatar for balla4eva33

I'm trying to create some classes that work together via Operator Overloading. I have the main.cpp and the Distance.h files exactly how I want them, and now I just need help properly setting up my Distance.cpp file to link properly and run accurately with them. Here's a look at what …

Software Development c++
Member Avatar for balla4eva33
0
102
Member Avatar for bluanwht

I really would appreciate it if someone could help me troubleshoot this code for my class. I am trying to get it to take input from textboxes and put the output into a list when the user clicks a button and likewise hide the list when the user clicks the …

Software Development visual-basic
0
77
Member Avatar for Chris147

Hi All. Does any one know how to add extra files (in my case .png's) to a VB 2005 installation? This used to be really simple in VB6, you just browsed for the extra stuff you wanted and that was that - not so with 2005. I have found the …

Software Development vb.net
Member Avatar for Chris147
0
154

The End.