92 Posted Topics
Hello I am new to Java & I am trying to find ways(in built Java objects/ways) to parse HTML. Can you suggest some objects in the Java Standard Library? I have extended the object HTMLEditorKit.ParserCallback but when parsing a web pages' source code it literally takes 2 minutes or more! … | |
Hello I have made a simple win32 program that displays a window that has a button & a text area. When I click the button, my program grabs the text from the text area & displays the grabbed text in a MessageBox. [B]My Problem:[/B] When my program grabs the text … | |
Re: I found this snippet a while ago. [CODE=cplusplus]#include <windows.h> int main() { ShellExecute(NULL, "open", "http://google.net", NULL, NULL, SW_SHOWNORMAL); } [/CODE] | |
Re: Hi I am learning programming at Uni so I am new to this but I wrote this code that seems to work pretty well [ICODE]#include <iostream> using namespace std; int main() { int hour, minute; int htime; cout << "Enter a 24 hour time in hours then in minutes: "; … | |
Hello I have a Container class that will allow me to store & retrieve elements from it easily by using the member variables of the elements as their key/identifier. My problem is I am tring to store a pointer to an objects member variable, but I get a compiler error. … | |
Hello [B]I am experimenting with Java applets & communicating between a Servlet & an applet. I am experiencing a HTTP 501 error when I go to retrieve the input stream from my URLConnection object.[/B] I know that the 501 error means that I am attempting to perform an action that … | |
Hi I am making a function that finds what todays date is & returns it as a string to main. (string format dd/mm/yy). My problem is I have found out how to find the day, month & year, but I cant put it into a string & return it to … | |
Hello I have this task below & I need someone to tell me if I have done it correctly. The part where I am not sure is if I am correctly checking if the array is empty. [quote]Write a function to find the maximum value in an array of ints … | |
Hello I am just learning Java. I have some elmentary questions. In my code below there are 3 errors that occur: - How do I declare a string array of size 5 in Java correctly? - How do I cin :p, take in a string array element. Ie, in C++ … | |
Hello [B]Would anyone like to share their tips & tricks for debugging functions & whole programs in C++. [/B] I find I suck at debugging :P & really dont look forward to having to go through my functions again to see if there are any loopholes etc so if anyone … | |
Hello How do I combine hexadecimal numbers? For example if I have the numbers: - aa - 14 - 5d How can I combine them to get : aa145d ? | |
Hello I am new to Java & I have made a simple mortgage interest calculator. [b]I am looking for advice on my program such as:[/b] [i]- Proper java structure - Better more efficient ways of doing what I am doing below - Proper java format(variable names, function names) - Are … | |
Hello I am starting to learn both HTML & CSS for University & I have some questions about what the proper practices a HTML coder should do in terms of Website architecture: I want to ask what is best, most conventional or the industry standards for the following: - include … | |
Hello I have made a simple win32 application that converts temperatures. [B]Problem:[/B] I am displaying a bitmap image in a static control that is scaled using StretchBlt(). But when the application runs it goes into an [B]infinite loop, doesn't display the bitmap & crashes[/B]. I believe the problem is either … | |
Hello I have a static window control & I want to make the text inside that static window centre aligned. [B]Is is possible to do that with a static window?[/B] Or should I use another function? static window: [CODE] stBox = CreateWindowEx( 0, "Static", s.c_str(), WS_BORDER | WS_CHILD | WS_VISIBLE, … | |
Hi I have downloaded an editor called OceanTiger CSDesigner & it has no compiler with it. I have read the sticky posts, & I know that I could use netbeans or microsoft visual instead but I want OceanTiger because its small like Dev c++ & doesn't uses heaps of memory … | |
Hello HELP :( Ok I have an assignment due in 5 days. I have done [B]everything[/B] except for one function. This function finds the smallests factors of a positive int & it multiplicities, Have I lost you yet, dont worry because I've been lost for a week now with this … | |
Hello I am not sure if my function below will completely delete a linked list. I am worried it will delete every element of the list except for the head(first node)? For example; If I have this linked list below [QUOTE] L -> 1 -> 2 -> 3 -> 4 … | |
Hello I have 2 ways to delete a linked list, which one is correct? If I have this linked list: [QUOTE] list = 1 - 2 - 3- 4 [/QUOTE] Which function will delete list correctly? 1. [CODE] void destroy(node * & list) { while (list != NULL) { delete … | |
hello How do I traverse & compare 2 linked lists that have different sizes without getting an error. For example: [QUOTE] List1 -> 1 -> 4 -> 6 List2 -> 8 -> 3 -> 2 -> [B]8[/B] [/QUOTE] [CODE] // I will get an error the 4th time this loop … | |
Hello I have a task to perform an addition of 2 Big Integers. Each Big Integer is stored in a linked list in reversed order. [B]Is my add function correct?[/B] For eg; we have 2 Big Ints to add together [QUOTE] First BigInt = 245 { strored in the linked … | |
Hello I have created a simple linked list that allows me to do 3 things; create a linked list, calculate the size of the linked list & print the contents of the linked list. Although my program crashes when I use the functions: - int len(node *L); // return length … | |
Hello I'm new to java & I am trying to convert a float to a string in my simple program. But I get an error on that line. Can you tell me why or what I need to do to fix it? Maybe I haven't imported the right things or … | |
Hello I am studying for my exam & I came across this question that is stumping me. [CODE=cplusplus] class X { public: X(); private: int x1, x2; }; class Y : public X { public : Y(); private: int y3; } // the class Y does not end in an … | |
Re: I was in ur position, every tutorial makes it sound like you need this and that to start programming. And i'm trying to learn java & i'm finding the same thing again. All you need is this: - Dev C++ (This is a compiler - meaning an editing program to … | |
Re: Hey I am trying to make console apps too, but I ahven't got very far :P Would you feel comfortable sharing your code here so others can learn how to create a console app? ps, um yeah sorry I dont have anything constructive to add to ur prob lol, making … | |
Hello I want to attempt a freelance c++ job/project for the skills & experience but do you think there are any jobs out there for my skill level? I have been learning programming for 8 months, only know c++, & I only know the basics, arrays, vectors, pointers, stacks ,lists,queues, … | |
Hello Can you assist me in developing my algorithm? I have to do this: [QUOTE]Write a C++ function balanced that uses a [B]stack[/B] to check that all brackets in a string are balanced. For eg: This is a balance string: [I]This (string) has (balanced {brackets[(now)]} [thanks])[/I] This string is not … | |
Hello I am unsure of the correct way to make this function below(multiply) stop if a condition is true? The reason why is because of the function type, its not an int, string, void etc, I am unsure how to stop a function whos type is the class name? Do … | |
Hello [B]Can you tell me why my for loop below doesn't show all the elements contained in a stack (stacks size = 3). [/B] It only shows the top 2 elements when it shoudl show all 3? Also another question, is there a way to show the contents of a … |
The End.