132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gustyJoey

can yo pls help me the full codes of militlitary time convert to 12 hours time.

Software Development c++
Member Avatar for Ancient Dragon
1
77
Member Avatar for the_prox

Hi there, I need to write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). As far as I can tell I have all the code written, it's now just a matter of …

Software Development java java-swing
Member Avatar for VernonDozier
1
176
Member Avatar for jpd85

need help with outputting an array of objects to a text file. new to java so any help would be much appreciated thanks johnny

Software Development java
Member Avatar for kvprajapati
1
114
Member Avatar for qkslvr1621

I need to write a program that decides if you can apply for the job or not. After asking a series of questions (all the questions) the program then needs to print out whether you can apply or not. Here are the requirments for the job • If you are …

Software Development c++
Member Avatar for qkslvr1621
1
93
Member Avatar for TheSilverFox

[code=CPP]#include <iostream> using std::cout; using std::cin; using std::endl; void Calculate( double ); int main() { int worked; double salary; double pay; cout << "Enter the hours worked: (-1 to end)" << endl; cin >> worked; cout << "Enter the salary: " << endl; cin >> salary; while( worked > 0 …

Software Development c++
Member Avatar for csurfer
1
105
Member Avatar for squall1986

Hi, for a class, I'm trying to implement a separate-chaining hash table stored in a vector that contains pointers to vectors where the keys will be stored. This is basically what I have: [CODE=c++] typedef vector<string> KeyChain; vector<KeyChain *> Table;[/CODE] The problem I'm having is when I want to access …

Software Development c++
Member Avatar for squall1986
1
137
Member Avatar for jcwm249

Ok I am trying to write up a data system on C++ so that when i enter in 1-10 i can choose what i want to do....but I keep on getting errors...and the people i already entered in at the bottom (the void add_record) i dont think it correct because …

Software Development c++ ios
Member Avatar for Ancient Dragon
1
242
Member Avatar for witecloner

Sorry if my thread is place in incorrect forum. Hai All ... Could anybody help me? i'm praticing how to build the n'tier application. I have read some book tell about this, like "Building Client/Server Applications With VB.NET" by Jeff Levinson, beth massi video tutorial "building simple n-tier applications", and …

Member Avatar for witecloner
1
305
Member Avatar for chria

Hi, I have two classes, Yatzy and YatzyPlayer. In YatzyPlayer.h i create vector<int> mResults and in the constructor in (YatzyPlayer.cpp) i resize it by mResults.resize(15,-2). I also have a function to return this vector declared like vector<int> getResults() and returns mResults. Then in my Yatzy file I'd like to have …

Software Development c++
Member Avatar for chria
1
119
Member Avatar for Ardvarks

I have been coding a GUI program as a MySQL database manager/utility... The idea of the section I am focusing on is, your enter a guild's name, and it queries the database and displays the guild's info in a textbox. As a test I have used this query: [code]SELECT * …

Software Development c++ gui
Member Avatar for Ardvarks
1
139
Member Avatar for cmakesmesad

I need help with the following program I wrote. Im getting a segmentation fault and the warning "assignment makes integer from pointer without cast". Can anyone spot any errors with the program? [CODE] #include <stdio.h> #include <string.h> #define MAXLENGTH 256 //function portotype char * next_word(char *instring, char **new_start); int main …

Software Development c
Member Avatar for Tom Gunn
1
86
Member Avatar for mOoEyThEcOw

So I was coding along working on another dll, I recompiled a dll containing the following code and suddenly my program was crashing, when i clicked the show info link on the 'send this report to Microsoft' dialog box, it said the dll which was throwing the error was msvcp90d.dll, …

Software Development c++ ios microsoft-access
Member Avatar for mOoEyThEcOw
1
106
Member Avatar for mb1980

i am working on this program for a while need some help/input/miracle.... [code] #include <fstream> #include <iomanip> #include <cstdlib> #include <iostream> using namespace std; class Report { private: char id [12]; char name [20]; double midterm, f1, p1, p2, p3,cp; ifstream in_file; public: Report (); ~Report (); void print_heading(); void …

Software Development c++
Member Avatar for Ancient Dragon
1
137
Member Avatar for cbaechle

So we were in class today and my professor said that, while iterating through a linked list you can use the ++ operator to get the next node. Here's an example linked list... [code] #include <iostream> using namespace std; class Node { public: int data; Node * next; }; class …

Software Development c++ linked-list
Member Avatar for csurfer
1
1K
Member Avatar for zuve_fox

hi.. plz help me i have application to read mifare card(smart card) which use vb.net to build application my mifare/smart card read display UID "F4 76 4A 3C" but i use that application and smart reader to read my mifare/smart card, that display in decimal "1011513076". How display that value.should …

Software Development vb.net
1
72
Member Avatar for BustedPixel

Hello everyone, This is my first post and I was wondering if anyone can help me. I am trying to populate user selected files (file path) into a treeview, but whenever I select multiple files from the same sub folder, it displays the root path and sub folder for each …

Software Development
Member Avatar for BustedPixel
1
119
Member Avatar for mundetas

I would like to put my windows form application to be online, where by it will connect to a webserver and get data from the database on the webserver. Are there any sites or ebooks I can get on windows app going online

Software Development
Member Avatar for Ramy Mahrous
1
2K
Member Avatar for lolveley

hello, I want to make a little program with a friend method but there is a bug. In my example code, I have a class A which have the method f from clas B as friend. files: A.h [CODE=C++]#ifndef _A_H #define _A_H #include "B.h" class A { public: A(); friend …

Software Development c++
Member Avatar for siddhant3s
1
114
Member Avatar for lotrsimp12345

[CODE] Implementation file using namespace std; #include "Interface.h" #include <time.h> void timer::start() { if(! running) { begin=(unsigned int) clock(); running=true; } } void timer::end() { if(running) { finish=(unsigned int) clock(); running=false; } } int timer::elapsed() { if(running) { return((unsigned int) clock()-begin); } else { return finish-begin; } } int timer::output(unsigned …

Software Development c++
Member Avatar for lotrsimp12345
1
322
Member Avatar for Kathleen Tillma

Hi all - This is my first time posting here, but I'm hoping someone can help me. My homework assignment is to make a GUI number guessing game with the number of guesses shown. I've gotten the entire program working, but for the life of me I can't seem to …

Software Development gui java java-swing
Member Avatar for VernonDozier
1
1K
Member Avatar for Manikyr

Hi! My assignment is to write a program where you write in two sport teams, home teams and guest team and their reults. After the program will output information who won and if there were a tie. I tried to translate okay from Swedish! The program isn't working and there …

Software Development c++
Member Avatar for kangarooblood
1
452
Member Avatar for Luigibosko

I just signed in to these forums and I'd be so happy if you guys could help me out with a triviality that I can't seem to get around. Now, although I haven't actually got around to programming anything really complex, I've been reading alot these last 2 months and …

Software Development c++
Member Avatar for Luigibosko
1
240
Member Avatar for mundetas

I want my exit button on my application to close the app completely plus the process. to work like the close button in the control box. I have used [B]"this.close()"[/B] but that only closes the form.Can someone please assist me.

Software Development
Member Avatar for mundetas
1
133
Member Avatar for wescode

How can I get internet history with a vb4/5/6 program? In a period of time I have to get the user accessed web pages even if he is using other than internet explorer. A keyloger will collect all the unnecessary things. Would you please help me?

Software Development visual-basic
Member Avatar for vb5prgrmr
1
362
Member Avatar for seemant_sun

i have a thorough knowledge C and a little bit of practice of C but i wanted to be a good C programer can anybody tell me how i can do it are ther any good books which can provide me good practice of C

Software Development c
Member Avatar for jephthah
1
116
Member Avatar for johnnybravo_1

Hello Guys, I've tried my best but it won't work. I'm trying to read an integer from a txt file and return the whole line where this integer resides. So, for example, in my txt file, if I have a line: aaa bbb ccc 100 bb 9 and I type …

Software Development c++
Member Avatar for johnnybravo_1
1
772
Member Avatar for nakemaro

hii everyone ^^ My project for the c++ course is due tomorrow but am facing a problem this is the function [CODE] int i=0,x , ar[100]; double a_d,y=1; cin>>a_d; while (y!=0) { y=a_d*10; x=static_cast<int> (y)%10; cout<<endl<<"after "<<y<<endl<<"the number "<<x; a_d=y-x; i++; } cout<<i; return 0 ; }[/CODE] what I wanna …

Software Development c++
Member Avatar for Ancient Dragon
1
122
Member Avatar for mattyd

This demonstration was originally proposed to be posted as a Python tutorial but with further inspection it was deemed more of a "how-to" guide, in this case, how-to create simple animation via Tkinter (Tool Kit Interface) All the necessary elements are included in the attched zip file. This includes: [LIST] …

Software Development first-post python tkinter unix
Member Avatar for vegaseat
1
244
Member Avatar for msgjunkie

I have followed the instructions on MSDN to "Display Related Data in a Windows Application" ( [url]http://msdn.microsoft.com/en-us/library/57tx3hhe(VS.80).aspx[/url] ). I have a data source that has a Customers table and a related Orders table. I can easily create a form which allows the user to select a Customer and display the …

Software Development display vb.net
Member Avatar for msgjunkie
1
105
Member Avatar for bjanbkboi

I'm trying to read a file into a vector using structure...[CODE]#include <fstream> #include <iostream> #include <vector> #include <cstdlib> using namespace std; struct StudentRecord { int ID; char FirstName[30]; char LastName[30]; char Grade[1]; }; void read_file(char FileName[20],vector<StudentRecord> &students) { ifstream Students(FileName, ios::in); char S_ID[10]; /* char FName[30]; char LName[30]; char S_Grade[1];*/ …

Software Development c++ file-system ios
Member Avatar for ArkM
1
108
Member Avatar for bananas

im using the book java in 24 hours. i still need to learn about input but disregard that i only wanna know you opinians about my code thanks for your support [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. …

Software Development java
Member Avatar for bananas
1
84
Member Avatar for JohnPhilipps

Good morning, I am quite new at java and in the learning process. I have a log file with the following data contained in it: mai 4 03:26:53 pcjournal Dock[345]: Corrupt JPEG data: premature end of data segment mai 4 03:26:53 pcbookscuba [0x1-0xa01a].com.apple.dock[345]: Tue Jun 2 03:26:53 macbookscuba.local Dock[215] <Error>: …

Software Development apple file-system java
Member Avatar for JohnPhilipps
1
255
Member Avatar for kasumi01

im working on a program who the user enters data of a Movie: name, Director, and playtime im on my last error but i cant see the where the problem is ore what to do i trayed to change some parts in the code to see the problem with no …

Software Development c++
Member Avatar for kasumi01
1
227
Member Avatar for meb111

Okay i am apparently having problems on understanding exactly how string works. The problem im having is I get an error at the part where it assigns the cards. Please help me! Much appreciated! [code] #include "stdafx.h" #include <string> #include <time.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { …

Software Development c++
Member Avatar for ArkM
1
101
Member Avatar for Ray Gray

We came across a very strange behavior with a code like this (this is a simplified version; it took quite a time before we were able to identify a similar problem in our code): [code] unsigned int x = 10; int a = ((int-1) * x; int b = ((int)-1) …

Software Development c++ visual-studio
Member Avatar for ArkM
1
104
Member Avatar for yakovm

[CODE=c++]typedef vector<string> pipeline; typedef vector<pipeline> subPipelineStrings; subPipelineStrings* m_subPipelineStrings m_subPipelineStrings = new subPipelineStrings(3); string *s1 = new string("s1"); string *s2 = new string("s2"); string *s3 = new string("s3"); for (int i = 0; i < m_subPipelineStrings ->size();++i) { pipeline &p = m_subPipelineStrings->at(i); p.push_back(*s1) ; p.push_back(*s2) ; p.push_back(*s3) ; }[/CODE] The question …

Software Development c++
Member Avatar for yakovm
1
108
Member Avatar for yashyash

Dear experts I have a large file with this format: [CODE] 1 7252 0.1613 1 7253 0.1613 1 7254 0.0645 1 7255 0.0409 1 7256 0.0394 1 7257 0.1872 1 7258 0.1872 1 7259 0.0986 ...... [/CODE] and I want to change this file to the binary format but it …

Software Development c++
Member Avatar for Ancient Dragon
1
182
Member Avatar for vlakarados

Searched your forums a lot, found a solution to my task, but still I do not understand why do I get the wrong answer everytime. It's always a 'correct-1' result. It doesn't depend on what the number in the string is. [CODE=C++]#include <cstdlib> #include <iostream> #include <string.h> using namespace std; …

Software Development c++
Member Avatar for vlakarados
1
1K
Member Avatar for phoenix911

[B]THE QUESTION[/B] with a positive integer s read from the keyboard, find all sequences of two or more consecutive integers whose sum is = to s.... for example.... if user enters 15 result should show 1 2 3 4 5.... 4 5 6... 7 8.... [B]MY TRY[/B] [ICODE]#include <iostream> #include …

Software Development c++
Member Avatar for siddhant3s
1
202
Member Avatar for vasek

Hello, I am happy to find this forum. I was trying to read a file to matrix matice. The input file looks like this: 7 1 4 5 6 9 3 2 2 0 7 6 8 6 1 2 4 2 9 1 7 2 3 8 [code=c++] #include …

Software Development algorithm c++ file-system
Member Avatar for homeryansta
1
132
Member Avatar for utkarsh sharma

using tc4.5 on windows xp...for many programs compiled,it shows error: BGI graphics not supported under windows... plz help me run these programs..

Software Development c++
Member Avatar for WaltP
1
172
Member Avatar for DimaYasny

Hi all, I was searching for an IDE that is capable of Python GUI drawing, much like MSVS can draw GUI windows without actually having to code them manually. Atm I use NetBeans 6.5 for Python, but I can switch. Yeah, I'd prefer a Linux based IDE of course :) …

Software Development gui ide python
Member Avatar for DimaYasny
1
1K
Member Avatar for dazzclub

Hi guys/gals, ive been reading alot about bots and i kinda like the idea of creating one. can these bots be created in any programming language or does it depend on what i want the bot to do? ive probably posted in the wrong forum, sorry cheers Darren

Software Development c++
Member Avatar for siddhant3s
1
123
Member Avatar for JustmeVSI

I'm having a project form school for a inventory management system and I want to do something extra. The inventory management system is for spare parts for machines and I want to be able to see the the manuals(PDF files) for thous machines in the GUI but I have no …

Software Development display gui java pdf
Member Avatar for hardik.rajani
1
249
Member Avatar for mingke

I have four arrays as input, then used it in a function that result an output. Then I sorted the output array. Next step, I want to find the index and the value of the input array that resulted the sorted array. I keep getting the wrong result. Here my …

Software Development c
Member Avatar for Salem
1
153
Member Avatar for l3vi

Been developing for years under web based services like PHP and SQL, and I thought it would be a good idea that I come back and learn C++. Been enjoying it, but I got this one thing that is just driving me nuts. In the do while loop after the …

Software Development c++
Member Avatar for l3vi
1
1K
Member Avatar for waldchr

After much frustration of trying to figure it out on my own, I am finally ready to admit that I need help. Does anyone know how to compile allegro 5? (or better yet have a precompiled version I could get my hands on) I have tried many tutorials and none …

Software Development c++
Member Avatar for tux4life
1
641
Member Avatar for karthik.c

hi guys im trying to code patricia trie in c using gcc and when i debuged the program im gettin segmentation stack problem in search function of it.im not sure why it is showing and i've included pat.c,pat.h and ncspatricia.h files. i also want to know what is the difference …

Software Development c
Member Avatar for karthik.c
1
151
Member Avatar for glen dc1
Member Avatar for tux4life
1
71
Member Avatar for Kecy

I'm about to embark on a biometrics project specifically a fingerprint project. If someone could help me with source codes or web sources to get helpful stuff, I would greatly appreciate it.

Software Development vb.net
Member Avatar for Teme64
1
104

The End.