132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jo8594

Ok, here is the problem. I have to ask a group of people for donations and get the total average and so on. The only problem I have is trying to get the lowest donation from the inputted numbers. I can't seem to get the actual lowest number. It just …

Software Development java java-swing
Member Avatar for sillyboy
0
132
Member Avatar for shamila08

hello, dear all. below is my program code. the problem is an half of my output is zero for entries of matrix for n greater than 4. [code=cplusplus] #include <stdio.h> #include <stdlib.h> #include <iostream> #define MAX 100 int num[MAX][MAX]; int n; int nrows = 0; using namespace std; void print(int …

Software Development c++
Member Avatar for shamila08
0
144
Member Avatar for daniellamae

uhm, i really need help on recursion problems, and the first problem before my assignment is me because i really dont know how to do it, or how to construct it successfully... this is my assignment: a program that will read 10 integers,display them as inputted and in reverse order, …

Software Development c
Member Avatar for csurfer
0
127
Member Avatar for ronizam

print the decimal, octal and hexadecimal values of all character between the start and stop character entered by user, For example, if the user enters and 'a' and 'z', the program should print all the character between 'a' and 'z' and their respective numerical values. make sure that the second …

Software Development c
Member Avatar for Dewey1040
0
118
Member Avatar for ronizam

hello...i am new here and also new in IT enviroment, try to do my assignment as below Write C program that accept a character using scanf () function,if the character is lowercase letter,convert to uppercase letter and display the letter in its uppercase form, if the character is uppercase, convert …

Software Development c
Member Avatar for csurfer
0
103
Member Avatar for bossie09

im writing a calculator programme for my project. But i dont know how to find Tan, Cos, Sin. Any one can help I would appreciate that. what is the formula

Software Development c
Member Avatar for csurfer
0
171
Member Avatar for Yersey

Hello, I am fairly new to C++ and am having a bit of trouble reading in a text file to my program which contains numbers(integers) and names(strings) and checking for spaces in the names(strings).I basically am reading in a .txt file which contains numbers and letters. In this file, the …

Software Development c++
Member Avatar for Ancient Dragon
0
169
Member Avatar for bigOnotation

Hi I am new to c programming language, I have written this small code and I dont know why cant i use the free() here, any clarification highly appreciated. [code=c] int insert(element **head, int d) { element *temp; temp = (element*)malloc(sizeof(element)); if(temp == NULL) { printf("\nError: Failure to allocate memory\n"); …

Software Development c
Member Avatar for nucleon
0
98
Member Avatar for curtissumpter

Hi, Everything else in this code works properly but the keyTyped method is not working properly. I have been working on this for sometime. Any help would be appreciated. Also, any advice on getting my southPanel to appear when I start the application? It appears but only after I expand …

Software Development java java-swing perl
Member Avatar for sciwizeh
0
139
Member Avatar for swatirao

Hi! Please help me .. urgent How do i using a Query in crystal report?... I tried using the select expert but I dont know how to go abt it... from srao

Software Development visual-basic
Member Avatar for benuu
0
120
Member Avatar for sciwizeh

So, I got this idea that I could make a simple game in Java, with animated GIFs for the running animations, but I have a problem, although Java will display the animation on a JLabel when made into an Icon, but I don't know how to, and can't seem to …

Software Development java
Member Avatar for sciwizeh
0
453
Member Avatar for crewxp

When declaring get_color and get_size, my compiler gives me errors, and I don't know how to solve them. It's probably something really simple, but I think the more I try at it, the more messed up my code becomes (hence the 'this' and '->' references) marble.cpp(11) : error C2143: syntax …

Software Development c++
Member Avatar for Rashakil Fol
0
160
Member Avatar for dvsConcept

Im writing my final project and i have everything in one .cpp file and i was wondering if someone could tell me in detail how to go about putting things in their own file and leaving the main function by itself in the main file. for example i have some …

Software Development c++
Member Avatar for dvsConcept
0
102
Member Avatar for Argo54325

Ok so i made a decoder for this that gets the letters from the numbers that this encoder gets. Problem is that i think the numbers its giving me are wrong and i can't seem to figure out whats causing the problem. Help please! :( [CODE=C++]#define _CRT_RAND_S #include <iostream> #include …

Software Development c++ file-stream ios
Member Avatar for Argo54325
0
107
Member Avatar for StainlessSteelR

This is what I'm suppose to do: "Create a while loop to read in the corporate sales data from the pgm3.dat file and create a report listing data for each division as well as some of the summary data described in Programming Challenge 12 in the textbook. Inside the loop, …

Software Development c++ data-structure
Member Avatar for Ancient Dragon
0
122
Member Avatar for .11

I cant check if this is write as I have to do it at school. But I wanted to know if you can read over for me. This is my multiplication [CODE] add $s2, $zero, $zero add $t0, $zero, $zero LOOP: beq $t0, $s0, EXIT add $s2, $s1, $s2 addi …

Software Development assembly
Member Avatar for .11
0
126
Member Avatar for cppStudent

Hi [CODE]int** numberLists = new int*[count];[/CODE] I'm having difficulties understanding this line of code, I've just started programming in c++. I think I got the basics of pointers but I can't find any helpful "enough" info about arrays of pointers. I understand that an array of pointers to integers is …

Software Development c++
Member Avatar for death_oclock
0
147
Member Avatar for codedhands

Hello everyone,i really need help with this big problem(to me its big).The project am writing requires a panel to display its current status information on.I figured that i will need to make that panel scrollable because it will contain multiple lines of the text.My problem is i do not know …

Software Development python
Member Avatar for codedhands
0
2K
Member Avatar for loveforfire33

Hi guys, im trying to get this code to work, im basically trying to write a programme that will find the smallest possible amount of coins needed to make up the amount of pence entered into a text box. ive managed to get it working with a very long If …

Software Development
Member Avatar for LizR
0
108
Member Avatar for Argo54325

When i runt he code and try to get the size of the 2 files something goes wrong with the msgIn file. I'm using the same method for both files and the bookIn will work but msgIn just returns 0 as if it never ran. this is the method that …

Software Development c++ file-stream ios
Member Avatar for Salem
0
139
Member Avatar for aries_rupali

hie im Rupali im doing my final yr project using IVR for car dial. I have no idea from where to start. Can someone please help me how to write code and how to write it in C.

Software Development c
Member Avatar for Luckychap
0
69
Member Avatar for scrypt3r

Im trying to get my program to list certain types of drives etc but i dont know all the drive type names like "DRIVE_REMOVABLE" or "DRIVE_CDROM". does anyone have a list of the entries?

Software Development c++
Member Avatar for Yiuca
0
112
Member Avatar for omega1

hi all, new here and doing my best with a bit of FTP code but have got stuck so would appreciate some help, thanks in advance... I have the following bit of code [ICODE] '------------------------------------------ 'Command format : [PUTFILES] = <local directory> ; <remote directory> 'Example : [PUTFILES] = C:\TEMP\ …

Software Development audio visual-basic
Member Avatar for Comatose
0
99
Member Avatar for firoz.raj

Can anybody tell me why i am getting error in the bold line. Application uses a value of the wrong type for the current Operation .? [Code] Private Sub Command2_Click() If (CheckInput) Then End If Y = MsgBox("do you add this record", vbYesNo + vbQuestion, "message") If Y = vbYes …

Software Development open-source visual-basic
Member Avatar for debasisdas
0
245
Member Avatar for jreeson

Hi, I am developing an Inventory Management System using VB 6.0, and MS Access Database. I am getting an error: "data type mismatch in criteria expression" which sounds like a variable type mismatch. But i have checked and double checked my datatypes and they seem to match up. Here is …

Member Avatar for debasisdas
0
129
Member Avatar for PhiberOptik

Hey guys, I wanna download a file to a certain directory on the computer. I have code that downloads to the same place where it's launched but I want it to download the files do another directory. (This isnt my code I found it on a tutorial) Here is the …

Software Development java
Member Avatar for PhiberOptik
0
118
Member Avatar for Argo54325

I'm trying to get a char back from the bookFile.txt but, when i run the program it returns nothing. I'm not sure if .get() if the right thing to be using. When i run this code i get the random number and the first letter of the msgFile.txt returned correctly. …

Software Development c++ file-stream
Member Avatar for nucleon
0
186
Member Avatar for fusi0n423

I have a project where I have to analyze 3 different hashing functions. I cannot get the cyclic shift hash to work with a bitwise OR. Everything looks fine to me am I doing something wrong? [code=cplusplus]int Hash::hash(string key) { unsigned int h = 0; for(int i =0; i < …

Software Development c++ visual-studio
Member Avatar for nucleon
0
311
Member Avatar for javaman2

i need help with converting celsius to fahrenheit and vice versa in my program. for example, if someone would input 0C for the first temperature and 32F for the second temperature, i need to convert one of these temperatures so that my equals method can recognize that they are equal …

Software Development java
Member Avatar for javaAddict
0
145
Member Avatar for alphabetanm

I understand the structure of a do while; however, when I start plugging in my statements, I am not gettng the result I want. The logic is wrong. Knowing the general form of the do while is: do statements while (condition) and wanting to write a do while code to …

Software Development c++
Member Avatar for alphabetanm
0
101
Member Avatar for GadiK

Hi Guys, I'm trying to write a simple game of drawing rectangles and circles in a window. I've created a different class for each shape: RectClass and CircClass. Each of these classes has it own DrawShape() function which suppose to draw the shapes in the window with given coordinates argument. …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
203
Member Avatar for odzky

Create a function w/c accepts as input the double numbers x1,x2,x3 and returns to the program the value of the average (x1+x2+x3)/3 as a variable parameter. #include<stdio.h> #include<conio.h> main() { i really dont know what next...........

Software Development c++
Member Avatar for Ancient Dragon
0
278
Member Avatar for ryan311

help how can i know if the user is not an admin i have combo box in my combo box have a user or admin additem if he choose admin then all i want is to validate if the username and password is for admin user this is my code …

Software Development visual-basic
Member Avatar for debasisdas
0
112
Member Avatar for irish59575

Hi, can someone please help me, I am new to Java and I am getting a NullPointerException error and cant figure out why Here is the code class TestBirthday { public static void main(String[]args) { int num; System.out.println("Enter number of people to test"); num = Console.readInt(); Birthday2 Experiment = new …

Software Development java
Member Avatar for irish59575
0
241
Member Avatar for breatheasier

Is there an easy way of doing this? for example my list is: [code=python] nlat=10 mylist = [] for x in range(0,nlat): for y in range(0,nlat): disk=sphere(pos=(x*s,y*s), radius = r, color=(0,1,9)) mylist.append(disk) [/code] or is it impossible to place objects, such as a sphere from vpython into a numpy array?, …

Software Development python
Member Avatar for breatheasier
0
687
Member Avatar for ryan311

hi can anyone help me i have a billing system, how can i save the data to another table? using sql? may 1 table name is transac and all i want is if what the record have been save to my transac then it will save to another table name …

Software Development visual-basic
Member Avatar for ithelp
0
81
Member Avatar for nparrish15

I've been working on a program and have hit a roadblock. I know conceptually what to do, but I'm having trouble implimenting it. Ok, so what it's suppose to do is take them randomly generated numbers that have been put in arrayints and factor them. This right now for an …

Software Development c c# c++
Member Avatar for arghasen
0
129
Member Avatar for azwraith69

i have a problem with curses my program is working properly, but when i include curses.h, it produces errors i can't understand.. [icode]classmates.erase(classmates.begin() + i);[/icode] and the error is: [COLOR="Red"]macro "erase" passed 1 arguments, but takes just 0[/COLOR] and [COLOR="Red"]statement cannot resolve address of overloaded function[/COLOR] if i remove curses.h, …

Software Development c++
Member Avatar for azwraith69
0
197
Member Avatar for skitzo315

I need some help with Binary I/O. I know how to do it when I am specifying the filename in the code ie: [icode] fstream fio("persons.txt", ios::in | ios::out | ios::binary | ios::trunc); [/icode] What I need to know is how to open or create a file with a file …

Software Development c++ ios
Member Avatar for siddhant3s
0
315
Member Avatar for jeevsmyd

hey friends, here is a code that I made to find the prime numbers in an array.. What the program is supposed to do is check whether the number is PRIME or not.. The position of the element is specified and the program finds and check the element in that …

Software Development c++
Member Avatar for jeevsmyd
0
123
Member Avatar for super zach

Hello all, I have a very rookie question to ask. I am using Pyraf, Python, Sextractor, & a sextractor wrapper to do some automatic photometry on celestial images. The following code I have written is used to extract info from a sextractor catalog such as image positions, image magnitudes, etc: …

Software Development python
Member Avatar for lllllIllIlllI
0
145
Member Avatar for Naik Dhiren

How can i Hide/shows columns in datagridview runtime ? I have a window application form with a comboBox and a grid. As according to selection in comboBox Items, I want to hide or show datagridview columns as according to combobox item selection

Software Development
Member Avatar for Ramy Mahrous
0
164
Member Avatar for jsimula

Hi, I have problem to change table design in access. I have imported data and table is like: Product; Name1; Name2; Name3...etc And i should change it be like: Product; Name; qty ..and all data.. Any good ideas how i will change this ir right shape..?

Software Development visual-basic
Member Avatar for jsimula
0
84
Member Avatar for Datanizze

Hi! I have a slight problem with multithreading. There is many threads active in the application and they are all kept in an arraylist. so when I try to quit the program, it loops through the arraylist and exits all the threads.... but something else is making the program "unwilling" …

Software Development multithreading vb.net
Member Avatar for Datanizze
0
165
Member Avatar for tlmiller9278

Hello, this is my first post here and I noticed that other people have been struggling with this assignment too. It is the mortgage calculator program for UOP PRG420. So I am sure you all are probably about sick of this by now, but I need help. The book is …

Software Development java java-swing
Member Avatar for JamesCherrill
0
146
Member Avatar for atman

Hello guys, I'm very green in c++ and just started to understand classes and objects. I'm reading on the web about this pointer, but having difficulties understanding how it works exactly, could aanybody please help me understand or reference a good article for total noobs in c++ to grasp the …

Software Development c++
Member Avatar for siddhant3s
0
143
Member Avatar for chriscross86

hi, there...ive come up with these codes and they work.but i dont know how to modify the program so that it prints sequence of asterisks in a single line based on the input gained using : 1.while 2.do-while 3.for please help... #include <stdio.h> int main() { int x; printf("Enter an …

Software Development c
Member Avatar for Dewey1040
0
102
Member Avatar for thegreatkk

hi, i am new to .net. i m create a datagridview with check box. i wrote one function for doing some operation. i like to call that function when i click the datagridview's check box. if there is any event handler presents to call that function. please share ur idea... …

Software Development
Member Avatar for thegreatkk
0
104
Member Avatar for Tamir09

Ok, Ive got a program that Im working on, where it is supposed to calculate some formulas that I have based on some user inputted data and display the data in the form of a table on the same screen, and then optionally show a graph of the data plotted …

Software Development visual-basic
Member Avatar for Tamir09
0
329
Member Avatar for Sohvkhan

Hello, I was assigned the task of coding this program in python for homework and I recently ran into a problem. Basically the assignment asks that a program prompt the user for a series of numbers and will then output the smallest number, the largest (their respective locations) and finally …

Software Development python
Member Avatar for woooee
0
155

The End.