132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hollowprimus

In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and assigned a numeric score. A pass/fail exam that has 10 questions. The minimum passing score is 70. An essay that is assigned a numeric score. A final exam that …

Software Development c++
Member Avatar for mikrosfoititis
0
371
Member Avatar for james6754

[CODE] class Rectangle { private: int num; public: int method1(int,int); }classOne; int Rectangle::method1(int num1,int num2) { classOne.num = (num1 * num2); return (classOne.num); } int main() { Rectangle* one = new Rectangle(); cout << (one->method1(2,10)); NewClass* newClassPointer = new NewClass(); //I want to access NewClass here.... } [/CODE] [CODE] NewClass::NewClass() …

Software Development c++
Member Avatar for mikrosfoititis
0
234
Member Avatar for zck17

I'm trying to make a Palindrome program, that basically returns whatever you enter, just backwards. For some reason, the cNewArray is not only couting the original array backwards, but also the original array. For example if I enter "Hello" it returns "Hello = olleHHello". I'm very new to referencing pointers …

Software Development c++ mathematics
Member Avatar for mikrosfoititis
0
183
Member Avatar for Valociraptor

I am trying to read integers from a txt file and then read the values looking for similarities. I am initializing an array as all 0 however, after I have read from the file and output all the variables, there are random numbers displayed in the array and I don't …

Software Development c++
Member Avatar for Valociraptor
0
175
Member Avatar for Aviplo

I can't round up the decimal number using VB.net i'm using Cint(12.5) this must be 13 but it is not so i try Round(12.5) but still not roundup what do i do? please help!!!

Software Development vb.net
Member Avatar for adam_k
0
223
Member Avatar for skran

HELP!! I try to bind a textbox to a datatable but i cant.. I checked if the datatable is filled (it includes the results of a sql query)and it s ok.. i can depict the result in a combo box but not in textbox. I wait for only one result …

Software Development display sql vb.net
Member Avatar for adam_k
0
1K
Member Avatar for ananth3125

hi, here i tried the coding for splitting the document file from the merged file,, i found the problem that a new document is not creating [CODE] Dim str1 As String = TextBox1.Text Dim str2 As String = str1.Replace("[", "") & str1.Replace("]", "") Dim filename As Object = "f:\" & …

Software Development regex vb.net
Member Avatar for Reverend Jim
0
159
Member Avatar for javausers

Hi, I m writing code to map single key(Integer) with array of values. But, its not giving the correct output. Here is the code: [CODE]import java.io.*; import java.util.*; class MapDemo{ public static void main(String args[]){ TreeMap<Integer, Object[]> tMap = new TreeMap<Integer, Object[]>(); Object[] vals = {"tree", "map", "sorted"}; tMap.put(1, vals); …

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for AdampskiB

Hello again! I'm having trouble trying to double the value of my coordinates in my point. The object is to create a pair of eyes and their position is identified by clicking a point in the graphic window which would allocated the centre of the left eye, and the second …

Software Development python
Member Avatar for AdampskiB
0
245
Member Avatar for Wireboy

hey guy's I'm relatively new to C++ and I've been asked to make a Caesar Cipher. I'm supposed to take an encrypted .txt file and output it's decryption. I've sort of got an idea of my flow as shown below but I'm confused as to how to transform capitals in …

Software Development c++ encryption visual-studio
Member Avatar for Schol-R-LEA
0
257
Member Avatar for terence193

I am currently trying to write a program to simply output roman numerals (not convert-as on many previous threads) from 1-99.. This is the logic/code I have tried so far, but I am certain that it isn't correct apart from the fact that it isnt compiling. [CODE]#include<stdio.h> int main(void) { …

Software Development c
Member Avatar for terence193
0
228
Member Avatar for zck17

I've just kind of gotten bored reading over learncpp.com repeatedly, so i decided to attempt to make a couple small programs for my own enjoyment ( and to really test what I'm capable of ). I have been making this little game that I call Implicit Explicit. It's basically the …

Software Development c++
Member Avatar for frogboy77
0
228
Member Avatar for raphilix

I'm trying to run a program with 3 levels:1st Menu, 2nd Input and Output and 3rd Calculations. But it keeps me giving me permition denied and Id returned 1 exit status when I try to compile. any suggestion? here is the code [ICODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int calcpercent …

Software Development c++
Member Avatar for raphilix
0
146
Member Avatar for th3b3n

the following code is used to get the contents of an excel document and pint it to console - will eventually filter and write a new excel file, but that will come later. [CODE]/** * */ import java.io.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.swing.*; import java.awt.*; import java.awt.event.*; …

Software Development apache gui java java-swing window-manager
Member Avatar for th3b3n
0
209
Member Avatar for Number1000

Hi guys, thanks for any help offered. I am attempting to ask a user for a height and width value - which need to be integers between 5 and 10 for each (height and width) I also need the user to select 3 different colours, out of a predetermined list …

Software Development python
Member Avatar for WolfShield
0
145
Member Avatar for thechicken

hi, im trying to create a program that records the amount of times a number was rolled using input from the user. currently it is only printing 1 number and i need it to print 6. i am only beginning to study java so im lacking knowledge a bit. any …

Software Development java
Member Avatar for WolfShield
0
114
Member Avatar for danielagaba

hi I came up with this code to help me convert a string into an integer array but i keep getting a null exception when i run it and i am not sure how to fix it. [CODE] import java.io.*; import java.lang.reflect.Array; public class test { static String message; static …

Software Development java
Member Avatar for JamesCherrill
0
326
Member Avatar for lawltman

So here's my code. What I want is for the player to move down, and while it's moving down, to cycle through images in the sequence (0, 1, 0, -1, 0...) but it doesn't do that. [CODE]import pygame, time pygame.init() Screen = pygame.display.set_mode((400, 400), 0, 32) pygame.display.set_caption('Walk around') GREEN = …

Software Development python
Member Avatar for DrakeMagi
0
245
Member Avatar for th3b3n

Hi all, I'm new to java programming but finding it rather fun and interesting. Right now I have [CODE]for(String name : chkNms) { JCheckBox checkBox = new JCheckBox(name); checkBox.setMnemonic(KeyEvent.VK_C); checkBox.setSelected(false); // checkBox.setActionCommand(name); add(checkBox); checkBox.addActionListener(this); }[/CODE] to create all the check boxes I need, roughly 30 or so. The last line …

Software Development java
Member Avatar for th3b3n
0
226
Member Avatar for AliALghamdi

Hello guys, I've been trying to make a program that takes the IDs from a file and make them into a 1D array. The input file looks like this : 201053420 201052456 201488540 201384345 And it should be working even if there's more than 4 IDs. [CODE] import java.util.*; import …

Software Development java
Member Avatar for NormR1
0
152
Member Avatar for PapaGeek

I’m creating a Windows Form Ap with Visual Studio 2008. The Ap has a few selection boxes and buttons that trigger “things” to happen. The form also has a “feedback” area where I will display progress to the user. OK, that should be vague enough – SMILE. I want to …

Software Development c++ visual-studio
Member Avatar for thines01
0
170
Member Avatar for carlpike

I have a main loop that parses winsock input. Once the parsed input has been received, it creates a thread and passes an array element id to a global array of names to the thread. The thread then downloads the requested file, but first checks to see if it already …

Software Development c++
Member Avatar for vijayan121
0
186
Member Avatar for stereomatching

This is codes snippet from our codes [code] void testSmartAssign() { boost::shared_ptr<int> A; std::auto_ptr<int> B(new int(9)); A = B; } [/code] Is this kind of assignment well defined? Thanks

Software Development c++
Member Avatar for vijayan121
0
103
Member Avatar for TrustyTony

I post here the code for histogram using the turtle graphics module, which I posted long time ago in discussion thread. For more special graphs there exist other fancier options, but this tkinter based routine can function in most standard installations of Python. Example data.txt, like mentioned in module docstring: …

Software Development python tkinter
0
2K
Member Avatar for Vonga

hi I'm new I got some questions about bubble-sort, so I registered here. I'm currently working on this program (bubble-sort) so I looked up some example codes and I found this here, which is practically the right thing I'm looking for. But I have some questions, like 1. How would …

Software Development c++ programming-construct
Member Avatar for Vonga
0
136
Member Avatar for TrueCoding

Hi the aim of my program is to allow a user to enter the size of an array and then allows the user to enter the values into an array. The bit im having a problem with is I want to count how many odd and even numbers there are …

Software Development c programming-construct
Member Avatar for Rushirl Quiño
0
2K
Member Avatar for Mrinal1991

I have a field of Issue date which takes the date of that very day when i fire the query now I want that field of Return Date in my data base should take the date while adding 14days to it? How do i do that?

Software Development vb.net
Member Avatar for Mrinal1991
0
122
Member Avatar for vlady

Hello Guys! Can anybody help me with this code? So what I need? here is it: I want to fill out global variable "student_marks" with a grade for each student and keep it once is loaded. So it means without calling the function "def add_mark()" I will be able to …

Software Development python
Member Avatar for vlady
0
130
Member Avatar for Ruchi224

Hello.. I have a datagridview.. It is unbound to any database and has 2 columns.. 1 is item name and other is amount/expense, incurred.. I want the total of expense incurred be displayed in the textbox on button click ie adding the numbers in amount column.. I tried something like …

Software Development vb.net
Member Avatar for Ruchi224
0
122
Member Avatar for hemj

Can someone please tell me why I am getting an error message saying 'temps' is uninitialised??? [CODE]#include <iostream> #include <string> #include <fstream> #include <sstream> #include <cmath> #include <iomanip> #include <cmath> #include <cstdlib> using namespace std; struct record { string websiteUrl; double revenue; int hits; }; struct totals { double totalRevenue; …

Software Development c++ ios
Member Avatar for mikrosfoititis
0
129
Member Avatar for beaute

I am trying to learn about marshaling structures and DLL's. [URL="http://msdn.microsoft.com/en-us/library/ef4c3t39(v=vs.80).aspx"]I'm following this example[/URL]. The code builds and compiles just fine. But when I run it, the lines where the call to the function is returned; it makes the call to the function from the DLL, goes through it, but …

Software Development c++
Member Avatar for beaute
0
97
Member Avatar for lrh9

Hand evaluator for Texas Hold'em. If a "hand" has five or more cards, hand.rank will find the best five card hand the hand can form. Two hands can be compared using the comparison operators. The final hand can be gotten from the "hand" with hand.rank.hand. The value used for comparisons …

Software Development python
Member Avatar for lrh9
0
1K
Member Avatar for SoniaC

This is the instruction: Mrs. Rogers, the owner of "Jus' Right supermarket", has asked your consulting firm to design a program for a simple cash register system which will allow the cashiers at the shop to total the price of the items being bought by a customer, calculate the tax …

Software Development java
Member Avatar for JamesCherrill
0
166
Member Avatar for persianprez

So I have this small program that draws circles of different colors depending on "velocity" Below is my code, btw I haven't actually implemented velocity yet. When I run it, I get these"[CODE]Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException at Mouse.paintComponent(Mouse.java:35) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown …

Software Development java java-swing
Member Avatar for JamesCherrill
0
130
Member Avatar for asif49

I have two strings like so: [CODE] String a = "on matt to"; String b = "onomatopoeia"; [/CODE] I've been trying to do... [CODE] if (a.contains(b)) return true; [/CODE] It returns true in this case since the character sequence "mat" matches the "ono[B]mat[/B]opoeia". I want it to return true only …

Software Development java
Member Avatar for ~s.o.s~
0
150
Member Avatar for innspiron

Hello programmers, can anyone tell me how to add or set alternative name for certificate to the keystore? I am trying to create web service client using netbeans and when it trying to get wsdl description from site it gives me: java.security.cert.certificateexception no subject alternative names present Site is under …

Software Development java java-netbeans
Member Avatar for innspiron
0
773
Member Avatar for jineesh

I was connecting my sql 2005 database from windows applications using a specific username and password. when i have created the user manually i can connect easily to my application. but when i created the user with code ie using sql scripts i was not able to connect to the …

Software Development
Member Avatar for Fruit Alchemist
0
118
Member Avatar for sigridish

hi! can some one give me a code for exporting listview data to excel? thanks

Software Development listview vb.net
Member Avatar for sigridish
0
359
Member Avatar for MinecraftMob

im Trying to make a label move when i push The WASD Keys But as i push it pauses i dont know how to fix it so it goes as soon as i push it Heres Code So Far[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; …

Software Development
Member Avatar for devloper
0
110
Member Avatar for vivosmith

Hello, I am trying to use the allegro game library (5.05) and I came across an error. It involved not being able to find -lgcc_eh so I switched it to static-lgcc_eh and it worked fine, that is until I got an error for not finding allegro-5.0.5-mt.dll . I looked in …

Software Development c
Member Avatar for N1GHTS
0
238
Member Avatar for TaoNinja

Hi Guys, Im completely new to this website and quite new to programming, Currently im doing Programming at college, Due to some unforeseen circumstances i had to miss a few weeks at college, Could someone please help me with a problem? I have been trying to figure it out on …

Software Development c++
Member Avatar for frogboy77
0
448
Member Avatar for pROKO

When I open my form that contains a DataViewGrid the first row is always automatically highlighted in blue showing that it is selected. If I use Me.DataGridView.ClearSelection() the highlighting disappears and the row "appears" to be unselected but when I check with Me.DataGridView.CurrentRow.Index the value returned indicates that the row …

Software Development vb.net
Member Avatar for pROKO
0
1K
Member Avatar for itengineer7

hi, how can i pervent from crontab concurrent run ??? thats mean when my crontab Take too long , with this crontab another crontab not runs... please help me ...

Software Development shell-scripting
Member Avatar for L7Sqr
0
148
Member Avatar for besjana

Please can you help me to solve an exercise in Java ? Here is the exercise : Create e program in Java that shows an image in a panel. The program let the user to make 2 clicks repeated ( make first click and immediately make the second click. ) …

Software Development java
Member Avatar for zeroliken
0
187
Member Avatar for m1234ike

Hello Daniweb, I am writing a program to execute the command prompt command "getmac /v >> MACLIST.txt" using a Visual Basic form, including: 2 buttons(getmac and filter the text file) , 2 textboxes (alternate text file name and user name), and two radiobuttons (default text file name or custom name). …

Software Development regex vb.net visual-basic
Member Avatar for m1234ike
0
412
Member Avatar for XF15-Loader

I have 2 arrays. One is an array of images other an array of numbers. The images are card faces, (Card(i)), the integers are the corresponding values of the cards (Value(i)). I want to associate the card face with a corresponding value. However, everytime I do what I think is …

Software Development vb.net
Member Avatar for XF15-Loader
0
109
Member Avatar for methosmen

I'm new to programming and C++. I've managed to succesfully insert multiple nodes from front. Problem is that when printing it starts with the latest node and goes "backwards". I would like it to start with the first node and print forward. Therefore I would like to insert new nodes …

Software Development c++ linked-list
Member Avatar for methosmen
0
274
Member Avatar for deva89

Sir I need some urgent help. M currently doing a project on hotel management system in C# using visual studio 2005 and SQl server 2005. The main problem m facing ri8 now is m unable to ADD and DELETE data to the server in the windows form. M alredy connect …

Software Development visual-studio
Member Avatar for hericles
0
122
Member Avatar for nchy13

i actually learned java only a day ago and we have to submit assignment after two days. i wanted to figure out what i did here with class and function definition is correct. if correct can you help me out with the compilation error. in fact all are similar. it …

Software Development java ubuntu
Member Avatar for nchy13
0
349
Member Avatar for nchy13

i dont know whats wrong with this program...the compiler compiles the program but when i run it it shows: j[B]ohnrambo@ubuntu:~/Desktop$ java lora Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:443) at lunda.l2read(lora.java:24) at lora.main(lora.java:124)[/B] [CODE] class lunda{ String[] la=new String[2048]; String[] lb=new String[2048]; int[] lvalid_a=new int[2048]; int[] lvalid_b=new int[2048]; int[] …

Software Development java ubuntu
Member Avatar for leodash
0
155

The End.