43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Seagull One

I'm finally getting my robot's software off the ground!:) (Although I'm giving my "artificial learning" program a rest for later). However, here's something I've been wondering how to do for quite some time now. I'm using the time module to allow my robot to tell me the time upon vocal …

Software Development python
Member Avatar for Seagull One
0
145
Member Avatar for nizbit

I am writing a program to handle a DVD collection. There are 2 classes. The first class is a string class that has member functions that handle strings(length, compare, etc.) and store strings(dynamic array). The second class handles the actual DVD's-title, year, actors, and brief description. I'm confused on working …

Software Development c++
Member Avatar for Ancient Dragon
0
95
Member Avatar for JimBeam

Couldn't find a search button so I'll ask: I'm running Freebsd v7.0 with the ratpoison window manager, and have installed free pascal from ports. I've been trying for hours to get either Lazarus or fpc-ide installed with no luck. Lazarus - gives message like menubar>>environment.>environment options>> etc etc etc. If …

Software Development ide pascal window-manager
Member Avatar for JimBeam
0
177
Member Avatar for vckicks

I've been going crazy with a problem lately and I was hoping someone could give me a little insight. Basically I have a database project in C# that I work on with two computers. One uses Vista and the other XP. So far I have transfered the project files between …

Software Development
Member Avatar for vckicks
0
115
Member Avatar for R3B3L

Does anyone know what's C++'s SETW() Equivalent in Visual Basic .NET ? SETW: Sets the number of characters to be used as the field width for the next insertion operation. Is there anythign similar in VB.NET. Note: I want to use in a ListBox. I've tried using: [CODE] Dim fmtStr …

Software Development c c# c++ vb.net visual-basic
Member Avatar for selvaganapathy
0
262
Member Avatar for Clockowl

Is it possible to put compile-time conditional code in template functions? Kinda like, [code=cpp] template <class T> void print(T &foo){ cout << foo; #if T == float cout << " is a float." << endl; #endif }[/code] Something like that, I hope I made myself clear. Thanks in Advance,

Software Development c++
Member Avatar for Clockowl
0
95
Member Avatar for asdengler

I'm working with Visual Studio.net and Access 2002 to build an interface to add, edit and delete records in the database. Eventually, I'd like to build a web page to be able to view the data. Currently, I'm trying to search for a particular record in the database using a …

Member Avatar for asdengler
0
296
Member Avatar for princess_19

I really need some help!! I do not understand anything! I do not even know how to start!!! Can any1 help plz!!! “Moore’s law describes a trend in the history of computer hardware. The number of transistors that can be inexpensively placed on an integrated circuit is increasing exponentially, doubling …

Software Development c++
Member Avatar for Narue
0
146
Member Avatar for Lordstr

I am using Eclipse to right there It is coming up with an error within the switch statement saying that the Clock.* has not been initialized. it says Description "The local variable Clock may not have been initialized" but doesn't that happen when i do "Stopwatch Clock;" I am still …

Software Development java
Member Avatar for Ezzaral
0
240
Member Avatar for makubexiii

how can you make program using a linked list that displays your outputs in ascending alphabetical order? we are only allowed to use: #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> TIA

Software Development c display linked-list
Member Avatar for makubexiii
0
1K
Member Avatar for nizbit

I was wondering if this code is correct syntax for function parameters in a class? [CODE] class myclass { private: char mystring[50]; int length(char string[]); public: int yourlen(){ return length(_string, _string); [/CODE] I know later in my code, I would have something like this: [CODE] mystring A; char string[50], string2[50]; …

Software Development c++
Member Avatar for Sky Diploma
0
124
Member Avatar for 3Dees

Hey, i am trying to display weight base on a age input without using a table vb.net. Say a age can be anyware from 1 to 18 yrs and weight at 1 = 11kg with a avg increase of 3kg per year. I thought of using a for loop but …

Software Development display vb.net
Member Avatar for samir_ibrahim
0
159
Member Avatar for samir_ibrahim

Hi all, I new to vb.net, and I have alot of questions. so Get Ready :) I had added a forum and set the IsMdiContainer to True and I noticed that the backcolor has changed to darkgrey Is there a way to change back the backcolor to normal? TIA Samir …

Software Development vb.net
Member Avatar for Dnx
0
158
Member Avatar for TofiLuk

the frame is okay but the text2, textfield has occupy the whole frame. what's wrong with my code? image: [URL="http://img68.imageshack.us/my.php?image=73815503ku1.png"]http://img68.imageshack.us/my.php?image=73815503ku1.png[/URL] here's the code: [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JFrameTest extends JFrame implements ActionListener { JButton button; JLabel label1, label2, label3; JTextField text1, text2; Container con = …

Software Development java java-swing
Member Avatar for masijade
0
119
Member Avatar for Pgmer

Hi all im Implementing wordcount feature in my appliction it counts the numberof lines in the document,number of pages, number of charecters with space and without space, numberof paragraphs in the document i implemented this function it is working fine but the problem is becoz of loops and im checking …

Software Development vb.net
Member Avatar for Pgmer
0
132
Member Avatar for vistovistor

Hello daniweb, This is my first post, and coincidentally my first program! (more like a script though I am told) At my work there is a lot of programmers, unfortunately they do not like Python. I cannot agree with their sentiment! It is my first language (computer wise) and so …

0
67
Member Avatar for ahspats

Hey everyone, I am supposed to write a program that counts the number of vowels in string of characters. It must include "Struct counter_t (it must be declared as in the code i've written)" and function "int CountVowels (IN text[], OUT Count)". the OUT parameter must be of type counter_t. …

Software Development c
Member Avatar for ahspats
0
143
Member Avatar for Demonisya

Hi!!! This is my first time to post here and I have a problem and I want your help..... This is the case my teacher gave me a question to add 1 to 100 using while loop and its really confusing me... but here is my idea and I jsut …

Software Development c
Member Avatar for Demonisya
0
116
Member Avatar for jem00

Hey guys, I'm trying to send an array as a parameter and it is not working.... I have set it to passed by reference in my sub. Visual Basic says: "Compile error: Type mismatch: array or user-defined type expected" How may i solve this problem? Yours words of wisdom are …

Software Development visual-basic
Member Avatar for jem00
0
144
Member Avatar for devnar

[CODE=C]#include<stdio.h> #include<conio.h> int main() { float a=0.7; if(a<0.7) printf("C"); else printf("C++"); getch(); return 0; }[/CODE] The above code prints 'C'. Whereas the following two codes prints 'C++'. Why is that? [CODE=C]#include<stdio.h> #include<conio.h> int main() { float a=0.7; if(a>0.7) printf("C"); else printf("C++"); getch(); return 0; }[/CODE] [CODE=C]#include<stdio.h> #include<conio.h> int main() { …

Software Development c
Member Avatar for smart_pc
0
589
Member Avatar for defychaos

Hey guys & gals, I have a homework problem, and I'm having problems looping the month. I will share the problem, then what I've got so far. Thank you in advance for any advice :) The problem is a typical wolf/rabbit population, but the solution asks for the population every …

Software Development c++
Member Avatar for defychaos
0
213
Member Avatar for Suetan

Here's my problem. I'm writing a program that has the user input a string. That string is then compared to the values in a string array within a class. Here's a sample of what I'm trying to do (sorry about the spacing. I use tabs, not spaces): This is my …

Software Development c++
Member Avatar for Suetan
0
239
Member Avatar for rkumaram

Hi I have created a small program which just adds two char* with the help of overloaded + operator, but getting problem with destructor. [CODE] #include<iostream> #include<string.h> using namespace std; class base { private: char* name; public: base(); ~base(); void display(void); base(const char*); base(const base&); base operator+(base foo); }; base::base() …

Software Development c++
Member Avatar for rkumaram
0
113
Member Avatar for dmanw100

Is there any way to clear the screen in a console app? I noticed that System does not even appear to have a system call similar to the system("COMMAND"); of C++. Any ideas?

Software Development java
Member Avatar for jwenting
0
100
Member Avatar for Prabakar

I have wrote a simple program in c++ that will constantly read a record from a database. Once there is a change in a field the program will open a executable file. An instance of this program or a copy of this program has to run in [B]at least[/B] 80 …

Software Development c++ visual-studio windows-server
Member Avatar for Prabakar
0
285
Member Avatar for daviddoria

I need to do something like this: [code] ifstream infile(Filename.c_str()); //ifstream infile(Filename.c_str(), ios::binary); string line; ///////////// Read Header //////////// //read magic number getline(infine, line); while(line[0] == "#") getline(infile, line); MagicNumber_ = line; //more ascii stuff ...... //start reading binary data int m; infile.read(reinterpret_cast < char * > (&m), sizeof(m)); [/code] …

Software Development c++ ios
Member Avatar for Narue
0
125
Member Avatar for dav555

The DefaultListSelectionModel provides the method setSelectionInterval(int start, int end) to select an interval. But how can I select multiple intervals?

Software Development java
Member Avatar for stephen84s
0
183
Member Avatar for alexvena

The problem: Will not compile, i get the following errors: "invalid conversion from char to char*" "invalid conversion from char to const char*" Program Description: Opens a file and read each character into a linked list [code] #include <iostream> #include <fstream> using namespace std; const int MAX = 30; struct …

Software Development c++ ios linked-list
Member Avatar for mshahid
0
84
Member Avatar for shakuN

Hi, A newbie to VB6, I have to plot a graph using the picturebox control. I have drawn the 3 line graphs using the "Line" method and using relevant data. I have to shade the triangular portion marked "X" ( resulting from the lines B & C crossing the line …

Software Development visual-basic
Member Avatar for shakuN
0
173
Member Avatar for reshma.mane

Hi All, I want some interesting Advanced data structures problems. Could you please let me know the link or the actual problem statements? If possible, you can send some hints to solve that problem. This would be very helpful for me.

Software Development c++ data-structure
Member Avatar for Alex Edwards
0
101
Member Avatar for alc6379

Thanks to Dani for adding Python to the scripting languages category! ...I haven't heard many people mention Python around here... Am I the only Python fan here? I know its usage isn't as widespread as Perl, but it is, IMHO, as powerful and useful as Perl, for general scripting, web …

Software Development perl python shell-scripting
Member Avatar for ZZucker
0
526
Member Avatar for bpacheco1227

I'm having a problem with my for loops. The program is supposed to get a number from the user and when button is pressed add 1 and skip a line until the tenth number is reached. I fell like I almost have it but I'm missing something. Please help. [code=VB] …

Software Development vb.net
Member Avatar for bpacheco1227
0
83
Member Avatar for nojtb

My Code has a problem, either if my first void is static or not i get a error that i cant seem to fix. This is the error i get if the void is static [CODE]Java Compiler By Noj All underpreciated java will soon apear All errors within java files …

Software Development java
Member Avatar for nojtb
0
138
Member Avatar for rugs267

Hey Everyone! I'm having trouble with a C++ program I'm trying to write. I need to input a text file into a 2D array and sort it into 13 rows, 5 columns using strtok. I need to use strtok because some of the words are separated by ws, others by …

Software Development c++
Member Avatar for rugs267
0
253
Member Avatar for BeyondTheEye

I made a win32 application in Visual C++ 2008 using the Windows Forms Application. But for opening files, and saving eventually, havn't gotten to it yet, I was creating some basic classes in other files. The odd thing is the [i]stdio.h[/i] file seems to be working differently in VC. I …

Software Development c++ visual-basic
Member Avatar for Narue
0
267
Member Avatar for mostermand

hi i was wondering how much i should use classes in C++. Should i use it as much as possible?

Software Development c++
Member Avatar for mostermand
0
319
Member Avatar for rapture

Hi all, I'm stuck - it might be easy but I don't work with VB6 much. I have a form that is open and has a button on it which opens a second form overtop of it. when the second form opens it locks the first form. Upon exit from …

Software Development visual-basic
Member Avatar for rapture
0
98
Member Avatar for MelechM

Ok I have Visual C++ 2008 and I made a new project and made an app. It's a basic window with a menu, icon, etc. Now I have the following program for instance: [code] #include <iostream> #include <math.h> using namespace std; int main() { char answer; float c, e, x, …

Software Development c++ visual-basic
Member Avatar for MelechM
0
124
Member Avatar for Nemoticchigga

How would one seperate a decimal into 2 numbers, the left and right sides of the decimal? float example = 131.14567 into... int left = 131 float right = .14567 thanks.

Software Development c++
Member Avatar for ArkM
0
118
Member Avatar for laghaterohan

i want to change first letter of both First name and Last Name to uppercase here is my code however, i am getting error..as Index and length must refer to a location within the string. Parameter name: length MY CODE IS AS BELOW : [QUOTE]Function uppercasefirstletter(ByVal oldString As String) As …

Software Development vb.net
Member Avatar for laghaterohan
0
86
Member Avatar for castrohe

I want to insert and order 3 objects (from different classes) in a priority queue. I create an array to access to the element inside the priority and then I push in the priority queue. The code: [code] #include <iostream> #include <queue> #include <vector> using namespace std; class Alumnos{ public: …

Software Development c++ queue
Member Avatar for ArkM
0
113
Member Avatar for Lee_Sonnenburg

Hey I'd like to be able to play an mp3 file in a an application in one of my Load procedures. I just need the syntax for playing the file. thanks, Lee

Software Development asp.net vb.net
Member Avatar for Lee_Sonnenburg
0
167
Member Avatar for emilio

i have a method that saves an object to file : [CODE=java]public void Save() { if (canSave) { JFileChooser fileChooser = new JFileChooser(); if (fileChooser.showSaveDialog (this) == JFileChooser.APPROVE_OPTION) { ObjectOutputStream out; try { out = new ObjectOutputStream (new FileOutputStream (fileChooser.getSelectedFile ())); out.writeObject(this.game); out.close (); } catch (IOException ex) { } …

Software Development java
Member Avatar for emilio
0
178
Member Avatar for Dannyo329

I just knew about getch() and found it better than cin (a lot) but there's one problem bugging me, can you makea n if statement for getch()? For example they have: [CODE] int a; cin >> a; if (a == 1) //blah else if (a ==2) //blah else //blah [/CODE] …

Software Development c++
Member Avatar for Dannyo329
0
659
Member Avatar for Easter Bunny

i have a clients.dat file with client info in it. i have gone through it to find the record i want to delete, used PushBackBuffer to unread the one i want top delete, skipped that bit and carried on reading the rest and writing it to clients.tmp. after i have …

Software Development abuse file-system java
Member Avatar for Easter Bunny
0
143
Member Avatar for john88

I dont know why this doesnt work, basically I want to calcualate the letters and numbers and white spaces and so on, nothing fancy. And it does work, it does calculate everything. However I seem to be stuck in the while loop or something because I cant print it out, …

Software Development c++
Member Avatar for MelechM
0
123
Member Avatar for Emerald214

I don't understand why **ptr is used in this code. Please expain to me. [code] template<class NODETYPE> void Tree<NODETYPE>::insertNode(const NODETYPE &value) { insertNodeHelper(&rootPtr, value); } template<class NODETYPE> void Tree<NODETYPE>::insertNodeHelper(TreeNode<NODETYPE> **ptr, const NODETYPE &value) { if(*ptr == 0) *ptr = new TreeNode<NODETYPE>(value); else { if(value < (*ptr)->data) insertNodeHelper(&((*ptr)->leftPtr), value); else if(value …

Software Development c++
Member Avatar for ArkM
0
116
Member Avatar for skatamatic

Ok, so I'm trying to prove to my teacher that Div and Mod isn't always the best way to solve things. So i created this tiny program, held entirely in main.cpp : [CODE=cplusplus] //Project: Mod_Efficiency //Author : Kyle Wesley //Descrip: This was made to prove that mod/div operations are often …

Software Development c++
Member Avatar for skatamatic
0
3K
Member Avatar for asifjavaid

hi all, I want to convert a string contain hex format '0x15' and what to convert it integer because i want to write data contain by a integer variable in hex format (binary data) into the file. here is my code [code=c] char * str = "0x15"; int value; FILE …

Software Development c
Member Avatar for Narue
0
4K
Member Avatar for SVR

Im calling a function in a 3rd party dll. Somewhere down the line it hits an access violation (0xC0000005). I wrapped the call in a try/catch but it never catches and the runtime pops up the old Unhandled Exception. This call is several calls deep in my code so I …

Software Development c++
Member Avatar for SVR
0
205

The End.