132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blknmld69

I have been working with my final project for about 3 weeks now and its due by 10am tuesday. Currently I am receiveing cannot find symbol errors. I know this is something simple. Please help. [B]INSTRUCTIONS[/B] Create a program to enter grades and calculate averages and letter grades. 1. Need …

Software Development java java-swing user-interface
Member Avatar for NormR1
0
263
Member Avatar for JWebster

Hello everyone, I have an assignment that I am working on for a class at my school. I have to write a program that will open a .txt file and read/copy the code to a string. This is probably really easy, but I guess my knowledge thus far is a …

Software Development c++ file-system open-source visual-studio
Member Avatar for Ancient Dragon
0
100
Member Avatar for LevyDee

Is there a way to dynamically add a menu to a window using win32 API rather then using a resource? Ive done some googling, but all i can find is the resource method. Thanks

Software Development api c++
Member Avatar for LevyDee
0
111
Member Avatar for TahoeSands

Once again, I found some code that seems to be doing something that I would like to try, but I get a Static Error when I try to run the code (apparently, I may be the only one). By the way, the code comes from the book, "Swing Hacks" By …

Software Development java java-swing
Member Avatar for TahoeSands
0
170
Member Avatar for gerard4143

Could someone please verify. Is it proper to have pointers to containers(vectors in this example) where you allocate memory for them and then free them. I googled and found a posting that stated its considered poor coding style to do this...I doesn't seem like it should be poor programming style …

Software Development algorithm c++
Member Avatar for gerard4143
0
2K
Member Avatar for jorgmen

[B]Please help... I need an algorithm for generate sudokus. i searched in the web, but there´s only algorithms in action scrip, java, c, c# or c++, i need it in scheme... why is so difficult find help for scheme expressions ´n algorithms?? if there someone who can give me a …

Software Development algorithm
Member Avatar for Reverend Jim
0
269
Member Avatar for Ghostenshell

I need to check for floating point numbers inside my class but it doesn't seem to be working. Any suggestions? [CODE] class Rectangle: def __init__(self, length = 1, width = 1): self.__length = length self.__width = width ##Setters to float def set_length(self, length): self.__length = float(length) try: #self.__length = float(length) …

Software Development python
Member Avatar for Ghostenshell
0
218
Member Avatar for alexchen

How can I resize 2d array. I want to create a bool. My new map should measure 10 height and 5 width. [bool msize(int Height,int Width){ return true; }]

Software Development c++
Member Avatar for alexchen
0
94
Member Avatar for csguy11

[code] def index_dir(self, base_path): num_files_indexed = 0 allfiles = os.listdir(base_path) #print allfiles num_files_indexed = len(allfiles) #print num_files_indexed docnumber = 0 self._inverted_index = {} #dictionary for file in allfiles: self.documents = [base_path+file] #list of all text files f = open(base_path+file, 'r') lines = f.read() # Tokenize the file into words tokens …

Software Development data-structure python
Member Avatar for TrustyTony
0
486
Member Avatar for Suzie999

Hi all. I'm having some difficulty getting some hardware info I can get the Hdd serial, and CPUID. [code] string cpuInfo = string.Empty; ManagementClass managementClass = new ManagementClass("win32_processor"); ManagementObjectCollection managementObjectCollection = managementClass.GetInstances(); foreach (ManagementObject managementObject in managementObjectCollection) { if (cpuInfo == "") { //Get only the first CPU's ID cpuInfo …

Software Development
Member Avatar for Suzie999
0
159
Member Avatar for Cheese Man 808

Hello, I'm a bit new here, and also quite new to java. I'm wondering how I would insert a print statement into the do while loop, if the while is false. [CODE] do { System.out.println("Enter number of years for the loan an in integer: "); numberOfYears = input.nextDouble(); System.out.println("Enter the …

Software Development java
Member Avatar for tux4life
0
110
Member Avatar for qwrobins

Hi. I've seen this same question in another thread, but I'm actually trying to figure out how to make this work and I keep getting hung up. Here is what I'm trying to do: You are developing a database of measured meteorological data for use in weather and climate research. …

Software Development c data-structure file-system
Member Avatar for gerard4143
0
133
Member Avatar for Reverend Jim

Can someone please fill in the missing line of code in OnPageChange? I have a notebook control and on a page change event, I want to retrieve the label of the tab that was just selected. GetLabel and GetLabelText both return '' [CODE] import wx import wx.lib.mixins.inspection class Frame(wx.Frame): def …

Software Development python
Member Avatar for Reverend Jim
0
1K
Member Avatar for BEG148

Having problem getting code to even compile. Instructor insists array be in addDays and no adding of extra data members or methods to the class. "Use an array of strings in addDays. It needs to be local to the method since that is the only place that it is needed. …

Software Development c++
Member Avatar for BEG148
0
1K
Member Avatar for robertmacedonia

Hello to all, I did not know how to entitle this post,since it is more of a logical problem,but it's connected to the writing of my objects to a file. So, my server expects connections from multiple clients. The clients vote for the candidates offered to them by a menu, …

Member Avatar for robertmacedonia
0
154
Member Avatar for crodriguez08

Hey, I keep getting this error, but from its description, I can't really tell how to fix it besides from what I've already tried, so any explanation would be great. The error I get is: clientrectlib.cpp(32) : error C2664: 'calcMinMaxValue' :cannot convert parameter 1 from 'overloaded-function' to 'float &'. The …

Software Development c++
Member Avatar for StuXYZ
0
193
Member Avatar for Dark Byte

I have viewed some source that contained an identifier with a scope operator preceding it. Ex: [code=c++] ::var[/code] What does that mean/do?

Software Development c++
Member Avatar for LordNemrod
0
117
Member Avatar for IDC_Sharp

i made a browser with Favorites and the Favorites save in XML file. when i open the program and i put there some favorites its open the program realy slow like after 9 - 15 seconds/ and i delete the all favorites its open like its should (1, 2 seconds) …

Software Development xml
Member Avatar for IDC_Sharp
0
76
Member Avatar for hurbano

i need help making an add function for an array. i know how to initialize it and have it started. when i add content into the array, i need to add it as a linked list. i have my function for the linked list completed alrady. if anyone can help …

Software Development c++ linked-list
0
75
Member Avatar for jimmy0jambo

hello everyone .... i want to make an atm which is used in tailoring shop and withdrawing the suits(dress) the we have given to tailor... the tailor has to issue the card with the measurements of our dress next time we want to make that dress and directly go to …

Software Development vb.net
Member Avatar for codeorder
0
91
Member Avatar for Stefano Mtangoo

Seeing we can do it with structs, why do we need classes? See the code and quote from [URL="http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/cplr054.htm"]Link[/URL] [QUOTE="IBM Developer"]The C++ class is an extension of the C language structure. Because the only difference between a structure and a class is that structure members have public access by default …

Software Development c++ data-structure
Member Avatar for LordNemrod
0
102
Member Avatar for vbx_wx

[code] #include <iostream> #include <cstring> void rev(const char* str) { char* p = new char[strlen(str) + 1]; for(int i = 0; str[i] != '\0'; i++) { p[i] = str[strlen(str) - i]; } p[strlen(p) + 1] = '\0'; std::cout << p; } int main() { const char* s = "vBx"; rev(s); …

Software Development c++
Member Avatar for LordNemrod
0
293
Member Avatar for rowanmck

Hi, I'm a newbie to C++ so please be patient. I have to create program that outputs a simple moire pattern or a graph of y-values from a .csv file depending on which one is called. The code below is what I have before main and is where I am …

Software Development c++ file-stream
Member Avatar for uridvir
0
2K
Member Avatar for Anon17

Okay, so I've got a TCP Asynchronous Multithreaded server running which interacts with multiple clients at the same time. It works fine unless a client sends many messages in a short peroid of time, for example five messages within about half a second. For some reason it only recieves the …

Software Development client-server
Member Avatar for Anon17
0
619
Member Avatar for tennis

I got run-time error for the following code. I am just starting to get familiar with linked list. Can any one point out what's the problem here? thanks [CODE] #include "stdafx.h" #include<iostream> using namespace std; struct node { int data; node * next; }; node* buildonetwothree() { node* head=NULL; node* …

Software Development c++ linked-list
Member Avatar for gerard4143
0
136
Member Avatar for hurbano

Hi there! I need help with my assignment. The point if it is to make an array table that will hold various linked lists that hold other items. I already have my code to add and retrieve information from a linked list. I need help making an array that will …

Software Development c++ linked-list
Member Avatar for hurbano
0
83
Member Avatar for PDB1982

I am trying to build a very quick invoice type program, and I can't seem to get the final total to print. I am calling the function for it, but it's not printing anything to the screen...any suggestions? [code] public class Invoice { private double Total; //Constructor public Invoice( double …

Software Development java
Member Avatar for tux4life
0
98
Member Avatar for ismithx

Hi people, i was wondering If you could help me. I have a personal project as a java program, and I wish to develop my own Look and Feel. It will be rather simplistic (like a metro ui). Is a Look and Feel the right way to be going about …

Software Development gui java user-interface web-design
Member Avatar for ismithx
0
264
Member Avatar for nirali7

Hi, I am kind of new to C++ and really stuck with a problem. Here I am trying to parse a string and after comparing to a pre-declared array save the tokens in a vector of vectors. It is giving a number of errors and I'm not sure what to …

Software Development c c# c++
Member Avatar for nirali7
0
3K
Member Avatar for hehe31

Please help with this problem... I'm still learning java and i got stuck with a problem posted through our school campus... this is the one....and it's supposed to be the sequential structure.. Write a program that classifies a given amount of money in dollars. The program outputs a report listing …

Software Development java
Member Avatar for hehe31
0
147
Member Avatar for churva_churva

[CODE] import java.util.*; public class Employee{ private String emplo []; private int count; private int size=10; private String emp; public Employee(int size){ String [] emplo=new String [10]; count=0; } public Employee(){ this(10); } public boolean isFull(){ return count== emplo.length; } public boolean isEmpty(){ return count==0; } public void add(int x){ …

Software Development java
Member Avatar for javaAddict
0
269
Member Avatar for NewOrder

i read this on the net. and i cant understand why i have this mistake? [QUOTE]Thrown when an application attempts to use null in a case where an object is required. These include: * Calling the instance method of a null object. * Accessing or modifying the field of a …

Software Development java promotion
Member Avatar for NewOrder
0
265
Member Avatar for LianaN

Hi! I've spent 4 hours trying to read the data from file to ArrayList and then to JTable, but still cannot solve one problem. I have the following class UserDataRow, where the data about a user is described. [CODE] public class UserDataRow { public String regnumber; public String firstname; public …

Software Development file-stream java
Member Avatar for NormR1
0
635
Member Avatar for jlking007

I am a newbie. I am using validating procedures to validate user input from 4 text boxes. I am experiencing an issue using the 'x' button to close my form if invalid or no data is present in the textbox with focus when I click the 'x' button. Validating triggers …

Software Development vb.net
Member Avatar for jlking007
0
907
Member Avatar for syd919

hello i am having a little problem, I cant convert a double to one decimal place: here is my code [code=c]for(int i=0; i<marklist.size();i++) { double result=floor((marklist.at(i) /maxmark)); cout<< result<<endl; } [/code] I want result to be one decimal place

Software Development c++
Member Avatar for syd919
0
165
Member Avatar for KrazyKitsune

Unicode: I would like to use the radical symbol (U + 221A) in my script. How do you print the Unicode without an error? Super/Subscript: Is it possible to make a variable superscripted (and subscripted, for that matter)?

Software Development python
Member Avatar for woooee
0
94
Member Avatar for aprilchica3

Hello, I am supposed to write a statement for a Codelab review test that asks: [I]"Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than …

Software Development c++
Member Avatar for aprilchica3
0
1K
Member Avatar for frmsasp

Dear Friend, I am new in ASP.Net with c#. I want date in a dd/mm/yyyy format with validation in TextBox . Is anybody guide me how shall ? As I got date with dd/mm/yyyy but it will also accept 32/02/2005. Though Feb has less 30 days. Also when I compare …

Software Development asp asp.net c#
Member Avatar for amitesh kaushik
0
4K
Member Avatar for GBoyle

I am writing a model economy in which corporations (class BCorp) and persons (class BPrsn) act as agents buying and selling goods and services. I have a pool of contacts (class BContact) in which contact information is retained about each contact between agents. In a contact object I store a …

Software Development c++
Member Avatar for GBoyle
0
149
Member Avatar for nssltd

Hi i have finished my web browser program and i want to be able to set it as the default web browser. I was just wondering how this was possible? Please can you post some links or code examples. I was thinking that this would be done with registry values? …

Software Development web-browser
Member Avatar for Momerath
0
79
Member Avatar for bnickerson

Hi, My webserver code is trying to send an image file over a TCP connection. However, the send() function is returning a -1 value with the error: Connection Reset by peer. I am using a web-browser to access the server so my guess is that the server is somehow sending …

Software Development c socket-programming tcp-udp
Member Avatar for abhimanipal
0
985
Member Avatar for Mouche

I'm working on a tasklist program to brush up on my C before I take a class. I have two structs, task and tasklist. Here is the task struct: [CODE] typedef struct task { char name[100]; bool completed; /* bool is described as an enum in an included header file …

Software Development c gui oop
Member Avatar for abhimanipal
0
151
Member Avatar for sakthi@daniweb

this is the coding of 4cups(paper fold game) game that we played in schoolings... [code=c] #include<stdio.h> #include<conio.h> void even(); void odd(); void cal1(); void cal2(); void job(); char z[]="one",y[]="two",x[]="three",w[]="four",v[]="five",u[]="six",t[]="seven",s[]="eight"; void main() { char a[10],b[]="red",c[]="green",d[]="blue",e[]="yellow"; clrscr(); printf("enter your favourite color from given choice:\n"); printf("red\nblue\ngreen\nyellow\n"); scanf("%s",&a); if(strcmp(a,b)==0||strcmp(a,c)==0) { printf("good luck .you have …

Software Development c career
Member Avatar for abhimanipal
0
249
Member Avatar for reliableravi
Member Avatar for jack223

[code] #include <stdio.h> #include <iomanip> int main() { int binary1[8] = {0,1,1,1,1,0,1,1}; //8 element array int binary2[8] = {1,0,1,0,1,1,1,1}; //8 element array int binarySum[9]; int overflow [9]; int i; for (i=0; i<9; i++) overflow[i] = 0; for (i=9; i >= 0; i--) { binarySum[i] = binary1[i] + binary2[i] + overflow[i]; …

Software Development c
Member Avatar for harunosakura
0
1K
Member Avatar for LianaN

Hi Everyone! I have a problem with reading data from the txt file into the 2d array. In general, the above code is workable. The only thing that doesn't work is: userdata[row][j] = tokens[j]; The problem is that my array "userdata" gets values "null". However, if I replace this code …

Software Development file-stream java
Member Avatar for LianaN
0
134
Member Avatar for VBNick

I was trying to make a for loop count down backwards using this loop, but when it gets to zero, instead of realizing that decrementing will bring the number below zero, it tries to make the unsigned short (-1), which is actually 65535 as unsigned. of course, this code produces …

Software Development c++
Member Avatar for William Hemsworth
0
173
Member Avatar for nix_xin

[CODE] import java.util.*; public class sSone { public static void main ( String[] args ) { Scanner scan = new Scanner ( System.in ); System.out.print ( "Enter an integer number from 0-128" ); int inInt = scan.nextInt [/CODE] PURPOSE: program that receives an integer number from 0-128 and displays the …

Software Development java
Member Avatar for Akill10
0
140
Member Avatar for lucaazori

hi, here is my data base structure: [ATTACH]17124[/ATTACH] i try an sql command that return for each examen its number of tests, so i tried: [CODE]Dim sqlQRY1 As String = "SELECT Int_Exa,count(*) as 'TOTAL' from TEST T1,TEST T2 where T1.Int_Exa=T2.Int_Exa"[/CODE] that`s did not work, so i tried to do that: …

Software Development data-structure sql vb.net
Member Avatar for lucaazori
0
116
Member Avatar for kuchick32

One of my assignments is to write a factorial function. I have no clue how to start this program. HELP!! This is my assignment.. Example Outputs Enter the number: 5 The factorial of 5 is 120 Enter the number: 0 The factorial of 0 is 1 Enter the number: -8 …

Software Development c++
Member Avatar for Narue
0
101

The End.