199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BRICEK

write a program which fills a 10 element array using a for loop with numbers 90,80,70 etc. write a function to return the maxi value of the numbers in the array. write a function to return the average value of the numbers in the array.

Member Avatar for freudian_slip
0
94
Member Avatar for skatamatic

I'm interested in writing a memory scanning program (for cheating in games, looking for hidden processes, and such). I'm wondering if there's any way to do this with C++ without extensive knowledge of windows classes/programming. I'm thinking assigning a pointer to the first location of the processes stack or something, …

Member Avatar for zhouxuzhu1985
0
148
Member Avatar for hwlibra083

I don't understand what I am doing wrong: I'm developing a program for a school project and it's just not working. I need to get a player's age, and a player's nine scores (which I have), then I have to find what age group they are in (which I know), …

Member Avatar for mrboolf
0
115
Member Avatar for complexcodes

can you guys help me how can I remove all those drawn rectangles if user click the mouse in the applet field? I am supposed to write a program that displays a rectangle and color it with green when user drag the mouse. But if user click the mouse anywhere …

Member Avatar for BestJewSinceJC
0
527
Member Avatar for DLightman

I am trying to implement a airline check-in line. I have three types of customers-generic, frequent flyers, and elite. Elite further breaks down down into gold, silver and bronze. The ranking follows that generic and frequent flyers are the lowest priority of customers. The check-in clerks can wait on these …

Member Avatar for skatamatic
0
270
Member Avatar for BestJewSinceJC

I saw someone, I think it was s.o.s, recommend the use of BigDecimal to someone else. So out of curiosity, and having heard of BigDecimal before, I looked at the Javadoc to see how large the values it could hold were and how it held them. From the doc: "Immutable, …

Member Avatar for jbennet
0
165
Member Avatar for BestJewSinceJC

Its basically telling me it doesn't know wth the pow() function is. But at the top of the file, I have #include<math.h> so shouldn't that work? And right after I have the #include, I declared the function definition of bintodec, so that isn't the problem either. [CODE]int bintodec(char* array){ int …

Member Avatar for BestJewSinceJC
0
114
Member Avatar for carobee

hi, i want to transfer the contends of a table from database to excel. can i declare a excel sheet in c#

Member Avatar for Jugortha
0
173
Member Avatar for ukTutor

Hi everyone. I’m new here, and have a huge project to do. Part of it is to convert lots of VB into C#, so far I've found it quite easy. However, Ive come across a few little hic-ups I'm doing it for a project related to Quality Centre (at testing …

Member Avatar for Jugortha
0
143
Member Avatar for vladdy191

What does == test when applied to arrays in C++? Does it test for type equivalence or equal memory locations?

Member Avatar for skatamatic
0
93
Member Avatar for comrad3

I'm quite a novice when it comes to C++, and am part of the way through working out a program to identify the first 7 Mersenne Primes. I'm sure I have quite a few syntax errors as well as logic errors but I'm banging my head against the wall when …

Member Avatar for ddanbe
0
156
Member Avatar for TheOneElectroni

Hello everybody, after diving into Tkinter for a while I'm now willing to learn PyQt. Before spending a lot of time with it I tried to process a very simple script (displaying a plain window) with Pyinstaller. This because I absolutely need to share my app with different people which …

Member Avatar for Stefano Mtangoo
0
461
Member Avatar for angelus1965

I am still new to C#, but I have written a progam that is significant to my work, I design custom pivot irrigation for farms. I have written the program to allow me to put in the span length and pipe diameters etc. and them at the click of a …

Member Avatar for angelus1965
0
111
Member Avatar for Superstar288

hi everyone just starting ansi c but i seem to be having problems i have to make a program which checks if the user input is uppercase,lowercase or digit which i have done but for some reason i cant seem to do character counts ive tried one way but it …

Member Avatar for Superstar288
0
117
Member Avatar for songkok

hello everyone. i have search through the forums but unfortunately couldnt find the solution. if this topic has been discussed before, do give me the links to that thread. i work as intern now and my employer asked me to program a software using c++ but they want it with …

Member Avatar for songkok
0
118
Member Avatar for chunalt787

Our task is to write a Binary Search Tree and the data has to be input from a .txt file where in the data is held as such [CODE]12345678[/CODE] Each digit is a new node in the tree to be inserted. My Binary Tree is working because I can just …

Member Avatar for chunalt787
0
111
Member Avatar for JackDurden

Im having trouble turning this function into a recursion function, partly because I did it another way and now I cant think of how to do it recursively. Can you help? [CODE]int list::recursion(int item, int position) { node* temp = startPtr; while(temp != NULL) { if(temp->item == item) return position; …

Member Avatar for skatamatic
0
105
Member Avatar for bigmike9449

Hi, i'm new to these forums and i was wondering, what kind of script or code do you need to write in order to make a button open a specific file, such as a pdf or txt, and what code or script do you need to make a button open …

Member Avatar for espSquall
0
343
Member Avatar for flexy82rpq

Any think they could attempt this, or give some pointers on it: write a simple hash function using modulo division as the hash methods.

Member Avatar for skatamatic
0
78
Member Avatar for 3Dees

Hi, I could do with some help please, worked on this all week and still do not know where to start. i need to wirte a program starting with a one dim array in one vb project then use a two dim array to do the same in a new …

Member Avatar for timothybard
0
183
Member Avatar for Run.[it]

I came across this example of a chat app here... [url]http://www.daniweb.com/forums/thread59565.html[/url] and am having trouble creating the multiple client part that is mentioned at the bottom... [I]If you want it to support multiple clients then put the TcpListener into an infinite loop in another thread etc.[/I] I was wondering if …

Member Avatar for Run.[it]
0
187
Member Avatar for Asen

I've tried hard to solve this but I still couldn't make it right. Here's what I've made. #include <graphics.h> #include <ctype.h> #include <math.h> #include <conio.h> #include <stdio.h> #include <process.h> int check(int,char); void Initialize(void);void drawEllipse1(int color); void drawEllipse1(int color); void drawEllipse2(int color); void main() { int color, color1; char ch; Initialize(); …

Member Avatar for Freaky_Chris
0
886
Member Avatar for apeaser

I need help with this code. I am already a week late on this part because part 2 took to long to code. I am not getting the LeatherBlueDot class to compile. I am getting a message that in my constructor statement saying each variable has private access in class …

Member Avatar for BestJewSinceJC
0
183
Member Avatar for cam875

Ok ive been working with bootstrappers and writing them in assembly for a little bit now and I can get it to work and understand how the bootsector works when it comes to hard disks and floppy disks but when dealing with flash memory like my USB flash drive im …

Member Avatar for NotNull
0
129
Member Avatar for amroto

Hi,Please i need some help in my java program,it's purpose is to enter 2 equations and it solves them graphically,the problem is that the graph has a glitch with the x and y axis,plz can someone help me so that all the equations are solved correctly.. here's my source code: …

Member Avatar for Ezzaral
0
116
Member Avatar for toko

k guys i have a text file that has a record of passwords, i am trying to read from that file if the guys username and passwords match access granted if not there denied. [CODE=vb] read = System.IO.File.OpenText("password records.txt") username = txtUsername.Text For a = 1 To 10 txtOutput.Text = …

Member Avatar for toko
0
107
Member Avatar for fleahman

[code]08048e19 <phase_2>: 8048e19: 55 push %ebp 8048e1a: 89 e5 mov %esp,%ebp 8048e1c: 83 ec 38 sub $0x38,%esp 8048e1f: 89 5d f4 mov %ebx,-0xc(%ebp) 8048e22: 89 75 f8 mov %esi,-0x8(%ebp) 8048e25: 89 7d fc mov %edi,-0x4(%ebp) 8048e28: 8d 45 dc lea -0x24(%ebp),%eax 8048e2b: 89 44 24 04 mov %eax,0x4(%esp) 8048e2f: 8b …

Member Avatar for NotNull
0
123
Member Avatar for kotkata

I'm not sure what to do exactly. I get some errors that say that displayBoard is declared as an integer yet, I have it declared as void. I'm not sure where these are coming from and they are impeding me from continuing with my work. I would appreciate any pointers …

Member Avatar for ArkM
0
181
Member Avatar for chanda gul

Hi all, i m trying to read registry root keys and their subkeys but there are some keys on which access is not allowed. For getting access to such keys, i used the following code where keypath is the path to that particular key to which i want to gain …

Member Avatar for dickersonka
0
85
Member Avatar for Bhoot

Well, this post might seem weird but as i am very much confused, i thought to seek some help from here. My question is : When should i call a base class implementation of a message handler in my own implementation? ( I am talking about MFC.) For example : …

Member Avatar for Bhoot
0
160
Member Avatar for k88joshi

Hey Everyone, Currently, I am working on a base converter that converts a binary to decimal or decimal to binary or binary to hex. However, for this I need to read the string or the number from the text file and convert it to a hex or binary or octal. …

Member Avatar for ArkM
0
88
Member Avatar for polo_coins

I have some code bellow and I get an exception what wrong with this code, I'm just started to study with section of OOP so maybe I made a stupid mistake : [ICODE]static void Main(string[] args) { Ishow c1 = new Circle(1, 2, 10); c1.show(); interface Ishow { void show(); …

Member Avatar for LizR
0
72
Member Avatar for bharatshivram

hi, i have written some code that lets the user to upload a file to the root directory of the website. I want the file to be renamed automatically before it is being saved, how do i do this?? [CODE] using System.IO string ImagesFolder = “MyImageFolder”; string savePath; string saveFile; …

Member Avatar for reach_yousuf
0
104
Member Avatar for raul15791

Hi, I'm newbie in ASP. I am trying to view multiple pages by using a single file. For example, I have a few pages of product.asp (products.asp, products1.asp and so on). Now I want to create a single single (products.asp) but can view multiple pages. Try to search through google …

Member Avatar for raul15791
0
300
Member Avatar for abu taher

I work with a student database project. when I click Add New button a massage show. I write code in add new button was "adodc1.recordset.addnew." massage was "Multiple - step OLEDB operation generated errors. check each OLEDB status value, it avaiable. No works was done." when I press ok another …

Member Avatar for abu taher
0
90
Member Avatar for IrishUpstart

I am trying to write a program to find the integrals of a function, where the computer determines the number of slices that it should use, going through a loop until it finds the change small enought to ignore. I want it to have a tolerance of .01% Can anyone …

Member Avatar for devnar
0
106
Member Avatar for ajay.krish123

While entering the password and id in the program ,i want the program should not display any of those entered characters. While enter the password it should show the astericks for eg. ****** By using Scanf,it is not possible.. By using getpass() function it just doesn't display any thing on …

Member Avatar for ajay.krish123
0
108
Member Avatar for andrewama

Hi again guys, Im trying to declare SIZE as a constant but i keep getting an error saying C++ forbids declaration of SIZE with no type. Does anybody know how to fix this. it was also giving me an error when i was using the void main command so i …

Member Avatar for grumpier
0
171
Member Avatar for henks

[code] #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int main(){ char input[10]; int i,j,digit,out[10],flag=0,sum; while(flag==0){ sum=0; flag=0; strcpy(input," "); scanf("%s",&input); fflush(stdin); digit=strlen(input); printf("%d\n",flag); if(strlen(input)>8){break;} /*else { for(i=0;i<8;i++){ if (input[i]!=48&&input[i]!=49){ flag++; break; } } }*/ printf("%d\n",digit); printf("%d",flag); if (flag==1){break;} for(i=0;i<8;i++){ if(input[i]!='\0'){ if(input[i]=='1'){ out[i]=1;} else if(input[i]=='0'){ out[i]=0;} } } j=1; for(i=0;i<digit;i++){ sum+=out[i]*pow(2,digit-j); j++; } printf("Decimal …

Member Avatar for henks
0
145
Member Avatar for ryeman012

I need to use at least one array in the tic tac toe code shown below and I am not sure how to do it. I am new at this which explains my question. Any help would be greatly appreciated. Public Class MainForm Dim p As Integer Dim pic As …

Member Avatar for timothybard
0
320
Member Avatar for ashish_nirkhe

I am designing a project in java.I am mostly done with the code. I need to know how to convert my java code into .exe file? pls reply soon. Thanks in advance.

Member Avatar for ashish_nirkhe
0
123
Member Avatar for afg_91320

[code] int array1[4], array2[4] = {3, 6, 9, 12}; array1 = array2; [/code] and this one: [code] void showValues (int nums [4][]) { for (rows = 0; rows < 4; rows++) for (cols = 0; cols < 5; cols++) // is this the line of error? cols is not declared …

Member Avatar for Alex Edwards
0
556
Member Avatar for caniballism

i have created a database and populated it with information but i have to run queries on it without using a query builder and am quite rusty on SQL. Below are the tables for the database! Staff : Man no, SName,LName, Address, Tel Mobile. Students: Driver No, Group, Exp Date, …

Member Avatar for caniballism
0
105
Member Avatar for justinmyoung

It's just a testing script and a testing database but I can't get it to work. It's using an edit-in-place script that allows users to edit their data, then it calls this save php script which is supposed to save it and update it within the database. It does neither. …

Member Avatar for somedude3488
0
148
Member Avatar for vladdy191

Given the following function variables declarations in C++: int (*f)(int); int (*g)(int); int (*h)(char); when try to assign f=g its fine but trying to do h=g gives an error with a C++ compiler, can anyone tell me why this is?

Member Avatar for skatamatic
0
148
Member Avatar for complexcodes

I am trying to write a program that displays a rectangle when user drag the mouse and when user release mouse, it displays the rectangle with green color. I am terribly confused here is what I am thinking to do import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.net.*; public class …

Member Avatar for BestJewSinceJC
0
574
Member Avatar for freudian_slip

For some weird odd reason, sqrt(2/num) does not work. [ICODE] cout << " sqrt(2): " << sqrt(2) << endl; cout << " sqrt(num): " << sqrt(num) << endl; cout << " sqrt(2)/sqrt(num): " << sqrt(2)/sqrt(num) << endl; cout << " sqrt(2/num): " << sqrt(2/num) << endl;[/ICODE] results in [ICODE] sqrt(2): …

Member Avatar for vmanes
0
149
Member Avatar for Srynx

When I compiler my program I get this warning and when running it a runtime error. The warning is: 128 ... [Warning] passing arg 1 of `MostraPantalla' makes pointer from integer without a cast

Member Avatar for bonnie1702
0
80
Member Avatar for college.student

[code=cplusplus] #include <cstdlib> #include <iostream> #include "stdafx.h" using namespace std; int main() { char YorN; cout << "This Program Calculates Job Earnings\n\n"; cout << "Would You Like To Use The Pay Calculator Program: "; //With while loop the 2 previous cout statements are not //read cin >> YorN; while ( …

Member Avatar for vmanes
0
102
Member Avatar for justinmyoung

I'm trying to implement a Prototype scoller.js script within my site, and functionally and aesthetically its working fairly well. However there are two problems that I need someone who knows what they're doing to help me with. My site you can see the problem: [URL="http://www.thecassidyfeed.com/index2.html"]http://www.thecassidyfeed.com/index2.html[/URL] #1. When initially visiting the …

Member Avatar for justinmyoung
0
122

The End.