132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kryptolite

i'm trying to make a hangman game with c++ right now and i got a question: how do you get a RANDOM word from a text file? given there is only a word each line in that file e.g: television computer football butterfly etc. anyone can help? thx.

Software Development c++
Member Avatar for AhmedHan
0
203
Member Avatar for Jon182

Hey guys I am using code like the following: But I would like to say if a semi colon appears at any stage after a ")" (closing bracket) add one to count. Any advice thanks. ( I am also using a char array and not a string, unfortunitly I have …

Software Development c
Member Avatar for Jon182
0
130
Member Avatar for magikman

Howdy, I have been trying to teach myself C++ for a few months now and have been progressing nicely thanks to all the wonderful help I have received on this site and others. Thanks for your help! Now, on to my question. I am currently trying to learn linked lists. …

Software Development c++
Member Avatar for Rashakil Fol
0
497
Member Avatar for seh1

Sorry I've asked a question about my GUI already but it's due Monday and I still having a few problems with it.... 1. When the GUIs opens it opens so that I have to change the size manually to view it i.e. the toolbar appears. Is there a way I …

Software Development gui java java-swing
Member Avatar for server_crash
0
148
Member Avatar for seh1

Hi, I wrote the following GUI. Its total crap but just need to get the basics working first. Its compiles fine and my Hello World test message comes up but no sign of the UI itself. Any ideas at all ? Much Thanks, Sean import javax.swing.JFrame; import java.awt.event.WindowEvent; import java.awt.Label; …

Software Development gui java java-swing
Member Avatar for seh1
0
123
Member Avatar for anupam_smart

So, the question is simple... in 'C' we have calling conventions in FUNCTIONS. Why? why we cann't(don't) build compilers,libraries to make our own calling conventions like... func()(lr);-for left to right calling convention. func()(rl);-for right to left calling convention. :eek:

Software Development c
Member Avatar for Ancient Dragon
0
119
Member Avatar for Jhun33

Hello everybody! I hope I'm in the right place to consult some programming issues. I'm Jhun and I'm new to the datagrid of VB 6. I'm currently working on a database application in which I would like to show records from an Access DB thru the datagrid. I tried to …

Software Development visual-basic
Member Avatar for Yomet
0
219
Member Avatar for winbatch

Is there a function that I can use that given a few vectors which elements are common to all? for example vector<int> a; vector<int> b; a.push_back( 1 ); a.push_back( 2 ); a.push_back( 3 ); a.push_back( 4 ); b.push_back( 2 ); b.push_back( 4 ); Something that will give me back the …

Software Development c
Member Avatar for Narue
0
126
Member Avatar for rgrwalker

I have the code written, compiling and no errors, I just need it to write to a file now. This is the code I have. Is the header piece correct? [code] #include <iostream> #include <string> #include <fstream> #include <cstdlib> using std::ofstream; using namespace std; class finalgrade { char firstName[20]; //to …

Software Development c++ display
Member Avatar for Ancient Dragon
0
137
Member Avatar for allenhu

Hi, Is there anyone who can provide VB code to open "Open With" dialogbox? Thanks Allen

Software Development visual-basic
Member Avatar for Comatose
0
142
Member Avatar for Sulekha

hiiiiiiii...........i want to access random lines within a text file in my program,plz help me!!!!!!!!!! :rolleyes:

Software Development c
Member Avatar for KorB
0
93
Member Avatar for Kegtapper

Trying something out of my area of expertise, and wanting to experiment with WebClasses Anyway when I start VB new IIS project - [IMG]http://www.kegtapper.net/test/DaniWeb-IIS.jpg[/IMG] Then I get an error regarding [IMG]http://www.kegtapper.net/test/DaniWeb-error.jpg[/IMG] Then the Dsr won't load and this error [IMG]http://www.kegtapper.net/test/DaniWeb-Dsr.jpg[/IMG] I have PWS 5/IIS server installed on this Win2000 system. …

Software Development visual-basic web-server
Member Avatar for Comatose
0
127
Member Avatar for jack223

How do i get from 2 character words to 4 character words or 5 character words?? can anyone show me how to do that plz... Q) Consider a language of words, where each word is a string of dots and dashes. The following grammar describes this language: <word> ::= <dot> …

Software Development algorithm c
Member Avatar for jack223
0
167
Member Avatar for 3x108th

i am working on a program where the user enters a number and the computer will generate N number of characters and print them in all combonations. For example: enter number: 3 aaa aab aac aba abb abc aca acb acc baa bab bac bba bbb bbc bca bcb bcc …

Software Development java
Member Avatar for masijade
0
192
Member Avatar for tyczj

so im new to templates and i dont understand the errors im gettin in my code. the errors start where it says "sort double array" in the main and the errors are the same for all 6 function calls after that "cannot convert parameter 1 from double[10] to int []" …

Software Development c++
Member Avatar for Rashakil Fol
0
135
Member Avatar for brianotieno

Inheritance Create a class called Rectangle so that, given a height and width, the object would calculate and display the length, width, the perimeter, and the area. Do not include a constructor for this class Another class called Box is derived from the Rectangle class. This class given the breadth …

Software Development c display
Member Avatar for Rashakil Fol
0
104
Member Avatar for jcrcarmo

Hello everyone, Greetings from Brazil! As shown in the code below, is it possible for me to add the new objects for tipoDT and sementesDT without having to do it one-by-one? Like, for example, getting the values automatically from the tables?.... How would I do that? The sementesDT table is …

Software Development asp.net c c# c++
Member Avatar for jcrcarmo
0
170
Member Avatar for vrushalinz1

hi, I have used a combobox to display a list of options like 1 Month,2 Months,3 Months and last option Other. Wen i click on "Other" , calender opens and i have to select the date. The problem is after i select the date and the calender closes i am …

Software Development display vb.net
Member Avatar for Gcox18
0
242
Member Avatar for Jon182

Hey guys I have been trying to expand the following code but have had no luck, is there anyway I could also make this code say if the previous character is space or a is comma? Thanks. [code] //temp is the array ch is a char pointer if( ch == …

Software Development c
Member Avatar for Ancient Dragon
0
234
Member Avatar for Acidburn

Hello, I've got a 2 diemsional array that ments to represent this: Name Address A 1 B 2 C 3 I've got the following code written for this: [code] char * tableArray[10]; [/code] should that be: [code] char * tableArray[10][10];? [/code] And I've got a pointer that populates only the …

Software Development c++
Member Avatar for Bench
0
106
Member Avatar for jlouang

I need help making a program that include meter yards and feet. my c+ class is only in chapter 4 of the c++ book. function header should be void convertMeters(int meters) int main 1. ask for the number of meters 2. read in the number of meters 3. call your …

Software Development c++
Member Avatar for jlouang
0
138
Member Avatar for bashi

I want to develop a software in C++, Java or VB to develop a software /tool to remove duplicates and to identify siblings. The Code/implement the BSN (Basic Sorted Neighborhood) method to remove duplicates. The Code/implement the BSN (Basic Sorted Neighborhood) method to identify the siblings (people who have the …

Software Development
Member Avatar for f1 fan
0
173
Member Avatar for rgrwalker

I can't seem to get it working properly. Here's what I have thus far. #include <string> #include <iostream> class Student_t { char firstName[20]; //to hold the first name char lastName[20]; //to hold the last name int exam1; //to hold Exam-1-Grade int exam2; //to hold Exam-2-Grade int homeworkavg; //to hold Homework-Average …

Software Development c++ display
Member Avatar for rgrwalker
0
242
Member Avatar for osean

im not sure exactly what its called or how to use it.. but im guessing its used to pass over variables as arguments to a function, ive only seen it in functions with this added after it: [B],...)[/B] somewaht similar to the code below.. [code]int myfunc(char *data,const char *data2[B],...[/B]) { …

Software Development c
Member Avatar for osean
0
169
Member Avatar for ilikerps

Hello, I know this question is stupid, but I cannot find an exact answer to it. I am using Eclipse, and have written some classes to be used as a small database editor for XML. It compiles and runs fine in Eclipse. However, I made it so that it can …

Software Development java xml
Member Avatar for ilikerps
0
301
Member Avatar for janito2008

I need help with a program for school. I have to write a program that asks for the number of days each employee is absent, the total number of days absent for all employees combined and the average number of days absent for all employees combined. I need help before …

Software Development c++
Member Avatar for Bench
0
807
Member Avatar for rgrwalker

I have an assignment of the following. Create a class named Fractions having two integer data members named for a fraction’s numerator and denominator. The Class’s default constructor should provide both data members with default values of 1 if no explicit user initialization is provided. The constructor must also prohibit …

Software Development c first-post
Member Avatar for rgrwalker
0
181
Member Avatar for niceguy21

1. The temperature of a city is obtained at a weather station in degrees centigrade. The job is to convert this temperature into its corresponding value in degrees Farenhiet. Assume the data type for the value of temperature to be 'double' and use the formula F=(9/5)*C+32. What is the input …

Software Development c++ display
Member Avatar for Bench
0
143
Member Avatar for Mikecool509

Hello everyone. I have a pretty straight foreward problem. Here is an overview of what i am trying to accomplish 1. I am trying to allow "teachers" of my quiz site to create a class list and in that class list, they can have a list of students. I created …

Software Development display session sql vb.net
Member Avatar for campkev
0
132
Member Avatar for dhanu_shiv

Hello Everyone... i am right now facing a simple at the same time a difficult problem....is there any way by which we can change the default green colour in gauge to another colour in wxPython.... I tried doing it in many methods but all failed....can anyone suggest any solution...

Software Development python
Member Avatar for vegaseat
0
93
Member Avatar for qwester

I am having difficulting creating a Kayles game for java using eclipse. I have all the needed funtions, except for the computer movements, which is what I am having difficulty with. Any help would be appreciated, I have attached the file to this post.

Software Development first-post java
Member Avatar for qwester
0
117
Member Avatar for Jon182

Hey guys I am just wondering why the following code gives the wrong number of characters from a file when the character count is the default? Thanks. [code] void main() { int blank_count = 0; int char_count = 0; int sentence_count = 0; char ch; ifstream iFile("c:\test.txt"); if (! iFile) …

Software Development c++
Member Avatar for Jon182
0
71
Member Avatar for wejavalearn

:?: :?: I dont understand what jbuilder is trying to tell me .. by all right my code seims fine I spent 4 days working it up (yes I am a beginer) I know there are most likly better ways to do what I am doing. The point is compiled …

Software Development java java-swing printer
Member Avatar for wejavalearn
0
100
Member Avatar for Jon182

hey guys, I am using the following code to count from a text file but I also want to check for ",jo " as well as "jo " I was trying to do it by using while((ch = strstr( ch, "jo ")) != 0) || while((ch = strstr( ch, ",jo …

Software Development c
Member Avatar for Jon182
0
84
Member Avatar for harrypotter

Please tell me how to input password by showing a * or other symbol on console instead of text in C.

Software Development c
Member Avatar for agiorgio
0
126
Member Avatar for comwizz

Hello everyone, I was having this problem of sorting words of a string entered by user where the user enters many strings and words of each string are sorted separately. This had to be done using pointers . Heres my attempt.I dont know where I am going wrong as garbage …

Software Development c++
Member Avatar for HackWizz
0
355
Member Avatar for khot_anuradha

hi, i wanted to knoe that how to calculate the total size of file in C?

Software Development c++ file-system
Member Avatar for agiorgio
0
368
Member Avatar for rcwally

Please help me with the End on this problem. I just can't seem to finish it off properly. I keep getting a parse error on the last End. program ValueParameters (input,output); {Author: Cheryl Wahlheim Class: CS241XP Assignment: User Income and Tax Rate procedure} Var income, taxrate, totaltaxdue : real; response …

Software Development pascal
Member Avatar for mrmike
0
219
Member Avatar for JoBe

Hello ladies and gents, I wanted to ask if any of you could tell me what I'm doing wrong when I want to debug any program that Ive written in VC++ 2005 Express Edition. Reason is, after I put a break point to where the program has to run and …

Software Development c++
Member Avatar for JoBe
0
205
Member Avatar for juergenkemeter

Hi, I am thinking about using the Python Imaging Library to display the life cycle of a hair follicle gene. This life cycle is divided into four main stages: 1. Anagen 2. Catagen 3. Telogen 4. Exogen Gene name and corresponding life cycle stage will be stored in a csv …

Software Development display python
Member Avatar for vegaseat
0
321
Member Avatar for peachy

I am trying to finish (start) an assignment and I can't get passes what should be a simle parse error. It shows up on the case line of the information function. I have to get rid of it to continue on... and I have tons more to do... Any one …

Software Development pascal
Member Avatar for rcwally
0
260
Member Avatar for thehakan

Hi everybody; I just started to learn stacks. How can I count the number of Items in a stack by using ADT stack operations?? Can u help me?

Software Development c++
Member Avatar for thehakan
0
184
Member Avatar for 111Help

Can someone offer assistance in converting seconds to minutes and seconds. :?:

Software Development c c# c++
Member Avatar for Lerner
0
124
Member Avatar for AntonBotes

Hi there, This may seem to be a bit confused, but I need a VB DLL that I can call from my BCBuilder++ application. I tried to construct one with Visual Studio 2005 Visual Basic, but since I don't know any Visual Basic, this task is quite daunting, especially since …

Software Development vb.net visual-basic visual-studio
Member Avatar for plazmo
0
115
Member Avatar for niceguy21

how can i remove my username from this list if i want to

Software Development c
Member Avatar for Ancient Dragon
0
90
Member Avatar for kharri5

I am trying to do a priority queue with a custom type, but I keep getting this error des.cpp:77: error: expected init-declarator before "eventQ" des.cpp:77: error: expected `;' before "eventQ" This happens in the following code [CODE] Program: This is a discrete event simulator designed to aid in the analysis …

Software Development c++ queue
Member Avatar for kharri5
0
389
Member Avatar for dmgs11

I am looking to create a mortgage applet with an array for the 3 amounts. There is something I am missing here. Any help can be of use [CODE] /* GOAL Display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term …

Software Development display java java-swing
Member Avatar for dmgs11
0
239
Member Avatar for JoBe

Hello ladies and gents, Ive been trying to find a solution for this exercise wich goes as follows: Rewrite the Student_info structure, and the 'read' and 'grade' functions, so that they calculate each student's grades as part of reading the input, and store only the final grade. Because the exercise …

Software Development c++ first-post google
Member Avatar for JoBe
0
187
Member Avatar for HackWizz

Hi... m a new member n just started to learn c++. so please help me out... its simple I read in 1 of the replies that #include<iostream.h> is obsolete.... n one can use #include<iostream> But wen i tried it in d program it does not included file.. expectin replies... :twisted: …

Software Development c++
Member Avatar for HackWizz
0
211
Member Avatar for sixtysecasasin

Is there a code to increase the console window so that the user does not have to do it manually? I am using VC++ 6.0

Software Development c++
Member Avatar for shortLived
0
141

The End.