132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for urchinsub

Hi, I want to make an array of strings like this: [code=c]string s[4]={"a", "ab", "abc", "abcd"}; [/code] Then I want to write a class with a pointer to a string (and not an array of string pointers). [code=c] class someclass{ public: // constructors and other member functions here private: string …

Software Development c++
Member Avatar for urchinsub
0
277
Member Avatar for jimJohnson

I need some serious help as I am on a deadline for tomorrow afternoon. I will give the instructions for the program followed by the code that I have... Create a utility that transfers words that are palindromes in the input file into the output file. Place a space between …

Software Development c++
Member Avatar for StuXYZ
0
135
Member Avatar for hotness

Question 1 In C++, no name is associated with the pointer data type. True False Question 2 The statement int **table; declares table to be a pointer to a pointer. True False Question 3 Which of the following arithmetic operations is allowed on pointer variables? a. Modulus b. Multiplication c. …

Software Development c++
Member Avatar for mrnutty
0
2K
Member Avatar for RobBrown

Hi guys I need some help with an idea i have. I work for a company that does monthly audits of items in a grocery chain. I have all my field reps setup to use excel files to complete their audits and then they send them to me. At the …

Software Development c++
Member Avatar for RobBrown
0
156
Member Avatar for Isabelle

Hello guys, This class creates aDie object by using aRandomNumberGenerator and the concept of composition. The program works if the member object aRandomNumberGenerator is not declared static. Otherwise I receive the error "undefined reference to aDie::gen." I do not understand why this happens, isn't gen within the class scope? Even …

Software Development c++
Member Avatar for Isabelle
0
153
Member Avatar for oceantrain

I have a datagridview on a form with multiple columns. Three of the columns are expression columns. One column is subtracted from the second and the result is displayed in the third. Everything works great but when I hit the save button and save to the database, all the columns …

Software Development vb.net
Member Avatar for kvprajapati
0
77
Member Avatar for SacredFootball

I can't figure it out. [CODE] #include <iostream> #include "GameMenu.h" #include "PlayerInfo.h" using namespace std; GameMenu::GameMenu() { } void GameMenu::display() { cout << "-----------------------------------------------------------------" << endl; cout << "Welcome to \"Hot or Cold\"" << endl; cout << "-----------------------------------------------------------------" << endl; cout << "OBJECTIVE:\t\tGuess the number in fewest number of guesses." …

Software Development c++ objective-c
Member Avatar for jonsca
0
123
Member Avatar for NeishaB

How to build an array containing all consonants in a string of lowercase text? No consonant should be repeated in the array even if it occurs more than once and print the number of consonants occurring?

Software Development c
Member Avatar for NeishaB
0
119
Member Avatar for cmsc

we were asked to make a program that adds two digit numbers. I was ableto scan and add the input numbers but I have trouble doing the 'carry' part. i can't divide the sum of the ones place integers by ten. what's wrong with this code? : [CODE] mov al,bl;move …

Software Development assembly
Member Avatar for cmsc
0
210
Member Avatar for migicikinyanjui

having a problem with executing this in jGRASP not acceptin user input [CODE]class salestax { public static void main (String[] args) { try { double price = Double.valueOf(args[0]).doubleValue(); double salestax = price * 0.0825; System.out.println("Sales tax is " + salestax); } catch (NumberFormatException e) { System.err.println("Usage: java salestax price" ); …

Software Development java
Member Avatar for lbarowski
0
610
Member Avatar for mloC

I was wondering how one would go about creating a structure that cannot be used by itself, i.e. only through a wrapper class. My question is what would be the syntax for this construct? I'm currently on a personal project to make simple tests from old tests, all the questions …

Software Development c++ oop
Member Avatar for mloC
0
114
Member Avatar for gsingh2011

I need to log in to a website using python. The two fields are username and password. This is what I have tried: [CODE]import urllib import urllib2 import httplib username = "username" password = "password" url = "https://webconnect.bloomfield.org/Zangle/StudentConnect/logincheck.aspx" password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm() password_mgr.add_password(None, "https://webconnect.bloomfield.org/Zangle/StudentConnect/", username, password) handler = urllib2.HTTPBasicAuthHandler(password_mgr) opener = …

Software Development python
Member Avatar for Beat_Slayer
0
251
Member Avatar for p@rse

So i did tons of research for bout 2 hours on google and finally figured out how bit-level works when using XOR, but most of the time, the vars were already declared I wanted to know how to declare them but by user input. This is just an example i …

Software Development c++ encryption
Member Avatar for p@rse
0
112
Member Avatar for aframe

I have a python script using Tkinter. In the script I have a numeric variable that the user is able to change the value of by entering the value in an entry box. I presently have the script reading and writing the value to an external .txt file so when …

Software Development python tkinter
Member Avatar for griswolf
0
2K
Member Avatar for ardn0001

Hi How can I stop a class method execution ? I have been reading and the most similar solution I found is use Threads....is there another solution ? Im working with jasperreports, In order to generate report I just call single method to start the report print and another method …

Software Development java
Member Avatar for ardn0001
0
5K
Member Avatar for patto78

Hi, I've just paid £10 for a book on the internet with the sole intention of solving one problem, unfortunately 2.5 hours later I am no further forward, despite the fact that the book suggests just a single line of code can achieve my aim. Maybe someone here can help. …

Software Development python session
Member Avatar for patto78
0
212
Member Avatar for scratte

The problem is that it gets stuck on public static void queryChange(String string) { System.out.println("Sending Query: "+string); try{ System.err.println("queryChange 1"); Connect(); System.err.println("queryChange 2"); [COLOR="red"]conn.createStatement().executeUpdate(string);[/COLOR] System.err.println("queryChange 3"); }catch(Exception e){ System.out.println("SQLException: " + e.getMessage()); } System.out.println("Sent Query: "+string); } java doesnt error it just gets stuck. Sent Query: UPDATE `servers` SET `playersCurrent` …

Software Development java mysql
Member Avatar for scratte
0
155
Member Avatar for Maya Pawar

I want,when i show Form2,the form1 should be displayed in background. and when i close Form2 , the form1 should be updated or strting complete new Form1. I do this but there are two tabs of Form1 in TaskBar.one is background display Form1 and another is updated.I want only one …

Software Development vb.net
Member Avatar for finito
0
206
Member Avatar for cela0811

I am new to Java, and I am working on a program that functions as a calculator. I have the code for the calculator written, but I need to make a GUI for it, because as of now the only way I can see output is by running it within …

Software Development gui java java-netbeans
Member Avatar for NormR1
0
64
Member Avatar for olibara

Hello I've made tho following function in a form to avoid to open severall instance a child form dialog It works fine but I do'nt know how to check if the user ave close the form from itself! Because in such situation FrmZTour remain not null and I got an …

Software Development
Member Avatar for RicardoE
0
2K
Member Avatar for heyday21c

Hello, I want to count phrases in a text file by using Python. For instance, if a text is like "I love you very much", I want to make a dictionary like: "I love": 1, "love you": 1, "you very": 1, and "very much": 1. I also want to do …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for TrustyTony

The code from my answer to thread: [url]http://www.daniweb.com/forums/thread292949.html[/url] Any field names with any same separator separating the values. This is straight text file reading routine, see the original thread for csv module based code. sample.dat: [CODE]id; name; email; homeaddress 123; gishi; gishi@mymail.com; 456 happy st. 345; tony; tony.veijalainen@somewhere.com; Espoo Finland …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for iqra123

hello i have a simple client server program in which different paramters are asked by client. i want to use cryptographic techniques like DES, AES, RSA but i do not know how and where to use.... i m doing socket programing first time even programing in linux. so i do …

Software Development c client-server
Member Avatar for iqra123
0
132
Member Avatar for darkseid

[code]#include <iostream> #include <string.h> #include <fstream> #include "class.h" using namespace std; translator a[100]; int d,b,c; int n; int m; int x; int z; void translator::add() { ofstream iFile("singular.bin", ios::binary | ios::app); ofstream dFile("definition.bin", ios::binary | ios::app); ofstream pFile("plural.bin", ios::binary | ios::app); ofstream aFile("articol.bin", ios::binary | ios::app); ifstream gFile("nr.bin", ios::binary); gFile …

Software Development c++ ios
Member Avatar for nbaztec
0
111
Member Avatar for jrayborn66

Hi I am trying to do a homework problem but this is about as far as i have gotten. need some help if you will. also am a complete novice so would like it if you explained in baby terms :) Sorry... am trying to solve this problem... You have …

Software Development c++
Member Avatar for nbaztec
0
184
Member Avatar for ChargrO

hi, im currently making a food ordering system in python. I recently decided to put a background in the window and now all of my buttons have disappeared?? does anyone know why this might be.

Software Development python
Member Avatar for TrustyTony
0
142
Member Avatar for daviddan2010

First i'd like to say that this is for testing only. If you try to use this program for any illegal practices what so ever... you will be responsable for your actions and i will be responsable for nothing. you would need some kind of security code generator to illegally …

Software Development python
Member Avatar for daviddan2010
0
2K
Member Avatar for AWPROGRAMMER

I have some script that I have to use on multiple projects but the excel file that it opens depends on which project I am in. I do not want to have to go through the code and change the file that is opened each time. I would prefer to …

Software Development visual-basic
Member Avatar for AndreRet
0
874
Member Avatar for sunny12

Can you people please help me in this program using only nested loops? I cannot use bufferedreader or charAt function Hard coding cannot be used. [B]The dots all stand for spaces[/B] The pattern is:- abcde .bcde ..cde ...de ....e ....ed ....edc ....edcb ....edcba The spaces are mandatory. [B]The dots are …

Software Development java
Member Avatar for sunny12
0
107
Member Avatar for Stefano Mtangoo

Hi buddies, I have a project that I need to be plugin based. I have never done that before and I have intermediate C++ knowledge. I have googled and found a lot of links including [URL="http://www.abstraction.net/ViewArticle.aspx?articleID=67"]this one[/URL]. It is helpful and I don't know if I understand well. Here is …

Software Development c++
Member Avatar for Stefano Mtangoo
0
342
Member Avatar for mastermoo420

[url]http://paste.pocoo.org/show/231731/[/url] My problem is listed here... There shouldn't really be a reason (as far as I can see) with memory... If there's another way to get a dictionary from a .txt file that'd work/is more efficient, I'm looking for help. P:

Software Development python
Member Avatar for TrustyTony
0
62
Member Avatar for ChargrO

I was wondering if anyone knows how to create a transparent background image? just a small example or something.

Software Development image python
Member Avatar for colorpie
0
141
Member Avatar for empror9

hello, i have some simple questions but i don't know why my code is not correct see these questons: 1-Write an algorithm to accept three numbers and display the largest one? this is my code [CODE]int num1,num2,num3; cout <<"Please enter three numbers:"; cin >> num1 >> num2 >> num3; if(num1 …

Software Development algorithm c++
Member Avatar for hsh44
0
183
Member Avatar for bchaney

I am currently stuck in one part of my application. I have two combo boxes that i am having the users select from. The first combo box is simply bound to a datatable. that is working properly. The second one i need to populate off another datatable after sorting out …

Software Development dataset vb.net
Member Avatar for Teme64
0
397
Member Avatar for dansnyderECE

My daily text editing question.... I'm traversing a text file line by line adjusting the text so that the file eventually will match the syntax required to be run on a MIPS simulator (MARS). My issue is that whenever I see a line with the string "blezl" in it, I …

Software Development c++
Member Avatar for Aranarth
0
98
Member Avatar for daudiam

For the Object class' equals method, the API says :[QUOTE]The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference values x and y, this method returns true if and only if x and y refer to the same object …

Software Development api java
Member Avatar for daudiam
0
227
Member Avatar for funfullson

hi dears. I am using Emu8086. I need to generating an array of random numbers. Are there any ready procedure or intrupt? if there are not, how can I do it? thanks.

Software Development assembly
Member Avatar for Tahir007
0
6K
Member Avatar for dougancil

I have the following code for part of an application I'm building and I need some instruction on how to store this value and carry it to the next part of the program. [CODE] Private Sub dateEntryTextbox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dateEntryTextbox.TextChanged Dim dateEntryTextBox As Date …

Software Development app-store vb.net
Member Avatar for dougancil
0
90
Member Avatar for dansnyderECE

I'm trying to replace some MIPS II instructions using MIPS I - namely the branch likely instructions. I'm having difficulty deciding how to do this. Assume that the branch delay slot is implemented. First off, a branch likely is an instruction that when taken, executes the delay slot instruction whereas …

Software Development assembly
Member Avatar for dansnyderECE
0
125
Member Avatar for dougancil

Is there a way to customformat DateTimePicker to only allow users to select M-F? Thank you Doug

Software Development vb.net
Member Avatar for dougancil
0
85
Member Avatar for arsalanghouri

how to add a stop watch with a pause button in my mfc application

Software Development c++
Member Avatar for arsalanghouri
0
86
Member Avatar for Duki

Hey guys, Is there any way to call the click event of a linklabel? E.g., I have a form that should call linkLabel_refresh_LinkClicked when it closes. Is that possible? Thanks

Software Development
Member Avatar for Duki
0
121
Member Avatar for vodkasoda

I have found a tutorial that will teach me how to set up my first Database, but the first thing it tells me to do is right-click on the Data Connections Icon within Database Explorer and choose "Create New SQL Server Database" ... unfortunately, this option is greyed out, so …

Software Development microsoft-access sql vb.net
Member Avatar for Dmlang1985
0
85
Member Avatar for gedas

hey everyone !!! well i got a very annoying problem i am teaching my self about java and especially about developing programs that could be used by Nintendo wii remote. i have recently found a perfect program that has been created in java and created for nintendo wii remote and …

Software Development java java-netbeans open-source
Member Avatar for gedas
0
167
Member Avatar for melicaster

I need the node sorted (selection sort) whenever the data is entered front or end or deleted front or end. How to get it sort automatically everytime user entered a data? countItems() doesn't seem worked to the selection sort... This is my Node class. Mostly no problem... [CODE] public class …

Software Development java java-swing linked-list
Member Avatar for NormR1
0
392
Member Avatar for debragail

The following code iteratively calculates continued fractions. I'm having trouble separating the numerator and denominator from the returned value. [code=python]def cf3(terms, iterations): answer = 0 for n in range(iterations, 0, -1): answer = Fraction(1, terms[n] + answer) answer += Fraction(terms[0], 1) return answer [/code] The following is sample output showing …

Software Development mathematics python
Member Avatar for debragail
0
183
Member Avatar for foren

[CODE]output = open('d:\code\\output.txt','w') for y in range (0,len(evidence_array)): output.write(evidence_array[y] + ', ' + found[y] + '\n') #I am not sure if this output writing is correct! output.close()[/CODE] PLEAE CAN SOMEONE HELP! ---I AM NOT SURE IF THIS OUTPUT WRITING IS CORRECT THANKS

Software Development python
Member Avatar for foren
0
241
Member Avatar for BastienP

Hello Dear DaniWeb community Here I am again, with a new problem :-) For those of you that are reading every post you probably have already seen that I'm trying to implement an auto-extracting process which extract data from ActiveDirectory, process it in order to make a filtered csv file …

Software Development perl
Member Avatar for mitchems
0
1K
Member Avatar for jmangu

Please, someone explain me why when I compile this code in Dev-C++ (Windows OS) the following error message apears: 'clrscr' undeclared (first use this function) int main() { int c; char d; clrscr(); printf(" Example program for PSC232 \n"); setup(); printf("*IDN?\n\r"); send("*IDN?\n"); printf("RECEIVE...\n\r"); loop: receive(); goto loop; } ps: ignore …

Software Development c
Member Avatar for jmangu
0
2K
Member Avatar for idontknow19

[B]Im stuck on how to display 5 integers in ascending order.i only have the idea to input 3 integers.what is my lacking to my code.Can you figure it out.thank you so much.hope you gonna help me[/B][code]import java.util.*; public class ascendingorder { static Scanner console = new Scanner(System.in); public static void …

Software Development java
Member Avatar for javaAddict
0
1K

The End.