132,726 Archived Topics
Remove Filter ![]() | |
HELP me to make this program, it's so hard to understand anyone can help me to make a program?? PLEASE!!! Using an appropriate definition of listnode, design a simple linked list class with only two member function and a defult constructor: void add(double x) boolean isMumber(double x) LinkedList(); The add … Software Development c c# c++ linked-list | |
Hello I have a problem with a part of my binary heap i am building for my a* (pathfinding) project. The program crashes on this line with debug assertion failed message, expression: (_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)): [code=c++]Comparable temp = theHeapsArray[hole];[/code] I have tried creating my heap with integers and it worked. But when … Software Development c++ | |
I'm having trouble calculating the Nth root of a given value. I don't understand what's going wrong in the algorithm, but the values are incredibly close. Only off by about 0.78891 for small values, and about 0.52 for larger ones. So any help with this is appreciated; I don't want … Software Development algorithm | |
Hey Guys im looking to remove vowels, im having trouble trying to remove them, any tip or help i would appreciate it thanks. [CODE]void RemoveVowels(char *str) { int x =0; int i = 0; int lenght = strlen(str); for(i=0;i=lenght-1;i++) { if (str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' … Software Development c++ | |
hey all, i wan't ask , how to connect sms gateway to vb6..??? and then i sen't sms with vb6... help plizzz..., Software Development visual-basic | |
I need some help in 3 files of code from a check-out program that I am playing with. I think I forgot to declare some variable, and some weird syntax with semicolon. Text file contain the info: 4101 BRAEBURN_REG 1 0.99 101.5 4021 DELICIOUS_GDN_REG 1 0.89 94.2 4020 DELICIOUS_GLDN_LG 1 … Software Development c++ | |
Hello all , I'm designing a Database which is for students & Their degrees I have Two Tables One for students one for their Degrees & 2 forms Main One & Sub form . What ever I want to make a way to search for a student name like the … Software Development visual-basic | |
[CODE] startup = 0 r = rock p = paper s = scissors if startup == 0: weapon = str(input("Please enter your weapon: Rock, Paper, or Scicors") while weapon =! r: print("Incorrect choice, please choose again")[/CODE] Im running python 3.2.2. Im trying to make rock paper scissors. I am trying … Software Development python | |
I'm working on a tcp server and client for linux. I want the tcp server to send a 10MB file to it on request and I want the client to save it to local disk. I would appreciate any help on it. Thanks for the help. jdm server: [CODE] /* … Software Development c client-server data-structure legal queue unix | |
Can any one explain briefly about Objects,Classes,Methods and Instances in Objective C.Since i'm a beginner to learn Objective C i want to know the basic things... Software Development objective-c | |
Hi everybody, its Leo again I'm having some problems calculating the values for two diferent fiels of the datatable. it return " [COLOR="Red"]Object reference not set to an instance of an object[/COLOR]" this is How I feed the datatable [CODE] Dim daProd As New SqlDataAdapter Dim conProd As New SqlConnection … | |
Hi all, I'm checking for primality in BigInteger type. I'm using isProbablePrime with certainty 15. I would like to know how to test if a BigInteger is really a prime number. Thanks in advance. Software Development java | |
Hello, Can somebody help me with the problem I have? Anyways, I have a ArrayList that consists of Arraylist that consists of 3 elements. [[a1, 11, x], [a2, 12, ], [a3, 13, ], [a4, 14, o]]. The 0th and second element are both strings, the first one an integrer. At … Software Development java | |
I am trying to put a 'Invalid' statement in my code and not sure how to do this. Could someone please help me with this? Thank you in advance. Here is my code: [code]#include <iostream> #include <iostream> #include <cctype> // is needed for toupper() #include <cstdlib> // is needed for … Software Development c++ | |
i got a working highlight code example that works in python 2.7.2 [CODE] import Tkinter """ Edit a file and save the text. """ textFont1 = ("Courier New", 16, "normal") class ScrollbarX(Tkinter.Scrollbar): def set(self, low, high): if float(low) <= 0.0 and float(high) >= 1.0: self.grid_remove() else: self.grid() Tkinter.Scrollbar.set(self, low, high) … | |
I have a problem in vb.net when i connect database to the vb it show me this massage for all tables that i have in the database "Could not retrieve schema information for table or view Attendance." when i press OK the fields do not show it looks like the … Software Development vb.net | |
hi, I have created one array in java script like this: obj.push({'key' :value1, 'key2' :value2}) and it is stored in database ,but problem is that when I am retrieving again back from database I am confusing to how to get array from database because it is stored in following format … Software Development java | |
i got problem when i clicl the checkbox 0r radiobutton..when i compile there is no error..and also how can i put the background image at my gui??hope you guys can help me.. import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.text.*; import java.text.DecimalFormat; import javax.swing.border.*; import java.awt.GridLayout; import java.awt.FlowLayout; import java.awt.BorderLayout; … Software Development gui java java-swing | |
is the following c++ code for printing the ASCII value of a number correct? [CODE]#include<iostream.h> #include<conio.h> void main() { int a=10; char ch[10]; ch=a; cout<<ch; getch(); } [/CODE] Software Development c++ | |
Hello, Quick and easy question: I'd like to learn a little by investigating the source code behind the predefined Java methods/classes/etc. For example, right now I'm learning to work with TreeSet and I'd like to know exactly what's going on behind the class-specific methods such as 'first', 'last', 'pollFirst', 'pollLast', … Software Development java | |
Title says it all. I am looking for a way to find the values of a column within a row. I am unsuccessful at being about to create a for loop that searches each value in the row and inputs a value if it is x. For example: [CODE] there … Software Development python | |
Here is the problem: a function that takes two strings and removes from the first string any character that appears in the second string. eg. if the first string is “[B]IamLearningPython[/B]” and the second string is “[B]aeiou[/B]” the result is “[B]mLrnngPythn[/B]”. I've written the code for this, but I can … Software Development python | |
Hi, I have used this [CODE]#using <System.dll> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; SortedList<double, String^>^ slist = gcnew SortedList<double, String^>();[/CODE] in one program its working well. But Now when I pasted the same code with all given headers in second program its not being identified there. Errors … Software Development c++ | |
Hi, I have the a situation here . My motive : Hiding one panel and showing another. Whats Working :Layout wise , my app is behaving like i want it to . The Problem : After the I hide one panel and show another , the button in this panel … Software Development python | |
i am a freshman computer science major, studying ahead of the class. we have been using automated testing classes { junit.framework.TestCase; }. i have downloaded junit4.9b2.jar from junit.org, which i understand to be the junit package (?) but i don't know how to use it. i have read that javac … Software Development java java-netbeans | |
Hi, I'm trying to find a way to solve this equation with two unknowns using Python: [QUOTE](a * b) = (x * c) + (y * d) + e [/QUOTE] Where a, b, c, d and e are all floating numbers provided by the user and x and y are … Software Development mathematics python | |
Does anyone know of a third party simple grid for C#? Preferbably free ones. Not the Datagrid within C#. I'm try to learn C#. Thanks... Software Development c# | |
I have implement the chat sever.When I start to type the message to the server It says"Server has close the connection: java.io.EOFException" I don't what went wrong with my code. Can you plz have a look at it or give me some advice. [CODE]public class threadMiddle extends Thread { public … Software Development client-server gui java | |
I have a Java program, which launches a app, but before starting, it checks for the version.txt file, and if it doesn't exist, or there is a newer version available off my site, it downloads it. Well, not quite. I've got the part that checks for updates, and file existence, … Software Development file-system java | |
I am trying to create an application that will: 1) ask the person to enter a number (ex: 321) 2) the application will display each number on a line ex:3 2 1 Rules: Don't use looping and don't use arrays Someone told me it could be done but I can't … Software Development java | |
Hello Guys, I hope you are all doing fine. I have a Linq to SQL problem. My entity class is as follows; [CODE]using System; using System.Data.Linq; using System.Data.Linq.Mapping; namespace SilverlightGrid.Web.TableMappings { [Table(Name = "Travel_Meal")] public class Travel_MealDetails { [Column(IsPrimaryKey = true)] public Guid MealID { get; set; } [Column(Name = … Software Development sql | |
struct looks like this: [CODE] struct ListNode; typedef ListNode* ListType; struct details { char first_name[20]; char last_name[20]; int start_number; int end_number; }; struct ListNode { details data; ListType next; }; ListType list = NULL; ListType head = NULL; ListType * PointerToHead = &head; [/CODE] I have a circular linked list … Software Development c++ linked-list | |
Hey I want to "reset" a array....What would be the correct way to do it? Code A: [code] for (int i=0;i<=somearray.length;i++) { somearray[i]=0; } [/code] or Code B: [code] somearray=null; [/code] Thank you Software Development java | |
[QUOTE]The below code runs fine the only problem is when I run this code there is a value of "3" in the input textbox which should be null, I have no idea why its doing this any help will be appreciated. THANKS[/QUOTE] [CODE]import javax.swing.JOptionPane; //inherits from Monument class---> public class … Software Development gui java java-swing | |
hello everybody, please help me in solving the problem of finding the XOR value of 4 bits as i require it in my project. i tried ^ sign, but it doesnt work for four variables? kindly help Software Development c | |
Hi, I want to process multiple text files within a directory and then after processing i want to store the processed files within another directory. Below is the code which i have written. It is accessing multiple text files within a directory, applying some processing on each text file (i.e., … Software Development file-stream | |
hi, i am new to java and i am using eclipse for java coding when i run a build.xml file it says build fail and says "Compile failed; see the compiler error output for details." and points to the code below. does anyone know the reason for this, [CODE] <javac … | |
Hi everyone; I am working on a windows form project on VB.NET and am required to take the user submitted text from the textboxes on the form, to a networked database. I am guessing using an SQL database, so how would I set this up and implement all of this? … Software Development vb.net | |
Hi all, How i changing the color of label caption dynamically, so it looks like highlight text changing color. Thank you. Software Development visual-basic | |
Hi! I need help for my program.. I add a search the Adodc in my program with a combo box category, but when i run the program and search... the category "ID" not searching.. this is my codes [CODE] Private Sub Command1_Click() If Text1.Text = "" Then MsgBox "Type To … Software Development visual-basic | |
[CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; void RemoveSpaces(char *str); void RemoveVowels(char *str); int main() { char clear[256]; char cipher[256]; int x,i; int opt; cout<<"Encryption (1) 0r Decryption (2):"<<endl; cin>>opt; cin.ignore(); if(opt==1) { cout<<" Enter a string(sentence):"; cin.getline(clear,sizeof(clear)); RemoveSpaces(clear); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } … Software Development c++ encryption | |
I am trying to create a program that lets you enter an account number and it tells you it is valid or not based if it is in the list. it needs to be a single-dimensional array . this is what i have so far but it does not work. … Software Development c++ visual-studio | |
Hello, I am having a problem with my program that finds the prime factorization of a number. I seem to be getting the correct prime factors, but my problem is with repeating factors. For example, if I input 3,428, the correct prime factorization is 2 x 2 x 857, but … Software Development c++ | |
Hi all , May i know should I set an object to nothing even after implementing an IDisposable method to my custom class ? Correct me if i am wrong , if you set it to nothing you are just setting the object to its default value . As you … Software Development vb.net | |
Hi, I keep getting the error: Object reference not set to an instance of an object. When attempting to check if a database record is Null or not using the line: [CODE] If IsDBNull(dSet.Tables("Subscriptions").Rows(incr).Item(8)) = True Then addsub2() End If [/CODE] I'm sure that I have opened and closed the … Software Development vb.net | |
lets say we have a string String ss="file1"; now i want to create a variable (a file variable) and i want its name to be file1 which is the content of the string ss. Software Development java | |
Hi all. I could really use some help on adding a node to the end of a doubly linked list. First off here is my node class along with the class where the adding should take place. For simplicity I did not add the other parts and classes of the … Software Development java linked-list | |
Hi, I'm trying to write a programme that will take user input strings containing name, surname and city of residence separated by spaces and extract each one and print them out individually. Here's what I have so far. [CODE]#include <iostream> #include <stdio.h> #include <cstring> using namespace std; int main() { … Software Development c++ | |
I know how to get to the user input and such, but I do not know what to do after that. Software Development assembly | |
Hi all, Hopefulle someone outthere can help me identify whay i'm doing wrong. I'm sure it's something simple I have overlooked. I have the following templates in my xaml. [CODE] <Window.Resources> <DataTemplate x:Key="ModuleTemplate" > <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Path=fileName}"/> <TextBlock Text="{Binding Path=baseAddress}"/> <TextBlock Text="{Binding Path=entryPointAddress}"/> </StackPanel> </DataTemplate> <HierarchicalDataTemplate x:Key="ProcessTemplate" ItemsSource="{Binding … Software Development asp.net |
The End.