132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Python_noob!

Im honestly going to die in this class! We have a project that we need to do on adding binary numbers and I cannot manage to get past the first step...checking the users strings for 1's and 0's. If it contains anything else...the code is supposed to reject the users …

Software Development python
Member Avatar for TrustyTony
0
115
Member Avatar for Nandomo

Hello I was wondering how can I set a char limitation in my code when I am asking for an int? When you input a char my program goes crazy. Let's put the following simple program as an example: [CODE]#include <iostream> #include <iomanip> using namespace std; int main() { int …

Software Development c++
Member Avatar for Nandomo
0
2K
Member Avatar for Katya

Hi everyone![I] I need to write program that will find the average of 20 element array and also display the number of each number in the array occurs.[/I] [I]I have sorted average number but straggle with "number of occurrences". Please help!!!![/I] [code=c] #include<stdio.h> #include<math.h> main() { float avg,sum=0; int i,j; …

Software Development c
Member Avatar for alekhya.p123
0
543
Member Avatar for BlakTasTic

I am taking an algorithm class and haven't coded in c in around 5 years and realized I have forgotten alot. I tried to use atoi, i know there is a better function but for what I'm using it for and my lack of knowledge now it is simpler, for …

Software Development algorithm c
Member Avatar for WaltP
0
103
Member Avatar for crodriguez08

Hey there, I'm having trouble figuring out the next step of my program. What I'm trying to do is make a function that will add two polynomials, and I don't know how to exactly fix it. My first question would be if the Polynomial operator+ function is right, or whether …

Software Development c++ legal
0
108
Member Avatar for beginner21

im currently building a game who wants to be a millionaire..the interface is already done but there was an error..there was an incompatible types exception..here is my code..it says found java.lang.String but expected java.awt.event.ActionEvent..help please [CODE]public class MillionaireBoard extends JFrame implements ActionListener { private MoneyLabels a; private JLabel A; private …

Software Development java
Member Avatar for beginner21
0
211
Member Avatar for bigwhiteegg

I had just started learning C++ for couple months n this program is involved with pointer there is a bug in my "doInsert" function however, I dont seem to be able to figure out what is wrong with it every time after I enter the "position" the program crashed can …

Software Development c++ ios
Member Avatar for bigwhiteegg
0
130
Member Avatar for timb89

im trying to write the post order print out of a preorder binary tree reading into a text file though everything i have attempted to do so far as resulted in an error. ive tried reading the preorder into stacks, queues, arrays, and the best ive been able to come …

Software Development c++
Member Avatar for timb89
0
164
Member Avatar for lasl0w

Can anyone help me figure out why I have a segmentation fault error occurring during runtime? I'm guessing that I am accessing memory that doesn't exist or attempting to place data into a node that hasn't been allocated, but can not figure it out. FYI - It's a work in …

Software Development c++
Member Avatar for lasl0w
0
111
Member Avatar for Emaneitron
Member Avatar for lainho

I'm currently in a data structure class and i have little programing experience. The assignment is A. In this part, you are supposed to design an integer random number generator that would produce random numbers between 10 and 99 (both inclusive). Design schemes to evaluate its performance as a random …

Software Development c++ data-structure
Member Avatar for lainho
0
139
Member Avatar for kdott

I have a scenario where i am given a file that contains info such as: (just a sample) img01.jpg|Washington DC|aquarium|puffer fish|seahorse img02.jpg|CHICAGO|AQUARIUM img03.jpg|Chicago|fish where the first section is the "image" (just a made-up name, not an actual image) and the rest of the words are keywords. ive been able to …

Software Development java linked-list
Member Avatar for NormR1
0
164
Member Avatar for edwalk

This program is suppose to grab the first letter of each name and then output the initials. #include <iostream> using namespace std; const char blank= ' '; const char newline= '\n'; void main() { //Declare character variables char firstInitial, middleInitial, lastInitial; cout<<" Please enter first, middle, and last name separated …

Software Development c++
Member Avatar for edwalk
0
89
Member Avatar for fukki

Hello, In some functions of my program this code doesn`t work normally [code] string w1; string w2; cout<<"1st msg: Enter 2 words: "; getline(cin,w1); cout<<endl; cout<<"2nd msg: Enter 2 words: "; getline(cin,w2); cout<<endl; cout<<endl<<"w1: "<<w1<<endl; cout<<"w2: "<<w2<<endl<<endl;[/code] But when i run it is some functions(except main and some others) of …

Software Development c++
Member Avatar for Ryaether
0
111
Member Avatar for josirucu

[COLOR=Blue][B]hi.i've written a program that loads #'s into an array and sorts them.The end user then inputs a number and the program is supposed to perform a sequential search for the input number and tell wether it was found or not found.I'm hoping someone canhelp me with my sequential search.binary …

Software Development java
Member Avatar for foxpro21
0
349
Member Avatar for evankean

Good morning all; This one is blowing my mind and I could use a little expertise. I'm retrieving data from an Excel sheet, using a simple SQL query using a textbox as input to my variable. It works great when I enter an integer to search for (such as 213 …

Software Development dataset open-source vb.net
Member Avatar for crapulency
0
132
Member Avatar for XenoGearX

I'm a first semester student of Master degree and i need to implement a project in C# that uses a database with transactions and any kind of monitoring. I already know how to connect a database with C# and i know how to work with databases, but i don't have …

Software Development c c# c++ monitoring-software
Member Avatar for XenoGearX
0
116
Member Avatar for xc3ss1v3

Good morning all. I've run into a slight stumbling block with some code I'm writing. I'm sure you've all seen the numerous Mortgage Calculator threads so I hope you're not too sick of them yet. Basically, I need my code to first ask the user for a decision, then based …

Software Development gui java java-swing
Member Avatar for xc3ss1v3
0
158
Member Avatar for MyrtleTurtle

Is it the boost library? Regex in particular? I have searched and searched, but this is all I could come up with. If this is the correct library, then how do I get it to work in Dev-C++? I managed to add all the boost .h files to my Dev-C++ …

Software Development c++ regex visual-studio
Member Avatar for mike_2000_17
0
370
Member Avatar for rameezh88

Hey i am a beginner in programming. My code looks like this: public ChatClient1(String screenName, String hostName) { super("Chat"); String host=(args.length<1)?null:args[0]; ...and it continues. The error I am getting when i compile is: cannot find symbol symbol: variable args and its for both the args in the code above. this.screenName=screenName;

Software Development java
Member Avatar for rameezh88
0
117
Member Avatar for maharjun

if a pointer is a dangling pointer and one applies delete[] to it. is the result defined or not. i basically have the following situation [CODE] class A { private: int *p; //other data members public: //rest of class } [/CODE] i intend to initialise p in the constructors. but …

Software Development c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for lradske

i have made a program with a vector that is a instance of a class student with three variables. i have stored the information and calculated the class average. what I want to do is get the person with the highest test score and output "this student has the highest …

Software Development algorithm c++
Member Avatar for Ancient Dragon
0
117
Member Avatar for Suzie999

I'm having a little trouble returning the current date from a dll function. Here is my code [CODE]LPSTR __stdcall date() { int i; char dateStr [10]; _strdate( dateStr); LPSTR string = ""; for (i = 0; i < 10; i++) { string += dateStr[i]; } std::cout<<dateStr<<"\n"; return dateStr; }[/CODE] I …

Software Development c++
Member Avatar for Suzie999
0
133
Member Avatar for BLUEC0RE

Hey! I started using java this year and I finished a java project but when I try moving it somewhere else in my directory it does not execute anymore. My project directory tree goes like this (I am using eclipse)... (ignore the "-") /Root - /bin -- JavaProgram.class -- JavaProgramMain.class …

Software Development file-system ide java
Member Avatar for BLUEC0RE
0
229
Member Avatar for empyrean

helo all i wanted to import .csv file to my application [CODE] private DataSet ReadExcelData(string sFilePath) { DataSet dsOutput = new DataSet(); string sConnection = string.Empty; try { if (TypeExcel == "Excel 12.0 Xml") { sConnection = "provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + sFilePath + ";Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1\""; } else if (TypeExcel …

Software Development c# dataset open-source xml
Member Avatar for empyrean
0
2K
Member Avatar for FreezeBlink

Really, the title says it all. Is there any way to compile all the instances of a class into a list, or other such data structure?

Software Development data-structure python
Member Avatar for Gribouillis
0
576
Member Avatar for n.aggel

Hi, i have created a data structure {heap based}, capable of manipulating up to 10 million elements....I noticed that i can't go above this number because i have serious memory leaks.... The problem seems to be that i haven't written a destructor!{i a bit used to garbage collection!} if i …

Software Development c++ data-structure
Member Avatar for ani malviya
0
223
Member Avatar for izyrider

Hi, I have a DataTable oDT. oDT is populated from SQL Server with 6 columns including a column "bAAA" of varbinary(200) I have a function fx(ByVal byteArray As Byte()) as String I would like to add a calculated column to oDT something like this: [code] oDT.Columns.Add("sAAA", GetType(String), fx(bAAA)) 'bAAA is …

Software Development vb.net
Member Avatar for izyrider
0
141
Member Avatar for gwahl

If I wanted to declare a large number of variables that were all similar, for example: [code=c] var x1; var x2; var x3; var x4; var x5; var x6; var x7; var x8; var x9; var x10; var x11; [/code] ...etc Is there a faster way to do that? Maybe …

Software Development c++
Member Avatar for mrnutty
0
99
Member Avatar for lukename

Hello. How can i use SendMessage to "press" other program's button? I don't know other program's button's ID but there is only one button in that program. I searched MSDN and found something. I tried this piece of code: [CODE]HWND hWnd; hWnd = HWND(FindWindow(NULL, "WindowName")); SendMessageW(hWnd, BM_CLICK, NULL, NULL);[/CODE] At …

Software Development c++
Member Avatar for lukename
0
182
Member Avatar for titan_amit

hiii guys.. i am trying to make an mp3 player using ADSP 21369 processor. For that i need a code which can convert mp3(mpeg2 layer3) samples to wave samples in c. thanx in advance.

Software Development c
Member Avatar for Inth
0
224
Member Avatar for python_user

Hi all, Could anyone please help me with this i have a cascaded menu button and i am adding nodes in a loop like this [CODE] #Create a cascading menu button for adding attribute types AttTypemenuBar = Pmw.MenuBar(topF, hull_relief = 'raised',hull_borderwidth = 1) aname = " Select...." self.createAttTypeMenu(AttTypemenuBar, topF, typeF, …

Software Development python
0
140
Member Avatar for destruct0

Hi ! I have one Windows Form. On it i put 4 labels and every label it have Click event. I need to understand who of labels is Clicked ? Example: [CODE]label1.Click += new EventHandler(label_Click); label2.Click += new EventHandler(label_Click); label3.Click += new EventHandler(label_Click); label4.Click += new EventHandler(label_Click); private void label_Click(object …

Software Development
Member Avatar for destruct0
0
104
Member Avatar for MikNoz

I'm writing a code in Java where input is a user generated integer string and I have to reverse the integer and check for boolean true or not. I'm stuck at the math portion because I can't exactly figure out the mathematical process of trying to reverse an integer. [CODE]// …

Software Development algorithm java
Member Avatar for NormR1
0
107
Member Avatar for Yutxz

My problem is to design a program that uses a mathematical model for heat loss, or Tnew = Told - m(Told - Tair). It also asks me to repeat the code for 60 minutes, generating a new answer every minute. I have completed the code, however I receive no output. …

Software Development java
Member Avatar for javaAddict
0
1K
Member Avatar for unnamed17

Hello, I have a txt file of the following format: 315151,34.56,1,1,54442221,23344445 512512,12.54,1,1,23444442,45612345 I am using the following code to parse it and it works: while( fgets( output,sizeof(output) ,file) != NULL ){ i=0; token[i] = strtok(output,","); while( token[i] != NULL){ i++; token[i] = strtok (NULL, ","); } dec2bin(atol(token[4]),binaryBefore); dec2bin(atol(token[5]),binaryAfter); dec2bin is …

Software Development c mysql
Member Avatar for Ancient Dragon
0
246
Member Avatar for nssltd

Hi out of personal interest i have decided to make a space invaders games. I know all the things i need to implement and i have done a good job if i do say so myself :D. But i have one final problem. When my space ship is just staying …

Software Development
Member Avatar for nick.crane
0
106
Member Avatar for JonGR

[code]import java.util.Scanner ; public class Verk6 { static public void main(String[]args) { Scanner scan=new Scanner(System.in) ; double[] a=new double[1000] ; Stats stats=new stats() ; int i=0 ; while(scan.hasNext()) { a[i]=scan.nextDouble(); stats.add(a[i]); i++ ; } Arrays.sort(a, 0, i) ; if(i%2==0) { int m=i/2 ; System.out.println("Median value:"+(a[m-1]+a[m])/2.0) ; } else { System.out.println("Median …

Software Development java
Member Avatar for Xufyan
0
193
Member Avatar for nix_xin

pls help me . . . give me some hints on how to do this program . . . a program that displays a mirrored-right triangle using asterisk. the program should ask the user to enter the number of rows and displays the mirrored-right triangle. the minimum is 3. there …

Software Development java
Member Avatar for Xufyan
0
175
Member Avatar for ultimatebuster

Is it possible to import a and import b, but have functions from both a and b under a different name? Example under a.py there is function jopen() under b.py there is function ropen() i want be able to call both of them from c: c.jopen() c.ropen()

Software Development python
Member Avatar for ultimatebuster
0
127
Member Avatar for zaacze

hi everyone! i've been trying to make a program regarding returning the number of characters with even ASCII codes. For example, if a user input ABCDE, the output should be 2 since B and D are of even ASCII codes. Here's what i've done so far... [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> …

Software Development c
Member Avatar for Ancient Dragon
0
176
Member Avatar for unnamed17

I have a txt file in this format: 111,5.67,2,4,566666,666667 111,5.67,2,4,566666,666667 111,5.67,2,4,566666,666667 111,5.67,2,4,566666,666667 Is there any way so i can open the file and at the end of each line binarynumber to become: 111,5.67,2,4,566666,666667,111000,111000 111,5.67,2,4,566666,666667,111000,111000 111,5.67,2,4,566666,666667,111000,111000 111,5.67,2,4,566666,666667,111000,111000

Software Development c
Member Avatar for Ancient Dragon
0
100
Member Avatar for srinivasan106

wat is the concept beyond COLUMN SORT??.. can any body guide me...Y column sort is introduced??

Software Development c
Member Avatar for Ancient Dragon
0
83
Member Avatar for Rashakil Fol

wordify: Converts any integer number (such as 123456000999) into a string ("one billion two hundred ninety-three million one hundred two thousand one hundred").

Software Development
Member Avatar for v6ak
0
350
Member Avatar for smegal

Hi, I am working on querying a specific value from my xml file. Below is what I have so far. When running the entire script I get the error "Incorrect syntax near 'varchar'". Thanks -- Declarations needed to run sp_xml_preparedocument. This will create XML image. Declare @idoc int Declare @doc …

Software Development dataset sql xml
Member Avatar for smegal
0
197
Member Avatar for mrbungle

Ok, here's what I've got. I have a form that exports to an Excel worksheet (sheet1) and it works great, no issues there or anything. It's not a template, just a regular .xlsx spreadsheet, but I use it as my template. Now, the goal is for the end user to …

Software Development microsoft-office vb.net
Member Avatar for kvprajapati
0
175
Member Avatar for Bhargavi V

I am getting the following Errors when I am linking the .pdf document I am using the following piece of code[CODE] String lPathPrefix = "file://muceap10.muc.amadeus.net/User Step Folders/BPS_Files/Outlooksoft CPM/01 - Production Environment/01 - Documentation Library/01 - Documents/Daily_Checks/"; String lPath = (lPathPrefix + doccolvalue).replace(" ", "%20"); URI lURI = new URI(lPath);[/CODE] java.awt.Desktop …

Software Development java java-swing open-source pdf
Member Avatar for sandcat
0
1K
Member Avatar for ata_tszx

Hello all, i'm doing a reservation equipment system and almost finish with it except that i have problem with double booking. I have no clue where to start and how to start, i included along with my system for you guys to check.. Where should i put the coding at? …

Software Development visual-basic
Member Avatar for AndreRet
0
158
Member Avatar for pennylynne

Hi!! I have written three classes (two of which are most relevant) and am required to construct an operating calculator. This is the CalculatorPanel: [CODE]/* * CalculatorPanel.java * * Lab 19, COMP160, 2010 * * An alternative GUI front end for the Calculator class * */ import javax.swing.*; import java.awt.event.*; …

Software Development gui java java-swing operating-system
Member Avatar for JamesCherrill
0
524
Member Avatar for kimiko

okay i've been using bluej for learning purposes but i kind of hit a snag would it be possible for someone to code me a main method so that it works as stand alone program please [code] public class Circle { private int diameter; private int xPosition; private int yPosition; …

Software Development java
Member Avatar for masijade
0
211

The End.