User Profile

Collapse

Profile Sidebar

Collapse
blackstormdragon
blackstormdragon
Last Activity: Jan 6 '09, 07:29 PM
Joined: Feb 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • blackstormdragon
    replied to Problem with Java Applets in Textpad
    in Java
    Okay, thank you very much. This seems to make sense now....
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    replied to Problem with Java Applets in Textpad
    in Java
    I feel very silly( and slighlty confused) right now. This is my first time working with an applet. So if I understand, the only way to see what my applet looks like is to make an html file and than open it in a web browser. So what is the point of "Run Java Applet" if it does nothing?...
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    started a topic Problem with Java Applets in Textpad
    in Java

    Problem with Java Applets in Textpad

    I've been trying to run a Java applet in TextPad. When I click on "Run Java Applet" it prompts me for my html file, but when I hit ok a window pops up and says "The system cannot find the file specified." Other times it dosen't even prompt me for my html file it simply tells me "The system cannot find the file specified." I figure it has nothing to due with my program because I get the same answer even when working with...
    See more | Go to post

  • blackstormdragon
    replied to dynamic array problems
    in C
    Heres the code for filling the array.
    Code:
    int c;
    
    	for(int index =0; index < numCoef ;index++)
    	{
    		cout<<"What coefficient do you want for x^"<<index<<": ";
    		cin>>c;
    		coef[index] = c;
    	}
    	cout<<endl;
    When I debugg using f10, I can look at the elements in coef and there is only ever one element.

    *EDIT: I have a...
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    started a topic dynamic array problems
    in C

    dynamic array problems

    I have a feeling I'm doing this whole dynamic array thing wrong, or Im misunderstandin g it.
    Code:
    private:
    	int degree;
    	int numCoef;
    	double *coef;
    
    Polynomial::Polynomial( int hdegree)
    {
    	degree = hdegree;
    	numCoef = degree + 1;
    	coef = new double [numCoef];
    	FillCoef();
    }
    These are just some snipits of code. When coef creates a new double, all I get is a one...
    See more | Go to post

  • blackstormdragon
    replied to Pointers and string trouble
    in C
    Thanks the (*head) one worked, I belive my star was in the wrong place. Thanks, I miss little things like that alot.
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    started a topic Pointers and string trouble
    in C

    Pointers and string trouble

    My trouble causing lines are maked within the code.
    Code:
    #include<iostream>
    #include<string>
    using namespace std;
    
    void main()
    {
    	string* head;
    	string* tail;
    	head = new string;
    	tail = new string;
    
    	string reString;
    
    	cout<<"Enter a some content you want reversed: ";
    	getline(cin,reString);
    ...
    See more | Go to post

  • blackstormdragon
    replied to Problem with static variable
    in C
    Thanks for the help, it seems my problem was else where. When I went to post some more code here, I saw my problem clear as day. So thanks for the help, both of you.
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    started a topic Problem with static variable
    in C

    Problem with static variable

    In my program I have a static variable that I declared, but when I debug my program is tells me that it hasn't been initialized.
    Code:
    class HotDogStand
    {
    public:
    	HotDogStand(int standID, int dogSold);
    	void JustSold();
    	int ReturnJustSold();
    	static int TotalDogSold(int total);
    
    private:
    	int _standID, _dogSold;
    	static int _totalDogSold;
    };
    
    int
    ...
    See more | Go to post

  • blackstormdragon
    replied to Having difficulty with constructor
    in C
    Yeah that was it. Thanks. I can't belive I missed it....
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    started a topic Having difficulty with constructor
    in C

    Having difficulty with constructor

    Okay I have to make this TicTacToe program. Everything works except my constructor(whi ch must initialize my empty board to all zeros) This is where I run into problems. For some reason my constructor won't do anything. Everything looks right, so I don't know what to do. Here's a snipit of my code.
    Code:
    class TicTacToe
    {
    public:
    	TicTacToe();
    	int checkWinner();
    	void printBoard();
    	void playGame();
    ...
    See more | Go to post

  • blackstormdragon
    replied to Dynamic Char array problem
    in C
    Yeah, your right it works now and thats all that matters....
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    replied to Dynamic Char array problem
    in C
    Something about a new instance of visual studio or something. It keep popping up and doing a weird debugging thing. (Hope this makes sense.)
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    replied to Dynamic Char array problem
    in C
    When I tried string before this wierd screen popped up. Now it works though, so I presumed I typed something in wrong before.
    Thank you so much, everything works now. I really appreciate your help....
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    replied to Dynamic Char array problem
    in C
    Should I be using string instead of char??? If so, then I must of done something wrong before.
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    replied to Dynamic Char array problem
    in C
    It would look something like this wouldnt it.

    Code:
    vector<char> classList;
    
    for(int index = 0; index <  numberClasses; index++)
    {
    	cout<<"Enter name of class ";
    	cin>>className;
                    classList.push_back(className);
    
    }
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    replied to Dynamic Char array problem
    in C
    I'd use a vector, but this is a class assignment(whic h I should have mentioned.)
    The assignment stated that "classList – A dynamic array of strings used to store the names of the classes that the student is enrolled in"

    Now I did change classList = new char[], to classList = new char[numberClasses]; but that didnt help.
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    started a topic Dynamic Char array problem
    in C

    Dynamic Char array problem

    Im having trouble with my classList variable. It's a dynamic array of strings used to store the names of the classes(my program ask for students name, number of classes, then a list of the classes).

    Code:
    typedef char* CharPtr;
    
    class Student
    {
    public:
    	Student& operator =(const Student& rightside);
    	~Student();
    	void input();
    	void output();
    	void setNumClasses(int);
    ...
    See more | Go to post

  • blackstormdragon
    replied to Dynamic array problems
    in C
    Thanks, you hint sent me in the right direction. I think I figured it out....
    See more | Go to post

    Leave a comment:


  • blackstormdragon
    started a topic Dynamic array problems
    in C

    Dynamic array problems

    It seems pointers and dynamic arrays are giving me a hard time.
    Heres part of the assignment. We have to create a class named Student that has three member variables. One of the variables is called classList – "A dynamic array of strings used to store the names of the classes that the student is enrolled in"

    My problem is when Im trying to send classList from my input function to my setClassList function. I keep...
    See more | Go to post
    Last edited by AdrianH; Apr 27 '07, 08:35 PM. Reason: PLEASE use [code][/code] tags. It improves readability.
No activity results to display
Show More
Working...