132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nandomo

Next week I am going to begin learning about linked list, I know very little currently. Are there any well written explanations of linked list online? Or can someone explain the logic to me. Want to have a background before I start learning it from my professor.

Software Development c++ linked-list
Member Avatar for Nandomo
0
96
Member Avatar for MultipleMoney

Here is my code so far for my program: [CODE]#include<iostream> using namespace std; int main() { int number; int guess; char reply; srand (time(NULL)); number = rand() % 1000 + 1; do { do { cout << "Guess the Number" << endl; cin >> guess; if (guess > number) { …

Software Development c++
Member Avatar for MultipleMoney
0
1K
Member Avatar for dythanor

The title explains most of it. at the point in the code where this frame gets created it immediately opens, closes, then segfaults, and the whole program dies. the program worked find before this frame was added and the only code using this frame from outside of it is the …

Software Development python
Member Avatar for dythanor
0
471
Member Avatar for dimasalang

hey..i'm developing an application..something like a custom desktop..now what i want to do is to disable alt-tab, ctrl-alt-del etc . i tried to set the registry value of "CoolSwitch" to disable alt tab, but i get an error..i think i need to run my application as admin to write in …

Software Development vb.net
Member Avatar for dimasalang
0
182
Member Avatar for Neversleepin

Hi, here i just try to delete the content in text file between S and e letter. but i don't know to write the ReplaceAll() methode after this [CODE]String[] paras = Pattern.compile("^(S)(.*)(e)$").split(inputText);[/CODE] How could i use ReplaceAll() here? Thank you

Software Development java regex
Member Avatar for Neversleepin
0
139
Member Avatar for juangalvez4

This week in class we are looking at functions and how to use them. This is the example we got during class: [CODE]#include <iostream> #include <string> using namespace std; //function prototype int getTotal(int,string); void verifySeasons (int&); int main() { string name; // name of player int totalGoals = 0; // …

Software Development c++
Member Avatar for pseudorandom21
0
137
Member Avatar for Prasanna Venkat

Hi friends, I am a final year Mechanical Student and I am doing my Final year project in C++. My project requires some complicated programming in C++.. Here are the details. Initially I need to create a random matrix. The user will give the no of rows and columns. For …

Software Development algorithm c++
Member Avatar for pseudorandom21
0
186
Member Avatar for jemz

hello please help me how can i get the height of the tree?I really don't have idea how to get this can you help me please thank you in advance hoping for your positive response...here is my code [CODE] private Node root; public boolean isEmpty() { return root==null; } public …

Software Development java
Member Avatar for jemz
0
190
Member Avatar for sciprog1

Hello, I have a JFrame, inside which is a JPanel, in which I am drawing lines in the paintComponent() function at an interval of 1 second. The screen always freezes. How can I change the program below such that I can see the lines being drawn after every second? Thank …

Software Development java java-swing
Member Avatar for Ezzaral
0
366
Member Avatar for fabricetoussain

[CODE] /* Fabrice Toussaint section N938 Feburary 1, 2011 Purspose of program is to locate centroid and find distance between all three points and centroid */ #include <iostream>// for cout and cin #include <cmath> // for sqrt () and pow (x,y) using namespace std; int main () { float distance1; …

Software Development c++
Member Avatar for pseudorandom21
0
113
Member Avatar for bklynman01

I'm having trouble getting some data from a combobox. I have a series of comboboxes that populate as you make selections from the boxes. Each combobox is using data that is pulled from a SQL database into a dataset. This all works. When I get to the last box, I …

Software Development dataset sql vb.net
Member Avatar for CodeWord
0
128
Member Avatar for GAME

How would I get text from HTML on a website? This is all I know to get to it but its only the elements; webBrowserMain.Document.GetElementById("footer").Children GetElementsByTagName("ptz-footer") GetElementsByName("ptz_value") The ptz_value has the text I want to retrieve. Thanks...

Software Development
Member Avatar for GAME
0
100
Member Avatar for L3gacy

I use Microsoft Visual Studio Professional on my Desktop PC, but my GTX 260 just failed and im dojng an RMA, so I started trying to program on my laptop. I am around 1/3 of the way through Ivor Hortons Beginning Visual C++, the book covers Native C++ and C++/CLI, …

Software Development c++ ide laptop visual-studio
Member Avatar for mike_2000_17
0
401
Member Avatar for chamnab

HI Everyone ! Do anyone know how to split string ? Especially this one . Do anyone know funtion "__DATE__" , it show month/date/year. you know ,it is string so i want to separate it because i need month to make condition.

Software Development c++
Member Avatar for chrjs
0
108
Member Avatar for juangalvez4

First of all, hi everyone! Im a C++ newbie and i'd like to get a good grasp of the concepts soon. I'm currently working on this [CODE]#include <iostream> using namespace std; int main() { int i, j, lines; cout << "This Program creates Christmas Trees." << endl; do { cout …

Software Development c++
Member Avatar for juangalvez4
0
134
Member Avatar for ChrisHunter

Hi I'm pritty new to C# I'm having trouble with items repeating in a combo box This method gets the values from my table and stores it in the list of strings which it does fine . . . I think. [CODE]public class EditStates { public List<string> getStates(CEditStates ced) { …

Software Development c#
Member Avatar for lolafuertes
0
214
Member Avatar for Gobytza

Hi,I am new in c# development and I have some problems in my smart device application.I have 3 forms: Orders, Add_orders, Add_client. Orders is the mainform. What I want is that when I click 'Save' on Add_orders form, to navigate back to Orders form but not to close the Add_orders …

Software Development c c# c++ xml
Member Avatar for lolafuertes
0
130
Member Avatar for BobPawley

Hi I am attempting to insert into a remote PostgreSqL database as a novice. I am using C# 2008 Express, on Windows 7. I have made a connection through a connection string which works well. So far I have this code placed after the connection code. string insertString = @"Insert …

Software Development postgresql
Member Avatar for lolafuertes
0
221
Member Avatar for LoveMyPadres

Hi I'm using pysnmp 4.1.1.4a (yes, I know there's a newer version but it has the same behavior) and py2exe. When I execute a pysnmp oneliner, like this: [CODE] errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().nextCmd( cmdgen.CommunityData('my-agent', 'public', 0), cmdgen.UdpTransportTarget((self.IPaddress, self.Port)), self.keydict[ key ][0] [/CODE] I get this output: [CODE] File …

Software Development python
Member Avatar for LoveMyPadres
0
350
Member Avatar for canadiancoder

Hi Folks, I've been looking around all day and I've tried numerous suggestions, but to no avail. I've got a struct in C# defined as: [code] [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct GenericTrackRecord<T> { public Int32 hasValue; public T value; } [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct OTXFixDetailsStruct { public …

Software Development c# c++
Member Avatar for canadiancoder
0
3K
Member Avatar for initialise

Hi All, I am writing a client server program that has quite a few GUI's in it. Basically, everything is working except for the problem I'm encountering. Well, obviously :P I am not currently running my server program in order to simulate what would happen to the client if the …

Software Development client-server flash gui java java-swing
0
130
Member Avatar for james6754

Hi everyone...I have this [CODE] abstract class Program { static void Main(string[] args) { } public abstract void m1(); } class Program2 : Program { public override void m1() { } } [/CODE] I inherit Program and implement the method m1(), can anyone explain in a simple way why I …

Software Development
Member Avatar for Momerath
0
109
Member Avatar for dipopo

Hello Guys, Please who can point me in the right direction with regards to auto generating a ruleset text string from a list of url's. I get a list of URL's in the format: example.com/firstplace/secondplace.jpg " " " " etc I would like to be able to read the url's …

Software Development vb.net
Member Avatar for codeorder
0
255
Member Avatar for Fumomo

Hi all, I was hoping for some help and hints to the problem i'm facing now. Right now i have a a 2D array which stores the elements: 22Jan11 180 11Feb11 111 22Jan11 90 22Jan11 30 25Jan11 110 I'm trying to basically add up the the value of the duplicate …

Software Development c++
Member Avatar for drkybelk
0
125
Member Avatar for Zvjezdan23

[CODE]// This program is supposed to figure out how much does a custom banner cost by figuring out the price for each letter and outputting it's total to the screen. #include <iostream> #include <string> using namespace std; int main() { double cost, total; string banner; cout << "Enter Your Banner …

Software Development c++
Member Avatar for KKR_WE_RULE
0
365
Member Avatar for Jessurider

can anyone show me the content of mtb.dll file(attached)............. to know the proper working of my project i want to know what that really written in this [B]"mtb.dll"[/B] file............. [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.Runtime.InteropServices; namespace PROJ …

Software Development
Member Avatar for Momerath
0
224
Member Avatar for sirlink99

This is a very simple timer and I cant seem to get it to work I have tried this () runs but does nothing: [code] // The "Timer" class. import java.applet.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Timer extends Applet implements ActionListener { // Place instance variables here …

Software Development java java-swing
Member Avatar for javanoob101
0
890
Member Avatar for ampoliros

I am using a Pwm TextDialog (which inherits from ScrolledText which inherits from Text). It is being used as a real time status pop-up window. A good deal of the status messages use a carriage return ('\r') at the end of the message as a way of conserving vertical space, …

Software Development python tkinter
Member Avatar for ampoliros
0
2K
Member Avatar for Magekiller

Hello all, Im trying to figure out how to get the for loop for (int i = 1; i <= (11 - 2 * line); i++) { System.out.print("*"); ... to show the method listed at the bottom. I've been able to get the rest of it, just not this part. …

Software Development java
Member Avatar for jon.kiparsky
0
92
Member Avatar for SBA-CDeCinko

I have a page that displays information about a person and contains a "contact me" form. I don't want anyone to know the email address of the person, that's the reason for the form. My submit button executes some code behind to send the email message. How can I securely …

Software Development session
Member Avatar for Momerath
0
109
Member Avatar for stupidenator

Hey everyvody... I have this crazy idea for a program... I want to be able to load an image (most likely a .jpg) into a java program and then I want the program to print out the binary code that makes up the image and save it to a .txt …

Software Development image java
Member Avatar for Urchin1111
0
479
Member Avatar for shakunthala.mk

[B]Hello..I am working on project based on Human resource Management system using vb6 as front end!..I want to know how to design a timesheet?..will it be possible using datagrid? :X

Software Development visual-basic
Member Avatar for shakunthala.mk
0
57
Member Avatar for IamAuser

Hello All, I am not sure why my algorithm is not working for this problem. I need to store space separated arguments in an array char* argBuffer[], so I can later make some system calls . The problem is that the last argument is writes over all indexes of the …

Software Development algorithm c
Member Avatar for IamAuser
0
5K
Member Avatar for Khliboy_2796

Can I write a program code without designing the form.I have tried,the login form works but how do I insert a form which adds form number, name, sex,occupation etc

Software Development visual-basic
Member Avatar for Khliboy_2796
0
94
Member Avatar for vjrabanelly

Hi, I'm using C++ without MFC nor ATL, to create a popup, opening from a DLL loaded in Internet Explorer as Browser Helper Object (all versions from IE7, from XP to Windows 7). Until now, everything went find and my popup is working as I wish. But now I'd like …

Software Development c++ gui web-browser
Member Avatar for vjrabanelly
0
244
Member Avatar for L3gacy

Im doing a code "test" from the c++ book I am currently reading, the objective is to ask for input using a function and output data using a function, while keeping the data in main. I finished it and it works, but I want to make the program not accept …

Software Development c++ objective-c
Member Avatar for L3gacy
0
260
Member Avatar for newbie14

Dear All, I have one main class calling another class but I keep getting this error " SMSClient cannot be resolved to a type". Before this I tried on other pc it was ok. Below is part of the codes. What could have been wrong? [CODE]public class callSMSClient{ public static …

Software Development java
Member Avatar for newbie14
0
14K
Member Avatar for icez17

Hi, I'm writing a small piece of code finding the number of unique 3D arrays in a N*3 array. I first sort the N*3 array, and apply a "condition" function : if the consecutive 3D arrays do not have the same element, then the unique number count +1. Here is …

Software Development c++
Member Avatar for icez17
0
246
Member Avatar for stankefa

[CODE] class X { public: X () : myID(id) {} X (const X& right) : myID(++id) {} friend ostream& operator<< (ostream&, const X&); private: static int id; int myID; }; int X::id = 0; ostream& operator<< (ostream& os, const X& x) { return os<<x.myID; } X f (X x1, X& …

Software Development c++ os-x
Member Avatar for Fbody
0
198
Member Avatar for EddieN1

I have a DataGridView control and I want to know if the user has changed any data in the row when they leave one row and go to another row. Here's what I've done... In the Form Class I defined a Before and After row image as follows: Dim rwBefRow …

Software Development vb.net
Member Avatar for EddieN1
0
1K
Member Avatar for mnorgate

I have had a request from my employer to make a program that sort of locks windows until some tasks have been completed, a bit like what happens when the UAC box appears. Is this possible in C#?

Software Development
Member Avatar for zachattack05
0
100
Member Avatar for freaky_sxyvs

Hi, I am vee and I am trying to create a Natural Language search engine based on LSI. I am stuck up and I would be really glad if I could use some help. I have a two-dimensional array which is full of numbers. I want to transfer the contents …

Software Development java sql
Member Avatar for masijade
0
511
Member Avatar for stephy1

Can anybody suggest me a tutorial for Perl. I have to prepare for a interview. And have to practise

Software Development perl
Member Avatar for deepakkrish
0
92
Member Avatar for mahban

I need to yourhelp,too. can you write this programm :sum and multy 2 sparsematrix with linklist?(language c++)

Software Development c++
Member Avatar for peter_budo
0
71
Member Avatar for rgpii

Hi, I have been reading "Learning Perl the Hard Way" and I was trying to complete one of the exercises which involved the use of regular expressions. I could get all of the anchors working except for "$". I have my code below with errors. I was just curious if …

Software Development perl
Member Avatar for deepakkrish
0
524
Member Avatar for Kumar_cr09

Hi...I want to create a timer so that after completing the time(suppose 10 sec) the control should come out of the function..Please note that am starting the timer inside the function..is this possible in c++...

Software Development c++
Member Avatar for Ancient Dragon
0
146
Member Avatar for deanus

Hi, If I'm not mistaken, the following code will allocate 5 integer elements from memory to 'ptr': [CODE] int *ptr; ptr = new int[5]; [/CODE] If after this code I enter the following: [CODE] ptr = new int[7]; [/CODE] will the original 5 elements be overwritten or deallocated? Or will …

Software Development c++
Member Avatar for ravenous
0
136
Member Avatar for lance7tour

Have the following code but can only get it to work when I enter nothing into the answer box then it says sorry..... but if i enter any# or a letter it doesnt do anything.. wordpad will not accept all the end if's and else statements either. only one it …

Software Development gaming mathematics visual-basic
Member Avatar for WaltP
0
194
Member Avatar for threwup

So heres the guidelines: Write a C program that simulates a 3-bit multiplexor. Your program should first read the 3 control inputs; then read the eight source inputs; then print the output of the multiplexor. When you read the control inputs, let the last input be the least significant bit. …

Software Development c
Member Avatar for threwup
0
2K
Member Avatar for queenking

Good day to all.. I am a beginner in java. I have a problem, I don't know how to convert string into an array which reads 60 characters.. supposedly, this is my code.. [CODE]import java.io.*; import java.util.*; public class Strinpunct{ public static void main (String [] args) throws IOException { …

Software Development java
Member Avatar for masijade
0
226

The End.