43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PDB1982

I am trying to add a row of int's that are located in separate arrays within my code. I am trying to get these grades to add and then turn it into an avg. My output is crazy though, and I can't figure out why....any ideas? this is the information …

Software Development c++
Member Avatar for jonsca
0
171
Member Avatar for PinoyDev

Hi guys.!! Good day.! I just want to know on how to execute an event or function call after the resize event of the Form had been triggered!.. Thank you for giving time on this post.!

Software Development visual-basic
Member Avatar for PinoyDev
0
203
Member Avatar for josey_matt

Hi, can anyone plz check my code to see why in the prinCLASSdata function the int A, int B ... doesn't have a value. even though it is right in the updateFrequencies function. [CODE]#include<iostream> #include<fstream> #include<string> using namespace std; void read_data(int size,string name[],int test1[],int test2[],int test3[],int test4[],int test5[]); void calculateAverage(int …

Software Development c++
Member Avatar for josey_matt
0
127
Member Avatar for redrum237

hi this program starts off with random letters, then using a genetic algorithm eventually forms the "hello world!" basically i need this code to be able to input a word of the users choice, everytime i try something i get an error of some sort thanks [CODE]#pragma warning(disable:4786) // disable …

Software Development algorithm c++
Member Avatar for programmersbook
0
408
Member Avatar for brando|away

im writing a win32 dll and i need a procedure in this format (C++): [code] int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause) [/code] so how can i do this? why won't this work (fasm): [code] section '.data' data readable msg db "Text",0 section …

Software Development assembly
Member Avatar for brando|away
0
158
Member Avatar for hallinan

Hi I have a project where when you input text into a textarea if a certain word is put in I need to change this word I'm having real trouble with this Here Is what I have so far but it will not reconize some of the words [CODE]/* import …

Software Development java java-swing
Member Avatar for hallinan
0
91
Member Avatar for Jiwe

Can anyone tell me how or help me to get a Window's Title and save it to a TXT file? I tried couple of things with the GetWindowText() but only manage to get some numbers.

Software Development c++
Member Avatar for William Hemsworth
0
278
Member Avatar for Tex09

The contents of the array are safe within the function, however, upon returning to main the data becomes garbled. section of main: [code=c++] unsigned short tcp_port = atoi("8080"); const char* workDir = "WhatInthe?"; // Parse command line arguments if ( parseCmdArg( tcp_port, workDir, argc, argv) == 1) return 1; cout …

Software Development c++
Member Avatar for Tex09
0
203
Member Avatar for NitaB

Hey guys! I guess my other post wasn't so clear...probably because I wasn't sure what exactly I was trying to do. Anyway, right now I am having problems reading my input file into my 20x20 2D array. I mean, it compiles fine. But, I have a print function just to …

Software Development c++ file-system
Member Avatar for NitaB
0
174
Member Avatar for confusedndazed

I'm having trouble understanding how to write a function call. This is what I have so far: [CODE]#include <ionstream> using namespace std ; int binomial(int n, int k) ; // function prototype int main () { int n, k ; // parameters for the binomial number int result ; cout …

Software Development c++
Member Avatar for amrith92
0
146
Member Avatar for lewashby

I have to prgrams and thus, two question to ask. In the following program how does the line [COLOR="Red"]status = staticmethod(status)[/COLOR] do anything? My python programming book somehow connects it to the line [COLOR="Red"]Critter.total +=[/COLOR] 1 but I don't see how? Please explain. [CODE]# Classy Critter # Demonstrates class attributes …

Software Development python
Member Avatar for vegaseat
0
194
Member Avatar for juniper2009

Dear All I am trying to create a list of characters already given as below. When I compile it it gives me following errors. In function `int main()': 17: error: `islowerCase' undeclared (first use this function) 17: error: (Each undeclared identifier is reported only once for each function it appears …

Software Development c++
Member Avatar for amrith92
0
145
Member Avatar for Moonrise_state

Hi, In a terminal program I'm writing values are inputted and stored in a pair of arrays. At one point in the program I need to print them back out. My problem is that if I input 1.10, Java gives me 1.1. I really need it to print the zero …

Software Development java
Member Avatar for Moonrise_state
0
90
Member Avatar for pankaj.garg

i have a VB6 application using DAO and other reference libraries...so i used Package & Deployment wizard, so that it works on other machines as well...now my application size has increased from "79 KB" (my earlier exe + DB Files) to whooping "30 MB" (entire package). Please guide me how …

Software Development visual-basic
Member Avatar for pankaj.garg
0
155
Member Avatar for ffs82defxp

i recently found that variables set in a function cannot be used in another function. so to make variables 'universal' i have to make them global variables? and you do that buy stating them global, like this? [CODE]global [VARIABLE NAME]=[VALUE][/CODE] i have a feeling there is more to it.

Software Development python
Member Avatar for vegaseat
0
381
Member Avatar for samsons17

HI.... I'm doing this question... [B]Question Using a non-void function with parameters, write a complete C++ program that prompts the user for the Cartesian coordinates of two points (x1, y1) and (x2, y2) and displays the distance between them computed using the formula: distance = sqrt( (x1-x2)^2) + ((y1-y2)^2)... [/B] …

Software Development c++
Member Avatar for hajiakhundov
0
244
Member Avatar for ffs82defxp

is there a command or fuction in python that deals with email? like: [CODE]email(ibmceo@ibm.com, 'Hello, my name is Bill. How are you doing at IBM?', email.cc(),attach("C:\123321.txt"))[/CODE] :D

Software Development email python
Member Avatar for vegaseat
0
86
Member Avatar for gispe

Hi!! im doin a proyect that have to create a library, n create, delete an modificate books to the library. im using a listview to show all the books that r created, n should delete books that i deleted n if a modify one, should delete it n then upload …

Software Development file-system listview vb.net
0
111
Member Avatar for ausrasul

Hi, I've wrote a C++ program on windows (client-server) using gcc with following commands: [code] SOCKET(...) bind(..) select(..) recv(..) send(..) close(..) [/code] 1- If I want to convert the application to use SSL3, what should I change? I need a general overview to get me started. 2- If I want …

Software Development c++ client-server
Member Avatar for programmersbook
0
261
Member Avatar for NicholasE

Dear members, I need to write a small loop to generate the following: 0 0 0 0 .... 0 1 1 1 .... 1 2 2 .... 2 3 .... 3 4 : 299 I think it needs a double loop but since i am still beginner in python i …

Software Development python
Member Avatar for NicholasE
0
111
Member Avatar for fazeleh

Hello How i can find the source code of Treeview of c# .Net? tnx

Software Development
Member Avatar for DdoubleD
0
104
Member Avatar for SoulMazer

So, I have a script that needs to "clean up" when it is exited: it needs to clear a special logging file and other small things that affect the next startup of the script. The script has a GUI written in Tkinter, if that is relevant at all. Is there …

Software Development gui python tkinter
Member Avatar for SoulMazer
0
103
Member Avatar for willygstyle

Hello all, I have been trying for a few days now and done quite a bit of reasearch on the internet and this website to find out how I can authenicate to a website. It could very well be that this particualar web server is picky I'm not to sure. …

Software Development python web-server
Member Avatar for willygstyle
0
184
Member Avatar for Eternity[LK]

Hello :) This is my first post on daniweb forum and I hope this site will help me improve. I'm a first year college student in computer science, and I've only recently started C++. This means that code posted by me might seem very lousy and /or unprofessional. I have …

Software Development algorithm c++
Member Avatar for Eternity[LK]
0
97
Member Avatar for aBenjamin

this is a small example that, i hope reflects the larger project that i am working on. i am making a board game that uses a combination of mouse listener and jbutton action listener for the player to move. when it is time for the computer to take its turn, …

Software Development java java-swing
Member Avatar for Ezzaral
0
2K
Member Avatar for shenberry

I have a simple time tables that goes from 1 - 100. It takes like 6000 seconds to run. I figured I could break this down into a a multi thread program main thread for(int c = 1; c < 101; c++) { cout << c << "| "; for(int …

Software Development c++
Member Avatar for shenberry
1
154
Member Avatar for Snippset

Hi, I need to make a program, which I think should be simple if you know what you are doing. You have an array of integers A(m, n) and B(m). Delete an element from A array, which index is in the B(m) array. Print original and modified arrays. I don't …

Software Development c++
Member Avatar for Snippset
0
99
Member Avatar for MRWIGGLES

Hi, I'm having trouble just printing particular strings out of a sentence. <h1>hi my name is</h1> if i just want the program to print out <h1> </h1> and ignoring the text in between, how would i do that? i have tried converting everything to ascii and printing within the range, …

Software Development python
Member Avatar for MRWIGGLES
0
95
Member Avatar for vsagarmb

i am not able to figure out why python throws an error when i call this function. In the code snippet below when i call set_greyLevel() python throws an error. If i comment the function call it works fine. Please help. Thanks in advance. [code=python] def set_greyLevel(self, grayScale): if grayScale …

Software Development python
Member Avatar for willygstyle
0
166
Member Avatar for maomaohui

i got some homework for a program in python [CODE]''' Function that haven't been achieved. ============================================ Maxium Number. No number bigger than 2147483648 or less than -2147483648; Proper 'd' function - Accept the result or only input. - Proper 'd' substitution calculate. .Gets the function of '=' .Has it's own …

Software Development python
Member Avatar for Ene Uran
-2
75
Member Avatar for roshini.johri

hey i am a beginner as far as python is concerned..i am having diff in understanding this code..i am supp to do it in python..if anyone can tell me wht it does it wud be really helpful [code] for qid,query in "as2.qrys": for word in query: docs = set(index[word]) for …

Software Development python
Member Avatar for Ene Uran
0
134
Member Avatar for AndrewYY

I've got a large array of coordinates (a struct containing x and y, among other things) and for each pair of coordinates, I'm trying to find another pair that's closest to it from that array. [code] int i, j, d = 0, cd = 0, closest; for(i=0;i<size;i++){ closest = 0; …

Software Development c
Member Avatar for mrnutty
0
114
Member Avatar for grib

First off, I'm a complete and absolute programming newbie and a bit of an old fart to boot, so I'd appreciate a gentle-but-firm correction if I'm pushing the wrong buttons here. I'm slowly working through a used copy of Prata's C++ 5th edition, but something's not working in my version …

Software Development c++
Member Avatar for Nick Evan
1
133
Member Avatar for kevinn

So here is the problem. This won't compile. It always gives an error like : d.cpp:24: error: ‘string’ was not declared in this scope d.cpp:24: error: expected ‘,’ or ‘;’ before ‘{’ token Compilatie failed. [CODE=C]#include <iostream> #include <string> #include <stdlib.h> #include <time.h> int d(int amount, int dots){ // d(X,Y) …

Software Development c++
Member Avatar for kevinn
0
175
Member Avatar for Darth Vader

I have searched for a way before what the most effective way and in this case important the fastest way is to seek backwards in a file to read the very last line in a file. Like in this case I want to search from the end and backwards to …

Software Development c++
Member Avatar for Darth Vader
0
3K
Member Avatar for Damon88

I am writing a application where i need to know which games are installed on a system. I have 3 ways by which i think i can detect the games 1: Scan specific parts of registry and look for key names that match with a List of Publishers. The list …

Software Development vb.net
Member Avatar for Damon88
0
673
Member Avatar for PoisonedHeart

Hi to all and good day... I'm still studying about vb 6's data report designer and the data environment...but what i need to know is how can i make or [B]generate[/B] a report at [U]run time[/U]... for example, generate report for the employee names. (names of the employees will populate …

Software Development visual-basic
0
85
Member Avatar for pinsickle

I wanted to get some opinions on a good visual c++ book to buy. I am intermediate level when it comes to programming. I have already been through a class on C and almost done with my class on C++. So I want a book that is heavy on the …

Software Development c++
Member Avatar for zortec
0
89
Member Avatar for Jennifer84

I am trying to get a value from a specific cell in a dataGridView. I know how to choose a Row / Column but not at the same time. I have tried to get the value from row 3 in column 2 like below. But I cant find a Column …

Software Development c++
Member Avatar for milind morey
0
110
Member Avatar for _dragonwolf_

I'm trying to create a boggle game. I have it so it will setup the board and accept user input. What I am trying to do now is get rid of the "[" braces "]" and the commas to give it a cleaner look and to hopefully make it easier …

Software Development java
Member Avatar for ~s.o.s~
0
112
Member Avatar for Nepenthe

Hi, I have to write a function in Visual Basic within Microsoft that takes customer type and number of books purchased as inputs and returns the discount that should be given. Calculate the total sum after deducting discount that is to be paid and that the interface shows the total …

Software Development visual-basic
Member Avatar for Nepenthe
0
118
Member Avatar for cellus205

Ok we have been creating this calendar in our intro to programming class for about a week or so, and right now I am stuck on getting the start day of each month. I was thinking it should be total days (days in month + total days from 1800 - …

Software Development c++
Member Avatar for midgetchris
0
115
Member Avatar for sreejithbabu

The problem in this is that the program accepts a string with spaces [B]only for the first input[/B] and not for the rest of the inputs. It seems that getline only works for the first input. How can you make the vector store string with spaces (as elements of the …

Software Development c++
Member Avatar for sreejithbabu
-1
888
Member Avatar for pankaj.garg

i created a VB-6 program using reference "DAO 3.51 object library" on XP OS....works ok on my system...but does not work on my friends system...gives error - "Runtime-error 429 : active x component cant create object" friend's system is Windows XP with Office 2007 installed... Pl help to resolve this... …

Software Development os-x visual-basic
Member Avatar for AndreRet
0
294
Member Avatar for little marine

Hello, I am a student in a VB2008 class. I am using this code to copy data in a textbox to a text file. I have several forms to copy data from. Can this be done or do I need to do each form seperately?[CODE]Dim FILE_NAME As String = "C:\test2.text" …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
139
Member Avatar for little marine

I am creating a message box in VB8 for an error. I created the message box and everything works. The message box returns a value of 0 which is the default one. Where does it return 0 to. Or do you have to tell it where to return it.

Software Development vb.net
Member Avatar for PARGES
0
336
Member Avatar for Iam3R

Hi i have written a program to check the precision of float and double values. i read that the precision of float is 6 digits and double is 10. but it is showing only 6 for both. do we need to make any arrangement for the system to print the …

Software Development c
Member Avatar for Iam3R
0
496
Member Avatar for wmsigler

I'm having difficulties thinking through the logic of my natural mergesort program. I think I have the split working correctly, but my merge doesn't seem to be working at all, and the pseudocode in my book and what I've found so far on the web is fuzzy. This is a …

Software Development algorithm c++ linked-list
0
72
Member Avatar for qk00001

I have a small problem with string. How can I make the output str to be every single string i.e: string str="You are a good writer"; to be: str1="you"; str2=“are"; str3="a"; str4="good"; str5="writer"; //---------my_test_code,but not working yet. #include <iostream> #include <string> using namespace std; int main () { string str; …

Software Development c++
Member Avatar for qk00001
0
112
Member Avatar for thesinik

Alright so I want to write a program that will compute trig functions (sin, cos, tan, arcsin, etc.). Basically I'm ignoring the included math library in python and hard coding it myself. My issue is that I'm fairly new to programming and not sure how to go about coding a …

Software Development python
Member Avatar for thesinik
0
4K

The End.