132,726 Archived Topics
Remove Filter ![]() | |
Hey all, I've used this site quite a bit as a reference, and couldn't find a solution that worked for me. So I became a member. :) Anyway, I can't get my insert function to...function when I go to add a node. The node is NOT to be just added … Software Development c++ linked-list | |
Hi folks i only have one question.Can or should i delete a base class object instantiated in a derived class's constructor , inside the derived class's destructor? [code] class A { protected: int somedata; public: A () {} A (int x) : somedata(x) {} virtual ~A () {} }; class … Software Development c++ | |
I'm trying to run through a file and add each string in the file to a string array. My code yields the error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at StudentLAM.main(StudentLAM.java:14)" Why doesn't this work? Note: I cannot use ArrayList. My error-yielding code: [CODE] private Scanner index; int cell = … Software Development java | |
I don't know what i'm missing, but I keep getting the error in the poly_tst file when trying to compile that says 'expected primary-expression before ']' token. According to my book I'm writing everything correctly. Here is my class file function (poly.h) void setcoeff(Term); Here is my implementation file definition … Software Development c++ | |
ok so im trying to implement a stack using vector and i have to access the last element of the vector el, i dont know if its right and also how would i implement the pop function of the stack using vector el_t stack::topElem() { el_t n; if(isEmpty()) cout <<"stack … | |
i have a string which is giving me problems. when i put it into a textfile, it puts the cursor onto the nextline. i assume because there is a \n at the end of the string, but when i cout the string, the newline character isnt there (well, the console … Software Development c++ | |
ok Guys and gals i just started learning C about a week ago and im working on a program that makes calls to the system for user name, system info ect... here is what i have so far. [ICODE] #define _POSIX_SOURCE #include <pwd.h> #include <sys/types.h> #include <unistd.h> #include <stdio.h> #include … Software Development c machine-learning | |
I need to take my last C++ class over one more time and just trying to get a head start on the programs we had been assigned. I will provide the instructions and was wanting to get any feedback on what I should get rid of my current program and … Software Development c++ | |
How to put checkbox in listview header? Use of checkbox is for select all and vice versa... Thank You... | |
(I'm using Vis Studio 2008 and a textbook written for VB2008) Okay, so this problem from my textbook requires me to "animate" (read: move a picture box) a picture of a "robot" finding it's way to a wall and returning to it's original position. I have the logic of the … Software Development vb.net | |
I'm writing a polynomial project that requires me to utilize classes. Problem is, I have the polynomial stored in two arrays in the class, one for coefficients (float coefficientholder[10]) and one for exponents (int exponentholder[10]), and get functions (at least according to my book) are simply consisting of return commands … Software Development c++ | |
Hi All I have this XSL code, but I am trying to get it so every other row is light grey and the ones in between are white. I want the headers to be anjother colour all together. [CODE] <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body> <table border="2" bgcolor="yellow"> … | |
Greetings! Wondering if someone had some ears (or eyes I guess) I could bounce some concepts off of regarding a Client/Server system design. All technicalities aside (such as message framing etc..) I was wondering if anyone had ideas for how a system like that should be set up? Currently my … Software Development client-server gui user-interface | |
I have another question regarding activating of an automatic door: three sensors front pad, rear pad, and door; they determine weather the door is activated or not. front pad=0 empty front pad=1 occupied rear pad=0 empty rear pad=1 occupied door=0 closed door=1 open there are situations when the door is … Software Development c++ | |
[B]I just started to learn Java a few weeks ago but gave up on it after hours of attempts and my code didn't work. Here is my input: [/B] [CODE]class JAVA { public static void main(String Args[]) { System.out.println("Hello World"); } }[/CODE] I saved it as JAVA.java and tried to … Software Development java ![]() | |
This is the program I'm working on and I'm completely lost A Pythagorean triple is a set of numbers A, B, C such that A2 + B2 = C2. Write a subroutine that determines if 3 given numbers are a Pythagorean triple. The subroutine should print out an appropriate comment … Software Development java visual-basic ![]() | |
Ok, so basically i am just trying to pull plain text from a website. basically it will display a person's Runescape stat's in text form. here is my code so far on how to get the url for the page. [code] private void statsButtonActionPerformed(java.awt.event.ActionEvent evt) { String oldrsn = rsnTextField.getText(); … Software Development java | |
Hi, im new to jsp and have made a few pages, and can display them using Tomcat, ive made a page counter and managed some validation of a form, but i cannot get this to work: i have a form where you can select a product, then type in the … | |
Hi...I wrote a proggy that replace some words in text file there is a condition that if somebody write in the texbox ","...all sentences change into plural form... [CODE]if (systemTEXT->Text->Contains(",")) {token == 1;}[/CODE] it works great...text contains "," - it means plural forms are needed..token=1 [CODE] if (linia->Contains("system_token")) {poprawka = … Software Development c++ | |
This is the line of code that I am getting an error with. [CODE]mtx[cIndex(bitNum)] & = ~(1 << bIndex(bitNum));[/CODE] The error code is: expected primary-expression before â=â token I think I am missing some '(' and ')''s. Thanks! Software Development c++ | |
Okay, so I'm a 7 month experienced programmer in C++, and now is the time when I am having the most trouble. So my Professor wants us to create a program that asks the user to input a sequence of numbers and then convert those numbers into outputs of "how … | |
Ok so im trying to implement a stack using vectors in C++ i just want to know if the following implementation code makes sense, this is just the implementation file, the client file is working fine but when i run the program it doesnt work so i believe it has … Software Development c++ | |
I really need help in writing this program for homework. 1. Round the average for each student to the nearest integer. 2. Add code to print out an appropriate message for each student. (given in prologue comments) 3. Add code to calculate the highest student average, and the lowest student … Software Development c c# c++ file-stream | |
hi everyone..... Can someone tell me 'how can we disable the close icon' which is found on upper left corner of a tkinter menu which is encircled in the picture below: Thanks in advance | |
Hi there, I'm having a lot of trouble trying to add a new control to a dynamically created TabPage at run time, I have viewed many threads with similar help requests and cant seem to make the codes work! :( Any help would be greatly appreciated... Here's what I've got: … | |
Hi guys I finally finished my highscore list but i have one problem I have to sort it. I know how to sort regular list, but this is a bit different because of having the text in it. When I sort it I just get an weirdly sorted list. Does … Software Development python | |
Okay. I have said code: [code=C++] #include <iostream> int main() { std::cout << "This is a native C++ program\n" << std::endl; return 0; }//main [/code] How would I compile this from a standard DOS command line? I've searched all over google, and have yet to find an answer that explains … Software Development c++ | |
I have a flow on how to do this program but I need so help.[COLOR="Red"] [B]PLEASE GIVE ME A HINT NOT THE ANSWER. [/B][/COLOR] [B][COLOR="Red"]THE FLOW CHART IS IN THE ATTACHMENT. PLEASE CHECK IT OUT BEFORE GIVING HINTS[/COLOR][/B] [CODE]/*************************************************** The following program will take user's input and check whether it … Software Development c++ | |
I wrote this function about a year ago, it's very useful for generating safe file or folder names from text that a user inputs. One method I use this for is storing the filename in the database and then url-rewriting with global.asax. You can get an example of url rewriting … | |
Hello, I would like to know what am I missing in this program to be getting that error. Thanks in advance! Error is [B]error C3861: 'setprecision': identifier not found[/B] [CODE]#include <iostream> using namespace std; int main () { int numFloors=0, numRooms=0, numOccupied=0, totRooms = 0, totOccupied = 0, totUnoccupied=0; double … Software Development c++ | |
Hi all. I am trying to create a program to take in records of a companies payroll. I get the data then write it to a binary file. When I want to delete a record I ask for the specific timesheets name and the employee ID then read the file … | |
Concatenate a substring of the original string sentence starting from index 0 and ending before the middle Character(s). Use the substring() method. Use an if statement to account for even or odd, the end index that you need substring()the end index that you need for substring() will be different public … Software Development java | |
I am a beginner in Jpcap. My problem is as follows:- i am trying to send a TCP packet but unable to receive it. The code for sending Tcp packet is as follows. I am working on Windows XP. hoping for reply. [CODE]//code for sending import jpcap.*; import jpcap.packet.*; import … Software Development java open-source | |
I'm getting this error, and I'm not sure why I can't do this in a method. On lines 92 and 93 I get this error thrown: "Only assignment, call, increment, decrement, and new object expressions can be used as a statement" I'm sure it's something obvious, but I'm stumped. [CODE]using … Software Development | |
![]() | I am a puzzled regarding the purpose of the countDown = coundDown -1; part of this program code. I mean I do not know why I should subtract the countDown by 1. What is it for??? Here is the program source code, the one highlighted is the one I'm confused … Software Development c++ |
I've read explanations but to no avail. Could any one offer some explanation of what the difference is and what the benefits are of typedef, struct and classes? Software Development c++ | |
Hey, I was wondering what the code was to open a program using C++? so basically writing a program that opens a program. any help would be great :) Software Development c++ | |
This may be a simple question, but I'm trying to populate a combo box with an array of string variables, but only that pass a conditional test. I'm getting a "complex databinding accepts as a datasource either in Ilist or IListSource" error. Obviously this is not the right way to … Software Development | |
What is wrong with my code? I'm trying to add a list of paths to a DefaultMutableTreeNode... I'm not getting the result I expect...can anyone help why?... [CODE] public static void main(String [] args){ List lst = new ArrayList<String>(); lst.add("a/b"); lst.add("a/b/c/d"); lst.add("a/b/c"); DefaultMutableTreeNode node = new DefaultMutableTreeNode(""); DefaultMutableTreeNode traverser = … Software Development java | |
How to save the checked items on checkedlistbox in sql database? I searched through the web and found out that for loop or foreach is necessary. Could someone give me a sample code and an explanation. I really need to do this, but can't find a good tutorial for this. Software Development | |
My project this week is to perform basic linked list operations. We didn't learn this in class, and the TA that attempted to explain can't speak English very well, so I'm having trouble understanding what I'm doing wrong. I linked the entire file, but I only had to implement the … Software Development c linked-list | |
Here is the program that I have to make: Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month, and keep a … Software Development c++ | |
[CODE]public static void fun(int x){ System.out.println(x); x--; if(x > 0){ fun(x); } System.out.println("returning " + x); } [/CODE] in the main class: fun(5); [U]output:[/U] 5 4 3 2 1 returning 0 returning 1 returning 2 returning 3 returning 4 --------------------------------------- what i don't get is how the print statement is … Software Development java | |
Hi, I have been trying to compile open source projects since past few months with no success. I just don't know how to go about the entire thing. Readings over the internet have not helped much. Some come with [COLOR="red"]./Configure[/COLOR] and a [COLOR="red"]Makefile[/COLOR] while others with only a [COLOR="Green"]Makefile[/COLOR]. How … Software Development c microsoft open-source | |
The class dateType in my program was designed to implement the date in a program. However, the function and constructor don’t check whether the date is valid before storing. … rewrite the definition of the function setDate and constructor so that the values for month, day, year are checked before … | |
Hi i made a program for conversion decimal to binary number ... but i need to convert the big dottef number into dotted binary like this For example 10.10.0.13 is <00001010.00001010.00000000.00001101> 8-bit of every integer .. This is making me confuse how to make it ? my conversion code is … Software Development c++ | |
Hi . I am coding the following program i will give the string my self and one is already given. given string = {a,b,c,d,3,f,g,h,i,6,j,k,l,m,9,n,o,p,q,2,r,s,t,u,v,w,x,y,z }, you are required to process an input string possibly less than 80 characters long, and an input +ive integer to encrypt the message: for example: … Software Development c++ encryption | |
Dear sir, I need a help. am having problem coding in vb.net. I have created a field which automatically in sql server. I want a code in vb.net so that user the text on the get focus, the automber would display the current no on the form. This autonumber is … Software Development vb.net | |
Hi, I'm currently a student given the task of programming a RPN calculator using C. The following code is some test code that I made to solve the issue described in the thread title. It calls a custom getline() function(while loop) which is also shown and then should take in … |
The End.