132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jogieglenmait

how can i put data from an access datafield to a datacombo?so that each time i click the data combo it will show the data that is stored in the access file it is connected. here is my code: Private Sub cboCustomerID_Change() On Error Resume Next If blnID = True …

Software Development visual-basic
Member Avatar for AndreRet
0
273
Member Avatar for lena13

2. Create a class Reals for performing integer arithmetic on real numbers. Each real number has a whole part and a decimal part; your class should contain data components representing both parts as integers and should contain methods to do the following: a. Default constructor b. set the two components …

Software Development java
Member Avatar for Xufyan
0
66
Member Avatar for j.shakthiyokesh

i am having problem in executing the following program.........when i execute it,it's getting hanged....pls gimme a gud solution [CODE]#include<stdio.h> main() { int n,x=0,y=1,z; printf("\nEnter a number of your choice:"); scanf("%d",&n); z=n; do { x=n%8; x=x+x*y; y=y*10; z=z/8; }while(z<8); printf("\nThe octal equivalent of the number entered is %d",x); }[/CODE]

Software Development c
Member Avatar for myk45
0
82
Member Avatar for The physicist

Hi all, I'm trying to convert a console application that I wrote in Codeblocks to a Windows Form application written in Visual Studio .NET 2003. I'm having trouble converting a piece of code that reads in a formatted text file line by line (the text in the file is always …

Software Development c++ file-system visual-studio
Member Avatar for jonsca
0
192
Member Avatar for johnnyturbo3

Hi I have a program that has Classes [LIST] [*]GUI [*]Upload [*]and a buffer between the 2 classes - ie used to communicate between the 2 classes . [/LIST] The Upload class uses Process to run an command line FTP app. I want to return what output produced by the …

Software Development gui
Member Avatar for Ketsuekiame
0
712
Member Avatar for konin

I'm currently working on a project, but need the codes for watermarking the image. Can somebody help?

Software Development image vb.net
Member Avatar for magdyalgamal
0
909
Member Avatar for theausum

For Mobile Applications carbide C++ is better or j2me is better?

Software Development c++
Member Avatar for theausum
0
118
Member Avatar for trebor09

[code]#include <stdio.h> #define p printf #define s scanf int program,Y,N; do { p("Choose from the following program\n"); p("1 for program no.1"); p("2 for program no.2"); p("3 for program no.3"); p("4 for program no.4"); p("Continue (Y or N)?"); repeat = getchar(); putchar('\n'); }while(repeat == 'Y' || repeat == 'N'); } program1() …

Software Development c
Member Avatar for roottybrian
0
274
Member Avatar for amecily

Hi everyone, I have a form open (UpdateResponse) and the user wants to update a datagrid. So they click on a button to update the datagrid (and the database) and then they receive a message (ResponseUpdateConfirmation), which is another form, telling them that the update was successful. I want to …

Software Development vb.net
Member Avatar for roottybrian
0
110
Member Avatar for rizla777

hey im just having a bit of a problem on reading input from a text file. I know that it is probably something simple but I keep overthinking it. Here is what I am trying to do: I'm trying to read in a line of text that contains musical notes. …

Software Development algorithm java
Member Avatar for new_programmer
0
149
Member Avatar for dspjm

I want to read some books about data structure written in c++, can anybody recommend some good books for me?Thx.

Software Development c++ data-structure
Member Avatar for dspjm
0
121
Member Avatar for DocBreen

[CODE] b2 = raw_input("Select your action:") if b2 == "Attack": mgeHP = 2500 print "You have decided to attack the mage." while True: dmg = random.randrange(1, 125, 1) mgeHPN = mgeHP-dmg print "You did" , dmg , "damge to the mage, giving it" , mgeHPN , "left" mgeHP = mgeHPN …

Software Development python
Member Avatar for cghtkh
0
163
Member Avatar for Bombshock

Hey Daniweb, I'm starting out learning python and have been looking around and saw the thread on printing a line that starts with a specific word, I would like to create something similar except take numbers out of text and print them so I can graph them. So far I've …

Software Development python
Member Avatar for TrustyTony
0
149
Member Avatar for Ptap03

Hello, First I would like to say thank you for looking and any help will be greatly appreciated. I am trying to write a code which does the following: 1) Read a file (The file contains list of words) 2) The purpose of the program to ask the user to …

Software Development apple c++ file-system seo
Member Avatar for Ancient Dragon
0
1K
Member Avatar for aaronmk2

I an trying to find the height in a binary search tree. I figured out how to count the leaves going directly left and directly right, but cannot figure out how to get he leaves in the middle. [CODE] int BST::height(){ int tall =0; int tall1=0; BinNodePtr ptr=myRoot; if (ptr->left …

Software Development c++
Member Avatar for mrnutty
0
247
Member Avatar for devesh2222

how can i write code in c that the two programs are run one after another whithout the use of threads.

Software Development c c# c++
Member Avatar for myk45
0
83
Member Avatar for centerline00

Why is it, when I compile this, the cout statement runs twice at first? It does not do that when I have the rest of the code in there that is int. Any thoughts of why or what I am doing wrong.. #include <iostream> #include <string> using namespace std; int …

Software Development c c# c++
Member Avatar for gerard4143
0
132
Member Avatar for UZU309

Hello all, I am trying to figure out how to make my program do the following(it's a table): The user enters a beginning amount and interest rate. The year, beginning amount, interest and end amount are all supposed to keep increasing until the end amount is doubled of the beginning …

Software Development c++ ios
0
66
Member Avatar for watery87

Hi guys, this program is suppose to ask user input for up to 10 book titles and date published using classes. However im having trouble with a certain part of the output. My coding as follows [code] #include <iostream> #include <string> #include <sstream> using namespace std; class bookInput { private: …

Software Development c++
Member Avatar for Unimportant
0
191
Member Avatar for tgreer

I'm working with C#, and Adobe Acrobat 6.0 Professional. Acrobat exposes a COM Automation server with a few top-level objects. It's easy enough to create instances of those objects, by getting their Type via the .GetTypeFromProgID() method, and then using Activator.CreateInstance(). [code] // Create an Acrobat Application object Type AcrobatAppType; …

Software Development adobe javascript
Member Avatar for jordonsc
0
2K
Member Avatar for Anuradha Mandal

how can I will make a student database using linked list in c++.

Software Development c++ linked-list
Member Avatar for daviddoria
0
256
Member Avatar for Nathaniel10

I am trying to do an exercise from Stroustup's book. The task is to create an array of 7 ints, assign its address to another variable, then print out the array value and the address. My code is below. [code] int main () { int p0[7] = {0, 0, 0, …

Software Development c++
Member Avatar for Nathaniel10
0
86
Member Avatar for bonucci

Hi guys, nice being a part of this community, sorry for my english if some sentences doesnt make much sense. Well, my question is i have a file, i liked to make a script that for example, in 1 or 2 hours would get the txt file where its located …

Software Development c++
Member Avatar for Unimportant
0
104
Member Avatar for krosty4782

Hi all. Im having a problem with my project. I need that my socket recive multiple conections from differents pcs. Example: I have my socket, it is listening, when a pc connect to its, it stop listen, so there come the second computer trying to connect, and this computer cant …

Software Development c#
Member Avatar for krosty4782
0
179
Member Avatar for athar89

Hi guys, can anyone suggest an alternative method to splitting an integer into separate digits besides using the modulus"%" and division"/" technique or using itoa() or such functions to covert it to a string and then split it. i want to do it without the aid of STL or any …

Software Development c++
Member Avatar for mrnutty
0
449
Member Avatar for kra9853

I need help rewriting my if-else statements into a switch statement, [CODE]//equations for final grade LGT=(LG1+LG2+LG3+LG4)/40.*.40*100; MTPG=MTP*.4; MTEG=(MTE/55.)*.20*100; sum=LGT+MTPG+MTEG; if(sum>95) //if-else statements, determines final grade letter='A'; else if(sum>85) letter='B'; else if(sum>75) letter='C'; else if(sum>65) letter='D'; else letter='F'; cout<<"final grade is: "<<letter<<endl;[/CODE] also i need to somehow get my switch statement …

Software Development c++
Member Avatar for Unimportant
0
239
Member Avatar for kra9853

How do use the pow function with variables? i.e. [CODE]//equations for problem 9 page 99 part b cT=(hT)/2; iT=(base*(hT*hT*hT))/12; LT=(sT*iT)/(8*cT);[/CODE] *math.h file in program how would i raise "hT" to the 3 power in correct c++ syntax?

Software Development c++
Member Avatar for jonsca
0
79
Member Avatar for devesh2222

how can i view object code of c

Software Development c c# c++
Member Avatar for Martin B
0
99
Member Avatar for mybluehair

I've got a c++ game I'm working on, and I need it to play some music in the background while the user is playing. I looked up how to use PlaySound() and put it in my program. The .wav file loads and plays perfectly, but at the same time, doesn't …

Software Development c++
Member Avatar for Unimportant
0
173
Member Avatar for myk45

Hello. i was trying to solve this problem. [B]Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it.[/B] Well, what i did is, use an array called present, to flag the elements ie: [CODE] for (i = …

Software Development c
Member Avatar for myk45
0
102
Member Avatar for madawa123

Hi guys , I have a number format like nn.nn.nn and nn.nn. I want to write a regex t check either one of them exist or not. I wrote this [CODE]^(\d\d).(\d\d)$[/CODE] but it only applies to nn.nn. Since i'm not ood in regex. i couldnt think a way to check …

Software Development regex
Member Avatar for nick.crane
0
86
Member Avatar for pstrohma

I'm using VC++ 10.0 Express to create an app that will find all visible drives (C:, USB drives, Memory Sticks, Lettered network drives, etc.) and populate a checked list box with those available drive letters. The app currently is loading the prefab list of A: through Z:, with the eventual …

Software Development c++
Member Avatar for pstrohma
0
518
Member Avatar for darma001

Dear friends, I am a new programmer and i have a task to make a phonebook with python. Please help me to finish my task. The program should repeatedly ask the user for input. Each primary input is one of the words “help”, “lookup”, “enter”, “remove”, and “quit”. If the …

Software Development python
Member Avatar for ultimatebuster
0
2K
Member Avatar for phillytennisguy

I've done this to play a song that allows you to select instruments. Can anyone tell me why this is hanging? [icode] .data instrumentPrompt:.asciiz "Select instrument (piano,strings,or guitar): " octavePrompt: .asciiz "Select octave (lo,med,or hi): " msg2:.asciiz "\nInvalid instrument" msg3:.asciiz "\nInvalid octave" instrumentspace: .space 20 octavespace: .space 20 instrpiano: .asciiz …

Software Development assembly
Member Avatar for phillytennisguy
0
533
Member Avatar for glenak

I'm using visual studio 2010 and even though I'm not new to VB.NET I still want to get the best possible book that can teach me what I need to know. Any suggestions?

Software Development vb.net visual-basic visual-studio
Member Avatar for glenak
0
169
Member Avatar for EarendurRingern

im making a program that loads a collection of strings from a file. then the user need to search the keyword using a binarysearch, but im using strings in my program, how to make the program using array of characters? here's my code, thx before :) [code] #include <iostream> #include …

Software Development c c# c++ seo
Member Avatar for Ancient Dragon
0
3K
Member Avatar for Noorul Ariff

Dear... I'm doing a project... I want to have a TOOLBAR in my project in vb.net... I need this in my project... please help me to finish it... Thanks in advance...

Software Development vb.net
Member Avatar for codeorder
0
131
Member Avatar for diggerman

I'm writing a program that will ask the user for input and then store it into an array until called to the output screen. here is an example of my code so far. I have no idea how to get the input to store in the array. import java.util.Scanner; public …

Software Development java
Member Avatar for diggerman
0
13K
Member Avatar for evertron

This is my first function in python and i need to get item quantity and price loops into the function Processorderitems. I took out the items loop because I was not doing anything with it. I need to return the subtotal and I have a 3% discount for quantities over …

Software Development python
Member Avatar for woooee
0
88
Member Avatar for matkod

hi, I'm creating a game with pygame and i want to create a matrix that will represent the map(where each tile will be). my pygame code is ok, because if i create the map without loading the tilemap (the matrix file) the game runs ok. that would be good but …

Member Avatar for Gribouillis
0
185
Member Avatar for NoMoreKawasaki

i have to do with my new assignment but the problem is not im don't try to do it at all i've tried it before..the question is to write a c++ program about ask the user an input of a range of numbers.by using the rand() an output of three …

Software Development c++
Member Avatar for Unimportant
0
94
Member Avatar for kezkez

new to ArrayList and was wondering what I am doing wrong. I keep getting a null pointer exception when trying to addRecord... [CODE] import java.util.*; public class StudentDB { private List<String> studentDB; public StudentDB(String db) { List<String> studentDB = new ArrayList <String>(); studentDB.add(""); } public void addRecord(String recordAdd) { studentDB.add(recordAdd); …

Software Development java
Member Avatar for JamesCherrill
0
78
Member Avatar for 9tontruck

Hi, I have some questions about multi pipe. First of all, What I should do is making 6 child processes and each of child process reduces a global value (by 1) which is saved in malloc concurrently until the value reaches 0. All I could find from google was about …

Software Development c linked-list
Member Avatar for gerard4143
0
187
Member Avatar for Xufyan

I've coded this program but i am getting this error, EmployeeeMain.java:57: non-static method getdata() cannot be referenced from a s tatic context Manager.getdata(); ^ 1 error I've used the same technique in other program , it is working fine but this program is not working !! Why I am getting …

Software Development java
Member Avatar for JamesCherrill
0
373
Member Avatar for juice33

I have been incurring errors during compile, in which I cannot seem to figure out where the problem relies. I have a class file which is different from the java file. When running the java file im recieving the error of cannot find symbol. {note both of the files are …

Software Development java
Member Avatar for JamesCherrill
0
104
Member Avatar for xzhang

[COLOR=#000000]Write lisp for two functions that manipulate binary search trees. The tree will now be a nested list structure. Inserting 4, 2, 5, 1, 6, 3 should create the list: (4 (2 (1 () ()) (3 () ())) (5 () (6 () ())))[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]1.Write a lisp …

Software Development
Member Avatar for raymondmak104
0
696
Member Avatar for sciprog1

Hello Members, What is the largest integer that can be stored in Java? Thank you!!

Software Development java
Member Avatar for Dupron
0
156
Member Avatar for moustafa taha

hello every one this program compares loans with various interest rates [CODE] public static void main(String[] args) { Scanner input=new Scanner(System.in); //Prompt the user to enter the loan amount System.out.print("Enter the loan amount:"); int loanAmount=input.nextInt(); //Promp the user to enter the period in number of years System.out.print("Enter number of years:"); …

Software Development java
Member Avatar for Dupron
0
140
Member Avatar for lagvino_els

I'm having trouble with recursion! If I have an array as: int a[] = {1, 2, 3, 4, 5}; and I want to display it on the screen like this: 1 2 3 4 5 I have to write : void PrintData(int a[], int n) to do that and using …

Software Development c++
Member Avatar for lagvino_els
0
95
Member Avatar for livesinabox

So my Turbo C doesn't handle errors. And in school we used VC++ but I don't have it at home. So can anyone tell if the code snippets for Queue and Dequeuing a Queue and Pop and Push operations in Stack are right? [CODE]\int queue::dequeue() { try { if(front>rear) throw …

Software Development c++ queue
Member Avatar for Ancient Dragon
0
112

The End.