43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nhrnjic6

I have a practise problem to write a function that takes 3 dim and dynamicly allocates 3d array with those values and then (PART THAT I DONT GET) : fills the 3-dimensional array with multiplication tables. What am I even supossed to do ?? Here's my code : int main() …

Software Development c++
Member Avatar for tinstaafl
0
171
Member Avatar for mixelplik

How can I loop through a data field with a binary search, looking for multiple values? Please, I don't want to know another, more efficient way, I want to do it this way to understand the concepts. Also my data is indeed sorted before the call is made. The data …

Software Development c++
Member Avatar for mixelplik
0
1K
Member Avatar for sirlink99

I am having a problem deleting nodes from my Binary search tree. What I have so far does part of what it is supposed to do. I read in an input (paragraph of text) to create the tree (organized via ASCII character values). I make it, then print out all …

Software Development algorithm java objective-c regex
Member Avatar for sirlink99
0
306
Member Avatar for lizzy2

Hi, I am working on a program that prompts the user for answers to a quiz. The answers can only be a, b, c or d and they are saved to an array which I later compare to my answer key array. Below is the method I have written to …

Software Development java
Member Avatar for lizzy2
0
1K
Member Avatar for whatthebobo

I have an assigment where I am to create a program to calculate BMI. I wrote the program and would like to have someone check it to see if there are any mistakes I need to correct. //Declare variables double weight, height, bmi = 0; //Prompt user for weight in …

Software Development visual-basic visual-studio
0
114
Member Avatar for skyyadav

implement a generic fn mapf with prototype template<class Sequence c , class UnaryFunction) Sequence mapf(Sequence c , UnaryFunction f) for ex if c is a seq containing the seq (3,2,7,6,8) and f is the fn that returns twice it integer agument. then container returned by mafc(c,f) is a list containing …

Software Development c++
Member Avatar for mike_2000_17
0
414
Member Avatar for sam.escott4

Hi, In an application im making, I need to square a decimal value in a text field to then use in other calculations later, but when the compiler squares the value it ignores the decimal points, treating 1.85^2 as 185^2 and returning 34225 rather than 3.4225. What am I doing …

Software Development vb.net
Member Avatar for KenSquare
0
358
Member Avatar for razree

Hi all, I really need your help on this one. I have a MSSQL db table with two columns-ID and name. Each row in this two columns contains an unique ID and a name. Now I have a query that imports just a name in the listview (I don't want …

Member Avatar for razree
0
1K
Member Avatar for toniann.midori

Ive spent almost 4 hours messing with this code trying to figure out whats wrong...to no avail. I keep getting zero as the total in the displayTripCost function at the bottom, i dont know if i messed up the pointers or what when i called by reference.... Please help!!! //Toni-Ann …

Software Development c
Member Avatar for toniann.midori
0
357
Member Avatar for hmx7

class student_name: def __init__(self,student): self.student = student def student_name(self): print('Student Name: ', self.student) class Majors: def __init__(self,name1,name2): self.name1 = name1 self.name2 = name2 def major(self): pass def major2(self): print('Majors: ',self.name1, self.name2) class School: def __init__(self,school): self.school = school def school_name(self): print('School Name: ', self.school) class Student_Track: def __init__(self, School, student_name, …

Software Development python
Member Avatar for hmx7
0
170
Member Avatar for glez_b

I have a long list of data structured in the following way Date , Time, Temperature, Moisture, Accumulated precipitation 1/01/2011, 00:00, 23, 50, 2, 1/01/2011, 00:15, 22, 45, 1, 1/01/2011, 00:30, 20, 39, 0, 1/01/2011, 01:00, 25, 34, 0, 1/01/2011, 01:15, 23, 50, 0, . . . . 1/01/2011, 23:45, …

Software Development python
Member Avatar for glez_b
0
3K
Member Avatar for margaretbn

#include<stdio.h> int main(){ printf("hello world"); getch(); return 0; }

Software Development c++
Member Avatar for Learner010
0
100
Member Avatar for Nines

how do i put a password, change password on my code because everytime i put it in, my program don't shows it it just jumping to my selection menu, and how do i delete informations that ive put on my program? this is my code. thank you in advance. [CODE] …

Software Development c c# c++
Member Avatar for kdevesh
0
4K
Member Avatar for pygeek

Hi, im new to this forum, im trying to make a text editor in python for my school, and its nearly finished, but whenever i save a text file then open it again it makes weird square symbols at the end of each line. Thanks in advance. And i didn't …

Software Development python tkinter
Member Avatar for pygeek
0
482
Member Avatar for Tewhano

Thanks to Muschops and Schol-R-LEA I finally got my program working. However I decided to change my file format and replace the underlines with spaces and separate the data with a comma. I open the file and use getline to grab the data but I have an error that reads: …

Software Development c++ file-system
Member Avatar for Tewhano
0
3K
Member Avatar for james.lu.75491856

Traceback (most recent call last): File "C:\Users\James\Desktop\pvz.py", line 64, in <module> Pea((10,20)) File "C:\Users\James\Desktop\pvz.py", line 48, in __init__ Projectiles.add(self) File "C:\Python27\lib\site-packages\pygame\sprite.py", line 319, in add sprite.add_internal(self) File "C:\Python27\lib\site-packages\pygame\sprite.py", line 147, in add_internal self.__g[group] = 0 AttributeError: 'Pea' object has no attribute '_Sprite__g' import pygame,traceback width = 480 height = 640 …

Software Development python
Member Avatar for james.lu.75491856
0
569
Member Avatar for MONTS

import java.io.EOFException; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Scanner; class Record implements Serializable { int roll; String name; public void setData() { Scanner scr=new Scanner(System.in); System.out.println("Enter Roll Number: "); roll=scr.nextInt(); System.out.println("Enter Name: "); name=scr.next(); writeData(); } public …

Software Development java
Member Avatar for Seldar
0
196
Member Avatar for xirosen

[CODE]Hi.... can everyone help me pls in how to make program using visual basic that can Preview documents before printing.. Help me pls.. thanks...[/CODE]

Software Development visual-basic
Member Avatar for babrad
0
2K
Member Avatar for Tewhano

I am trying to read from a text file and input the data into a struct. I have read through all the threads on this topic and have not been able to work out where I am going wrong. My text file is: > Plain_Egg 1.45 Bacon_and_Eggs 2.45 Muffin .99 …

Software Development c++
Member Avatar for Tewhano
0
134
Member Avatar for sreetha

sir please give me a code for finding bigrams in a given file. example .. if the word is I AM AN OLD MAN.. output should be in a list as [I AM] [AM OLD] [OLD MAN]. i have seen some programs but its giving bi grams of a word. …

Software Development python
Member Avatar for Gribouillis
0
114
Member Avatar for talat.zaitoun

def my_startswith(s1, s2): if s1[0] == s2[0]: return True elif s1[0] != s2[0]: return False elif s2 == '': return True elif s1 == '' and s2 == '': return True Iam having trouble with the third and fourth elif. Third elif: i need to say that if s1 is …

Software Development python
Member Avatar for Gribouillis
0
225
Member Avatar for Caoimhe

I am recently new to python and as part of my college work i need to design and implement a python program relating to computer system administration. I would be grateful if anyone has ideas of a project. Thank You

Software Development python
Member Avatar for Caoimhe
0
200
Member Avatar for EXTRA_RICE

i am using vb2010 express. can u pls tell me wat is the code for delete?bcoz when im doing delete my database is not updating after i exit.i can add item in database but i cant delete it.any help?thanx guys? hope u understand my problem.

Software Development visual-basic
Member Avatar for Reverend Jim
0
154
Member Avatar for Rahul47

5 in decimal = 0101 in binary. Its 1's Complement is 1010. Adding 1 to it gives 2's Complement which is 1011. Now 1011 also represents 11 in decimal. How to differentiate +ve and -ve numbers in Binary ?

Software Development assembly
Member Avatar for Labdabeta
0
240
Member Avatar for onalenna_1

create a program that gets the marks the user has for their classes this year. Tell them how many classes they are failing (despite what many o f you think a fail is 50%) Save as Name_Surname_Repetition_Problem1.py................i seriuosly need help with this program,python is giving me a hard tym

Software Development python
Member Avatar for sneekula
0
145
Member Avatar for krystosan

how do I make a class return as `Namespace(filter='b', list="['hi','by']")` class NameSpace(object): """Mock for argparse's NameSpace """ def __init__(self, lst=None, flter=None): super(NameSpace, self).__init__() self._filter = flter self._lst = lst Is it possible what I am thinking, i guess we have to do something using special method call ?

Software Development python
Member Avatar for krystosan
0
320
Member Avatar for Ashok Karale

here is screenshot. http://i.stack.imgur.com/0LAQZ.png and here is code. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Data.SqlTypes; using System.IO; using System.Drawing.Imaging; namespace SampleApplication { public partial class AddNewUser : Form { public AddNewUser() { InitializeComponent(); } // set the …

Software Development dataset open-source regex
Member Avatar for Michael27
0
207
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/RSrshS Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/U5F2O8 My question: I got the code …

Software Development c++
Member Avatar for Schol-R-LEA
0
151
Member Avatar for mikewyatt

I have 5 image files that I wish to incorporate or embedd inside a program. I am using netbeans and I have created a directory in the files table just under the database directory (I have embedded databases) with the 5 files inside them. For good measure, I have also …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
154
Member Avatar for somjit{}

Remember High-school maths ? there was this greek letter Sigma ( if i remember correctly ) , followed by an algebraic function like `f(n)` , where `n = a to b` would be short-formed as `a` below the `sigma` , and `b` sitting on top of it. I want to …

Software Development java
Member Avatar for somjit{}
0
796
Member Avatar for Xakzi

Hello! Sorry for the bad article title, was not sure what to name it since I couldn't figure out anything good to name it, that would be near my request. Let me begin.. I code with Visual Studio 2010 with C# Windows Form Application. I code everything in combobox1 and …

Software Development visual-studio
Member Avatar for Xakzi
0
118
Member Avatar for cambalinho

see these class: class test { public: void virtual Created(){} void test() { Created(); } }; class test1 : public test { void Created(); void test1(): test { Created(); } } test1; void test1::Created() { cout << "created test1"; } (these code wasn't tested, but you get the point) can …

Software Development c++
Member Avatar for cambalinho
0
196
Member Avatar for Deegirl

Good afternoon, Can someone help to to understand how to write a student's name and final grade to a sequential file. I am doing this in Visual Basics. I see the syntax for write and read, but is not understanding how to use it in coding.

Software Development vb.net
Member Avatar for Deegirl
0
179
Member Avatar for 123pythonme

I am doing an assignment for university, so I can't exactly post the code. So I will have to explain the best I can. I have to draw 3 stars in a row, 5 points, 6 points, 7 points. We have to do it using a for loop and the …

Software Development python
Member Avatar for vegaseat
0
272
Member Avatar for Pashan

Hi guys I'm having major issues with this assignment of mine and I cant even figure out where to get started. Any help would be greatly appriciated. I must write a program that outputs that plays the game Hi Lo with a user until they decide to quit. The program …

Software Development c gaming session
Member Avatar for Pashan
0
2K
Member Avatar for nikolaos

One thread increases an integer named "counter" , and another decreases the same integer. Using synchronized statement on LockObject to control access to counter. If i understand correctly i have to use an Object reference. Can i use synchronized statement on counter somehow? public class Synchronized_Block_Demo { public static int …

Software Development java
Member Avatar for nikolaos
0
344
Member Avatar for Ann aiko

import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JComboBox; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class OtakuHigh extends JFrame{ private JLabel label, label1, label2, label3, label4, label5, label6, label7, label8; private JTextField text1, text2, text4, text5, text7, text8; private JComboBox Mbox, Dbox, Sbox, Ybox, SCbox; private JButton Qbutton; …

Software Development java java-swing
Member Avatar for mKorbel
0
213
Member Avatar for logicslab

Dear pals, I installed Turbo c for windows 7 ultimate 64 bit , but it's not user friendly .When it use in full screen the mouse is not working . Any solution for it ? If you know any new C compiler setup let me know. Thanks, Anes

Software Development c
Member Avatar for deceptikon
0
394
Member Avatar for trishtren

Hello, im currently working on a program to split a string based on symbols only, i need to seperate the string around the symbols whilst keeping the symbols as well eg. test_String_123_^; would result in an array containing : [test] [_] [String] [_] [123] [_] [^] However although i have …

Software Development java regex
Member Avatar for masijade
0
278
Member Avatar for Nebil

Hi guys, I just figured out the normalization problem.And i'm moving on to the application. But i'm facing a problem,i needed to check if an id exists in the db when an item is inserted. It's saying the title i just wrote on the article.Here's the code i used. 'Tocheck …

Software Development vb.net
Member Avatar for Nebil
0
370
Member Avatar for coolsdudes1992

i am confused about "Checked" in C#. I know it use for overflow checking. Can we use it for undeflow ? Or there is some thing else which an be use for underflow.

Software Development c#
Member Avatar for ddanbe
0
167
Member Avatar for mahdihasani

i have in part of my program error "Use of unassigned local variable". long gg = weight << 7;(error 15)

Software Development
Member Avatar for coolsdudes1992
0
86
Member Avatar for Xakzi

Hello! I come here with a tricky question and I do not know how to code it at all. First off, I am coding in Visual Studio 2010 C# Windows Forms Application I need someone to help me code the following example: I have a text file which includes only …

Software Development visual-studio
Member Avatar for Xakzi
0
231
Member Avatar for ReyJEnriquez

Hi Guys. I hope everyone in doing great today:-) I have some problem, this coe does not produce mi in aplhabetical oreder. I am using Heapsort as a sorting algo...and please help me Hope to hear from you guys;-) Public Class MyForm Private MyTable As New DataTable Private MySortedTable As …

Software Development vb.net
Member Avatar for ReyJEnriquez
0
210
Member Avatar for William_6

hello, I created a awk program to work witha data file to output a table and subtotal the rows and total up the collums and average I got it to work but when i added a presentation header before my totals go away. working code so far ------ can be …

Software Development shell-scripting
Member Avatar for William_6
0
232
Member Avatar for jared.geli

As the title says I'm having trouble in my Vehicle Maintenance routine where I will have a a monthly maintenance based on the last maintenance date. If the vehicle has reach 1 month since last maintenance it will show in a datagrid. Also it should select those vehicle that reach …

Software Development microsoft-access vb.net
Member Avatar for jared.geli
0
226
Member Avatar for joester007

How do I count characters using substing and a do while loop? Im trying to make a pogram that will allow the user to type in a phrase and when they click on the search button an inputbox will appear asking for what character to search for. The user types …

Software Development vb.net
Member Avatar for joester007
0
216
Member Avatar for Mafiamanandre

Hi all, I have a form in visual basic with about 62 textboxes. On this form is two columns of textboxes. Textbox 61 -62 is a total textbox for each column. When the user types in digits to 60 textboxes the program must add it up automatically to textbox61/62. My …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
951
Member Avatar for Deegirl

how can i save a .txt file in C:\? I keep on getting a permission box preventing me from doing so.

Software Development vb.net
Member Avatar for Reverend Jim
0
394
Member Avatar for krystosan

In the scripts ddirectory of my dummy project I have created this file without extension and has given executable permission using chmod +x filterList #!/bin/env python print "Hello World!" 'python ~/Development/python/listFilter/python/filterList.py $1 $2' but still when I run this i get error message saying $ filterList -bash: filterList: command not …

Software Development python
Member Avatar for krystosan
0
809

The End.