132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Princequarles

Hi all, I have a problem reading data from my file for example this is my textfile CODE MARKER //Names of columns in my table PKY KELLYS ELM ELMANS OOC OLIVER QRT QUATAR A user is asked for code, when the code is entered, the corresponding name is displayed eg …

Software Development c++ ios
Member Avatar for Salem
0
107
Member Avatar for jimzy2008

I have an assignment for school that involves creating a java program that creates a basic class. I'm getting an error missing return statement, if i try to compile. What could be wrong here?

Software Development java
Member Avatar for VernonDozier
0
95
Member Avatar for y25zhao

Hi, I'm writing a general Node class in C++ right now. I don't know how to make it having an ability to carry a general object. For example, I want my Node class could carry a general Object. It might be a "Book", a "Person" or an integer. I know …

Software Development c++
Member Avatar for vijayan121
0
144
Member Avatar for lianaconda

Hi. So, my assignment is to convert an infix expression into a postfix one, and then evaluate it. I already completed the infix to postfix part. I have a small problem evaluating the postfix expression though. The expression deals with booleans, and allows the ! operator. I'm not sure how …

Software Development c++
0
85
Member Avatar for Crushyerbones

Basicaly I'm trying to do this [code=C] int create_student(student_data *student){ printf("Nome do aluno:\n"); fgets(student->name,name_limit,stdin); //wtf? printf("NĂºmero do aluno\n"); fgets(student->number,name_limit,stdin); printf("Aqui devia estar um nome %s",student->name); return 1; } [/code] Where student is a custom struct, student->name is char array. For some reason it seems to skip the fgets. Replacing with …

Software Development c
Member Avatar for Dave Sinkula
0
107
Member Avatar for NinjaLink

Hey, I'm trying to get my program to run correctly. I can get the black screen to come up after compiling, but it does not say "Press any key to continue...". I'm reading from input file and want to see results in an output file. My ultimate goal is to …

Software Development c++
Member Avatar for NinjaLink
0
86
Member Avatar for mousey182

I've tried searching the web and cant find anything to help me. I'm trying to create a 2D java maze application and have come up with the code below. It generates the maze and GUI no problem, and I've worked the code out to create a xPosition and a yPosition …

Software Development gui java java-swing
Member Avatar for chrisclairs
0
1K
Member Avatar for dpfaff

Hello, I am relativly new to programing, and I need some help on a lab project. If anyone out there can explain why I am getting the following errors. 55: inlab was not declared in this scope In funtion void selectionSort(char (*)[25], int) 74:error: Stropy was not declared in the …

Software Development c++ file-system
Member Avatar for dpfaff
0
173
Member Avatar for eemqjunk

hello, i'm a newbie programmer (and to python, double trouble :) and running into issues reading and writing files. i'm successfully running the code below to manipulate and remove the first few lines of a text file. The text file (file1.txt) is approx. 329kb but when i run the code …

Software Development file-system python
Member Avatar for ZZucker
0
92
Member Avatar for Belo

Hi Members Its the first time iam writing in this forum ,iam a new member from TANZANIA I want to design the LIBRARY MANAGEMENT SYSTEM using VISUAL BASIC 6.0 Can you help me to wite the code for SARCHING BOOKS WHICH ARE STORED IN MY DATABASE AND RETRIEVE IN A …

Software Development database-design visual-basic
Member Avatar for Jx_Man
0
88
Member Avatar for panderso

Hi I am doing this simple program in visual basic express Sum.Text = Val(Num1.Text * 3) + Val(Num2.Text) + Val(Num3.Text) - Val(Num3.Text) This allows the user to enter number of wins (which gets x by 3) number of draws and number of losses. I have to limit the user to …

Software Development visual-basic
Member Avatar for Jx_Man
0
105
Member Avatar for Black Magic

The title says it all, i was just wondering if i made a simple text based game what would i use? Like I've heard about things called sockets, ports etc? Just in curiosity

Software Development c++
Member Avatar for hammerhead
0
79
Member Avatar for Black Magic

Hey, I was just mucking around and made a simple random number generator and made a "love percentage game" but, if you re-open the .exe and type the same names in it gives another completely different percentage, would i save the names to do a file or some kind? [code=c++]#include …

Software Development c++
Member Avatar for Black Magic
0
158
Member Avatar for kako13

Hi, I wrote a program to input an INFIX convert it to POSTFIX and then evaluate it. But the function 'evaluarRPN' used for evaluate POSTFIX some time work and some time not, depend of the input. For example: (8*9-8/5+6)*(5-9) = -305, but the program display -308 (8+9) = 17, display …

Software Development c++
Member Avatar for kako13
0
290
Member Avatar for sonia sardana

[B][COLOR="Red"]1)[/COLOR][/B] Single Line Textbox can have a horizontal scrollbar-i READ FROM D BUK. But no scrollbar is going to attached with single line textbox. Can a single line textBOX HAVE hor. scrollbar. [B][COLOR="Red"]2)Selstart and SelLength[/COLOR][/B] Private Sub Command1_Click() Text1.SelText = UCase$(Text1.SelText) Label1.Caption = Text1.SelStart Label2.Caption = Text1.SelLength End Sub I …

Software Development engineering visual-basic
Member Avatar for choudhuryshouvi
0
210
Member Avatar for spuddy1515

I need help with manipulating my computers clock through a c++ program and i have no idea on how to make the program. Does anyone have any idea on how to do this?

Software Development c c# c++
Member Avatar for spuddy1515
0
528
Member Avatar for sreehari.rk

double b = 3.0000; char s[20]; sprintf(s,"%f",b); Here char s[20] is fixed it should take values however small be it.I will be happy if I get tat 20 at runtime as a varible with correct allocation size.Else for small value ter will be wastage of memory.It will allocate 20 for …

Software Development c++
Member Avatar for Duoas
0
1K
Member Avatar for eleonora

Hello, I strongly need your assistance what is needed to modify in order the board to inherit the complete functionality of the game. The clienthandler class contains all the methods for playing the game on the terminal [please check the code] Thanks in advance for any help ! [CODE=java] import …

Software Development client-server java java-swing
Member Avatar for jwenting
0
128
Member Avatar for hyperzero4

I'm a Comp Sci I student in college, and I have an assignment to make a quick sort that can sort vectors up to size 32000 with no problem. So, my program has been having a lot of trouble with big numbers, and every once in a while, I get …

Software Development c++
Member Avatar for hyperzero4
0
172
Member Avatar for soup

Hi, I am new to Java and stuck at a problem. I have something like following- [CODE]package X public abstract class A { A(int a) { this.a=p; } protected int p; abstract int func(); } package Y public class B extends A{ B(int b) { super(b); } B() {} //p …

Software Development java
Member Avatar for darkagn
0
107
Member Avatar for Wza

I'm trying to read data from a file using dynamic arrays, everything is great now except for one thing: if I have a file with lets say 20 students' IDs and their scores before starting the reading proccess, I did this: string *studentID; double *testScore; cout<<"Enter number of student: "; …

Software Development c++
Member Avatar for mitrmkar
0
87
Member Avatar for Black Magic

Hey, Yet again i was just mucking around on DEV-C++ and made this code.. [code=c++]#include <conio.h> #include <iostream> using namespace std; unsigned long Double(unsigned long doubleMe) { return (2 * doubleMe); } int main() { unsigned long numberToDouble; unsigned long doubledNumber; cout << "Enter a number you would like to …

Software Development c++
Member Avatar for Black Magic
0
98
Member Avatar for mansi sharma

I want to copy the selected items from listbox1 to listbox2. I know how to copy all the items but not selected. [B]Private Sub Command3_Click() For i = 1 To List1.ListCount List2.AddItem i Next End Sub[/B] Above Code will copy all the items,But I want to copy selected items.

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
2K
Member Avatar for hkarthik

hi, I am new to j2me. I want to add more than one image into a form and display those images as thumbnails, so that when i click any one of the thumbnail i should get the full view of the image. Can anybody help me regarding this issue?

Software Development java
Member Avatar for hkarthik
0
100
Member Avatar for henpecked1

How does one declare a string as a data member in a class? I tried it this way, but my compiler says that's not it [code] class cdrom { public: cdrom(); void loadinfo(); float returncost(); void displayinfo(); void changedata (); private: float cost; string name; string cdtype; }; [/code]

Software Development c++
Member Avatar for henpecked1
0
100
Member Avatar for cyberman111

Hi I am trying to write a script that converts centigrade to fahrenheit and vice versa I need to use a sub-function to perform the calculations. Can anyone help me get started on this I am kinda lost and will like help learning this thank you

Software Development shell-scripting unix
Member Avatar for Impact4ever
0
826
Member Avatar for yasar_ok

Hi All, In my network setup all our UNIX/Linux Servers are standalone.So when a user joins i have to create a user account in all the servers. I will be using the same user acc to create the user account across servers So if you can guys provide me a …

Software Development shell-scripting unix
Member Avatar for eggi
0
79
Member Avatar for Mark515

anyone know code so that i have to insert a username into the program before i can continue doing anything else?

Software Development c c# c++
Member Avatar for Ancient Dragon
0
92
Member Avatar for dakrous

I am writing a doubly linked list, but i am having problems inserting. Here is my code for the node, and main. The issue is in the main when i call insert, it gives me null. How can i get the node to point to head, and tail(insert it). Help …

Software Development java linked-list
0
79
Member Avatar for Squeeker

Hello all, I have an assignment to create a base class for a vector. Now after reading through the instructions I am still unclear the instructions. I am NOT asking for you to do my homework! I just need some clarification. PLEASE DO NOT POST ANY CODE! Here is a …

Software Development c++
Member Avatar for Squeeker
0
183
Member Avatar for mr.cool

I am getting this error and i don't know what it means. this is my code, i do have header files but i didn't include them. [code]int main() { [LIST=1] [*] cout<<"Welcome to guitar hero"<<endl; [*] cout<<"Try and press the correct letters on the line"<<endl; [*] cout<<"You will use the …

Software Development c++
Member Avatar for mr.cool
0
102
Member Avatar for buddha527

I have written the following code that I will post below. Each time I try to compile it I receive the following error. [CODE]1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall OrderSet::OrderSet(void)" (??0OrderSet@@QAE@XZ) 1>C:\Users\Bill\Desktop\School1\c++\c++ spring cs2\program2\Debug\program2.exe : fatal error LNK1120: 1 unresolved externals[/CODE] Note I am using Visual Studios …

Software Development c++
Member Avatar for buddha527
0
151
Member Avatar for precado999

I am working on my senior project and I am using C#.net and Microsoft Access to create a program that lets the user store information into a database. I have many tables but the primary table that mostly everything connects to is the customers table. Well I know how to …

Software Development c# microsoft microsoft-access
Member Avatar for precado999
0
242
Member Avatar for prabhuraj

may i know how to add sqlexpress database to my visual studio project while iam deploying... (i tried by simply adding database into my project through solution explore before deploy , but while instaling deployed project into client machine ,on that time i cant access the data's from database.) can …

Software Development visual-studio
Member Avatar for JerryShaw
0
113
Member Avatar for complexcodes

I am working on this program and I am getting compilig error here is the code:- [CODE]#ifndef ACCOUNT_H #define ACCOUNT_H class Account { public: Account(double = 0.0); void credit( double); bool debit (double); void setBalance(double); double getBalance(); private: double balance; }; #endif[/CODE] [CODE]# include <iostream> using std::cout; using namespace std; …

Software Development c++
Member Avatar for Lerner
0
112
Member Avatar for Mark515
Member Avatar for Ancient Dragon
0
88
Member Avatar for Mehwish Shaikh

I had got an assignment for sorting some data.. "Make a c++ program which takes data from a TEXT FILE, then sort it".. i made this program.. [code=cplusplus] #include <iostream.h> #include <conio.h> int main () { clrscr(); int sort[8]; cout<<"Enter DATA to be Sorted\n"; for(int get=0;get<=7;get++) cin>>sort[get]; //cin saves the …

Software Development c++
Member Avatar for Ancient Dragon
0
177
Member Avatar for ells912

1) Write a program that asks the user to input an integer and the output the individual digits of the number. 2) Write a program that asks the user to input an integer and then output the number with the digits reversed. i don't really know how to this using …

Software Development java
Member Avatar for jwenting
0
107
Member Avatar for dlightfoot15

I need to know how to create a triangle, and how to fill it with color. I am new to programming and would appreciate the help. I am not running the applet in a web browser, just executing it. Thanks.

Software Development java web-browser
Member Avatar for jasimp
0
149
Member Avatar for Black Magic

Hey, Was bored so *TRIED* to make this simple countdown program but i'm just not sure what to put in the for loop? [CODE=C++]#include <iostream> #include <windows.h> using namespace std; int main() { int countDown; cout << "Enter a number to count down from : "; cin >> countDown; for(int …

Software Development c++
Member Avatar for hammerhead
0
110
Member Avatar for Taker

[code] import javax.swing.JFrame; import java.awt.*; import java.awt.event.*; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextField; import javax.swing.UIManager; public class GUINew extends JDialog implements ActionListener { public static void main (String [] args) { protected JButton ok; protected JButton cancel; protected ButtonGroup type; protected JTextField …

Software Development java java-swing
Member Avatar for blufab
0
116
Member Avatar for h0neydip

[code=cplusplus] struct wheel_node { int contents; wheel_node* next; }; typedef wheel_node* wheel_ptr; class wheel { private: wheel_ptr arrow; public: wheel (); void print (); void spin (int distance); void move_to (int number); }; [/code] The constructor wheel creates a circular linked list as follows: arrow -> 5 -> 40 -> …

Software Development c++ linked-list
Member Avatar for hammerhead
0
117
Member Avatar for winky

I am currently attempting to program my first game in C++ using Microsoft Visual Studios Express 2005. After doing some research, I found that it is missing several packages including the one that I need (windows.h). That's free software for ya. Anyways, I was having trouble finding a way to …

Software Development c++
Member Avatar for Ancient Dragon
0
135
Member Avatar for ChrisP_Buffalo

I'm a linguist (Python newbie) trying to use Python to help me with some simple NLP processing. I have extracted verb + preposition + VBG triples from the British National Corpus, so I have large csv files containing stuff like this: plan,on,selling criticised,for,getting opened,after,receiving were,in,identifying visited,before,returning recruited,from,including attended,by,including given,by,joining ... …

Software Development python
Member Avatar for woooee
0
94
Member Avatar for Black Magic

Hey, I was using some code to write int's defined by user to a file but found when you use [CODE=C++]myfile.open ("lover_names.txt"); myfile << firstLover << " " << secondLover << " " << lovePercent << "%\n\n"; myfile.close();[/CODE] It replaces the other text in the text file, the answer will …

Software Development c++
Member Avatar for Black Magic
0
84
Member Avatar for 2thestart

Im working on a game like risk and for the main menu im having trouble with the music. the code i use [CODE] id = Shell("c:\program files\windows media player\mplayer2.exe /play /close G:\My Music\Various Artists\The No.1 Classical Album\04 Ride of the Valkyries.wma", vbMinimizedNoFocus)[/CODE] is just to open and play the file. …

Software Development visual-basic
Member Avatar for selvaganapathy
0
1K
Member Avatar for 3pid

Hi I`ve just started working with graphic in c++.I want to display a stack on the console . I taugth draw a rectangle as a stack.but the problem is I don know how to draw a rectangle! I write some codes but my compiler (Dev-c++) couldn support them. I found …

Software Development c++
Member Avatar for William Hemsworth
0
236
Member Avatar for majestic0110

Hi all, I think I might try my hand at creating a text based adventure game in java. No I don't need cutting edge graphics, or state of the art fatalities etc what I am looking for is a solid, story driven adventure/RPG game. I would appreciate some advice on …

Software Development database-design java
Member Avatar for majestic0110
0
694
Member Avatar for WeNeedThat

Its an assignment I have to submit, we have to make a maze using stack and input text file but I admit that i'm tottaly lost in this, something wrong with my code (or really alot of mistakes) please help! #include <iostream> #include <fstream> using namespace std; struct node { …

Software Development c++
Member Avatar for WeNeedThat
0
100
Member Avatar for Nemoticchigga

Does anyone know if rs-232 c++ code written with the windows.h library is easily changed to support rs-485 and rs-422 or if its not similar at all? Thanks.

Software Development c++
Member Avatar for Nemoticchigga
0
67

The End.