132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yinfu89

Sorry , Newbie here i have no clue on how to do "Write a complete C program to read twenty (20) integer numbers. Then count and display the number of even and odd numbers among the twenty (20) integers read. Use a while loop to perform the repetition task." is …

Software Development c
Member Avatar for ddanbe
0
133
Member Avatar for Dave Sinkula

Say you have a list of .wav files in a particular directory tree, and say you have another pile of .phr files that may or may not be in the same directory tree. The .phr files contain in text the names one or more .wav files. And you need to …

Software Development c++
Member Avatar for vijayan121
0
215
Member Avatar for localp

i want to convert a string to an integer value... for example :: if there is a string called "Guy" G=7; // in the alpherbert G is = 7 u=21; y=24; i want the out put to be as >> 7 21 24 can some one plzz help me to …

Software Development c c# c++
Member Avatar for skatamatic
0
131
Member Avatar for blackrobe

I've been reading an article but the code is written in C language which I don't get at all... The code is: [CODE]void traverse(Tptr p) { if (!p) return; traverse(p->lokid); if (p->splitchar) traverse(p->eqkid); else printf("%s/n", (char *) p->eqkid); traverse(p->hikid); [/CODE] Someone please translate it to python...

Software Development c c# c++ python
Member Avatar for tyincali
0
159
Member Avatar for rmlopes

Hello all, I am trying to templatize a class with a Typelist. Until here everything good. But I cannoyt create a Typelist to define the templated class. The following model reproduces the problem: [code] template< class TL > class A { A(){} }; int main(void){ typedef Loki::DefaultSPStorage< std::vector<int> > AStorage; …

Software Development c++
Member Avatar for rmlopes
0
235
Member Avatar for mina1984

hey i was wondering if someone could help me with this problem. It deals with the hanoi puzzle and i did the code but the output isnt correct and ii cant figure out why can someone help? heres my code [code] #include<iostream> using namespace std; void towers_of_hanoi(int height, int from, …

Software Development c++ puzzle
Member Avatar for ddanbe
0
197
Member Avatar for Smed

I'm trying to use the createprocess function to start an xsession, but so far I've been unsuccessful. Here is the code I'm trying to use: [CODE] _tcscpy(tszCommandLine, _T("C:\\Program Files\\Hummingbird\\Connectivity\\12.00\\Exceed\\Xstart.exe C:\\Documents and Settings\\username\\Application Data\\Hummingbird\\Connectivity\\12.00\\Profile\\XSW3.xs")); CreateProcess(NULL, tszCommandLine, NULL, NULL, FALSE, NULL, NULL, NULL, &si, &pi); [/CODE] If I try to make the …

Software Development c++
Member Avatar for Smed
0
109
Member Avatar for mrboolf

Hi all. I am playing around with [URL="http://www.gnu.org/software/libc/manual/html_node/Reading_002fClosing-Directory.html#Reading_002fClosing-Directory"]this[/URL] and [URL="http://www.daniweb.com/code/snippet579.html"]this[/URL] code snippet by Ancient Dragon. I didn't want to copy-paste so I came out with various simple attempts, the last of which looks like this: [CODE=C++]#include <iostream> #include <unistd.h> #include <dirent.h> #include <vector> #include <algorithm> using namespace std; int main(int …

Software Development algorithm c++
Member Avatar for mrboolf
0
126
Member Avatar for JavaNewbieEK

I am kind of new to JAVA and I am trying to hide a user's input (such as when the user types a password). I am not using any type of GUI just running my small programs directly in the UNIX Terminal. Is this possible to do simply, unfortunately I …

Software Development gui java unix
Member Avatar for stultuske
0
479
Member Avatar for blackhawk9876

[code=cplusplus] // SPECIFICATION FILE (sList.h) // This file gives the specification of a sorted ADT // The list components are maintained in ascending order of value //****************************************************************** #ifndef SLIST_H #define SLIST_H const int MAX_LENGTH = 50;// Maximum possible number of components needed typedef int ItemType; // Type of each component …

Software Development c++ file-system visual-studio
Member Avatar for William Hemsworth
0
138
Member Avatar for mcgd

Hi, I have a Windows form bound to a DataTable through a BindingSource. When I call EndEdit on this BindingSource, it does not always change DataTable to show the modifications, and calling GetChanges on the DataSet returns null. Here's the situation in more detail - I have a DataSet, and …

Software Development dataset
Member Avatar for LizR
0
2K
Member Avatar for chris5126

Hi guys, I need a command on solaris 10 to show how much cpu is bein used in % terms but more specific than sar i need it down to 0.0% if that makes sense. Basically im tryin to find out how much cpu is being used say 25.5% and …

Software Development shell-scripting
Member Avatar for chris5126
0
95
Member Avatar for Tank50

HI Guys Below coding give me an exception [COLOR="Red"]cannot bind to data table with no name[/COLOR] Belwo I mention coding part I wrote [CODE] private void textBox1_TextChanged(object sender, EventArgs e) { DataView Dv = new DataView(); DataTable D1 = new DataTable("Test"); D1 = (DataTable)dataGridView1.DataSource; Dv.Table = D1; Dv.RowFilter = "SHOP_CODE …

Software Development
Member Avatar for Jugortha
0
86
Member Avatar for laggerz

hello there im new in this forum any way im a junior programmer at our company i have a little prolem in accessing indexes of the fox tables any other way in accessing it in OBDC or in code. I use linking in access 2003

Software Development visual-basic
Member Avatar for laggerz
0
52
Member Avatar for NinjaLink

Hey, I need help getting this program to run. This is what I'm trying to do. a) set and store the first name only b) set and store the last name only c) store and set the middle name d) check to see if a given first name is the …

Software Development c++
Member Avatar for NinjaLink
0
1K
Member Avatar for fireballnelson

I am new to C++ although I have done intermediate java programming. A couple of months ago I bought a book called [I]The C++ Programming Language; Third Edition[/I] by Bjarne Stroustrup. I am beginning to think that was a mistake because it is a little over my head. I was …

Software Development c++
Member Avatar for chococrack
0
86
Member Avatar for afg_91320

ive been slaving over this code and i would appreciate if you could help me see the errors that are in this program. this is a program that i have made with functions and switch statements the goal is to make a program that will be a 'geometry calculator' and …

Software Development c++
Member Avatar for azy422
0
213
Member Avatar for laspal

Hi, I am trying to create xl file using pyExcelerator in django. response = HttpResponse( mimetype='application/vnd.ms-excel') response['Content-Disposition'] = 'attachment; filename=output.xls' workbook = Workbook() worksheet = workbook.add_sheet('My Test Sheet') worksheet.write(0,0, 'Company', font_style('left', 1, 'red')) worksheet.write(1,1, 'Hello World!', font_style('left', 1, 'black')) workbook.save() return response The problem here is I am not able …

Software Development python
Member Avatar for laspal
0
109
Member Avatar for Panarchy

Hello I [B]have[/B] to learn C++ and how to code GUIs (for a new programming language). I need to be able to learn all this within a month. I have a little bit of experience (tiny bit of PERL, and tiny bit of Python... also a tiny bit of CSS …

Software Development c++ gui html-css perl python
Member Avatar for Panarchy
0
101
Member Avatar for Clipper34

Hey guys, well my question is i've seen examples of classes being to create like a function. But for example i saw someone made for a socket it was something along the lines of this: pySocket <host> <port> but i'm confused on how to create something like that. To get …

Software Development python
Member Avatar for Gribouillis
0
134
Member Avatar for Lardmeister

I was looking at some statistical evaluations of a dice roll and stumbled onto this strange result: [code=python]import random # faces of a dice dice = [1, 2, 3, 4, 5, 6] rolls = [] for k in range(3): random.shuffle(dice) #test print dice rolls.append(dice) # test print rolls """ my …

Software Development python
Member Avatar for Gribouillis
0
142
Member Avatar for DemonGal711

Okay, I'm making a program that will let you traverse a maze where the beginning is the top right corner (coming from the right) and it ends in the bottom left corner (going to the right). We have a 2D array for the board and are using a stack to …

Software Development c++ linked-list
Member Avatar for stilllearning
0
130
Member Avatar for afg_91320

im gonna make a program that will create a 2d array that will have test data. its should have 8 rows and 10 columns and set seed of random generator to 11. (numbers should go from 0.0 to 99.9) the rows and columns should have random numbers and [I]must be …

Software Development c++
Member Avatar for DemonGal711
0
78
Member Avatar for carlcarman

I am having some trouble and could use some help. I need a while loo that allows for an unlimited number of employees that uses a EOF sentinal value to control the loop. heres what I have so far, any help is greatly appreciated. I really dont understand this type …

Software Development java
Member Avatar for ~s.o.s~
0
102
Member Avatar for kapil.tandon

hi , like i have to create a label and that label displays the total cost of a particulat think.like i do some activity A. related to acctivity A are following activities. A-a A-b A-c A-d what i hv to do is when user click on the label.it pops up …

Software Development asp asp.net c c# c++
Member Avatar for dickersonka
0
94
Member Avatar for mercedesbenz

I'm making a program and want to use an if statement to add a 0 to output if the numbers = 0-9. I know how to do an if statement like: int number=0; if (number==5){ cout << " whatever " << endl; } Is there any way to do somthing …

Software Development c++
Member Avatar for skatamatic
0
79
Member Avatar for MsWang

Hello everyone I have a problem with the connection of MS sql with the windows application problem. All i need to do is to insert something to the database table. However i'm not sure how to connect the ms sql with it. I have some codes written out, but i …

Software Development c# sql windows-server
Member Avatar for dickersonka
0
214
Member Avatar for christiangirl

How do you to take user input for red, green and blue(a number between 0 and 255) and make the background of the center JPanel that color. Heres the code on what ive done so far: [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; /** * Write a description …

Software Development java java-swing
Member Avatar for christiangirl
0
2K
Member Avatar for pyth0n

Hi I am created a word guessing game. I have pretty much completed the game, but I cannot get it to do one thing. That is showing the users previous guess along with the new guess. For example, I want it to be like this Guesses Correct apple no blue …

Software Development apple python
Member Avatar for woooee
0
82
Member Avatar for Neo7

Hi everybody!! Here is the problem, I'm trying to develop a script that can help me with the raid creation, but, till now, I have been dealing for more than a week and I still didn't achieve any satisfactory results. :icon_cry: Here is the code to execute: # mdadm --manage …

Software Development debian shell-scripting
Member Avatar for Neo7
0
190
Member Avatar for Deemar

I'm building an installer using Inno Setup and the programming is done via Delphi/Pascal for the custom dialog screens. It's almost done, I'm just wondering how I can disable some text boxes or other components dependent on other actions like the click of a radio button. Specific example: I have …

Software Development delphi pascal
Member Avatar for House_of_Dexter
0
3K
Member Avatar for carlos_lopez_m

Hi everyone: I'm calling an Excel file from C#; now, because I Want to run automatically a Macro, I've added to my Workbook code, Private Sub Workbook_Open() the name of the routine I want VBA to execute as soon as the file is open. The problem is that C# is …

Software Development c c# c++
Member Avatar for carlos_lopez_m
0
146
Member Avatar for ndeniche

What are the differences between both and which one should i consider for the different kinds of java-based apps?

Software Development java java-swing
Member Avatar for Ezzaral
0
105
Member Avatar for Alex Edwards

This makes me slightly curious... Why is there assembly code for the string class of C++? [code=asm] page ,132 title strlen - return the length of a null-terminated string ;*** ;strlen.asm - contains strlen() routine ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ;Purpose: ; strlen returns the …

Software Development algorithm assembly c++
Member Avatar for ddanbe
0
1K
Member Avatar for Duki

Hey everyone, I'm working with a login form in my application. The easiest way I can see to do the authentication is to query a user/pass database for any rows that match the given username and password. How can I send a query when the user clicks OK? Am I …

Software Development vb.net
Member Avatar for toko
0
121
Member Avatar for dad45

Want to move files from one App (Delphi 6 App - my creation) to a new folder. That is the easy part. I then delete all files with the .dcu, dof & dos extenders. Compile same. Now, the program saves data files. However, the new data files are posted in …

Software Development delphi pascal
Member Avatar for dad45
0
132
Member Avatar for afg_91320

[code] int table [10]; for (int x = 0; x < 20, x++) { cout << “Enter the next value: “; cin >> table [x] } [/code] is it at the cin line? and im not sure if a semicolon is needed. thanks:icon_cheesygrin:

Software Development c++
Member Avatar for dickersonka
0
88
Member Avatar for Mark Red

Ok I have written a calculation form using textboxes as the sngvalue inputs everything works fine so no problems here, but I have tried countless methods to register when the decimal point has been entered or deleted from the textbox, as adding another decimal point raises an error, I am …

Software Development visual-basic
Member Avatar for Mark Red
0
180
Member Avatar for chris5126
Member Avatar for Taker

Hi i am tryin to write a recording class in java which i have done but i have to convert the recording class into a GUI i have done the coding for it but i want buttons that allows you to cyle to the nex and previous record detail if …

Software Development gui java java-swing
Member Avatar for Ezzaral
0
151
Member Avatar for reno02

I have a script that needs to have the email acknowledgment sent to the email that the customer gives. However, when doing it, it doesn't work when I test it. Can anyone view this and let me know if I am mising something. I have changed a few things to …

Software Development perl
Member Avatar for reno02
0
125
Member Avatar for pixelmeow

I have SQL code in my VB6 project for select, insert, and truncate. For example: [code=VB] strSQL = "SELECT CASE_IDENTIFIER" & vbCrLf _ & " ,DOCUMENT_TYPE" & vbCrLf _ & " ,DOCUMENT_NUMBER" & vbCrLf _ & " ,CASE_LINE_NUMBER" & vbCrLf _ & " ,DELETION_INDICATOR" & vbCrLf _ & " ,MASL" …

Software Development sql visual-basic
Member Avatar for pixelmeow
0
202
Member Avatar for FallenPaladin

Hi please can someone help? I have been pulling my hair out for days trying to understand how to open a XML data store in an application. I don't understand the basic principles, as i have opened it int a dataset using readXml, but then been unable to access any …

Software Development dataset xml
Member Avatar for Jugortha
0
143
Member Avatar for polo_coins

I asked in my studies build a "[B]sealed [/B]" class and I don't really understand it's differents from regular class and what different in syntax it has Thanks Sergey

Software Development
Member Avatar for Jugortha
0
112
Member Avatar for mathijs

hey i'm currently working on a simple rpg in python. First i was gonna make it text-based but now i've read the wxpython tutorial and i want to try an create a GUI for it. My sister is gonna make some artwork for me (i'm not good at that kind …

Software Development gui python
Member Avatar for mathijs
0
602
Member Avatar for ahfan_85

I hv This Question here: User will be prompt for number of quiz that has been taken. User has to input their marks for each quiz. Your program will calculate the average of the marks. Find the lowest mark of those quizzes. Find the 3 highest mark of those quizzes. …

Software Development c
Member Avatar for ahfan_85
0
295
Member Avatar for andyT

Hello, I am having trouble determining why this C++ code breaks when using dynamic arrays with new / delete (C++ style), and why it does not break with malloc / free (C style). Specifically, when using Visual Studio 2003 and the new / delete commands, I am getting the error …

Software Development c++ visual-studio
Member Avatar for andyT
0
180
Member Avatar for Dontais

I'm trying to run my program and when I enter say 3 it gives me a fatal error. It is suppose to calculate the avg of each value entered and output it. Would appreciate a little advise on this I'm stumped. The error says "warning C4700: uninitialized local variable 'sum' …

Software Development c++
Member Avatar for seanhunt
0
164
Member Avatar for n8thatsme

Ok I have a simple question I have a header file that has the following code [CODE] void setPartDecription(string partDescrip); string getPartDecription() {return partDescription;} [/CODE] Of course I have other functions but these are the problem functions and they are public. In my main function I have this: [CODE] cout …

Software Development c++
Member Avatar for seanhunt
0
164
Member Avatar for SQ89

The Question is Write a program that output the numbers 0 to 8 in three columns, where the width of each of them 3. The output should be as follows: 0 1 2 3 4 5 6 7 8 so what i've done so far is : #include<iostream.h> void main() …

Software Development c++
Member Avatar for ddanbe
0
155

The End.