43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for KBL

This program is to accept input from a user to select there own username and then a password which will be compared to the password KazzyB, and give an output saying Welcome, The only problem in it is a single error KB.cpp(18) : error C2447: missing function header (old-style formal …

Software Development c c# c++
Member Avatar for KBL
0
25K
Member Avatar for uptheirons1

Okay, I have read through all of the average grade java swing threads I could find on this site, but I can't seem to fix this problem. Everything seems to work correctly, but the average grade won't display in the JTextPane. I am going to get rid of the extra …

Software Development java java-swing
Member Avatar for uptheirons1
0
535
Member Avatar for EAnder

I am attempting to get the username of the current user on a windows computer using windows API. I am using the GetUserName function in the Windows Unit. I am having some problems with giving the correct data types for function arguments. Any help would be greatly appreciated. [code] program …

Software Development api microsoft pascal
Member Avatar for rapistebe
0
981
Member Avatar for PTRMAN1

My assignment is to develop a C++ program to count the number of capital letters in a given string. String will be entered by user. The idea is to build my knowledge of loops and loop terminations. I've got the basics down (I think) but I just don't get what …

Software Development c++
Member Avatar for PTRMAN1
0
127
Member Avatar for Giffordw

I've inherited a project which pulls data from 2 DB (*.mdb), one is access 97 and one is access 2002. DAO 3.6 is referenced. We use OpenDatabase and OpenRecordset instructions. When running, we get "Unrecognized data format" error or error code 3343 when attempting to refresh any table in the …

Software Development visual-basic
Member Avatar for Giffordw
0
69
Member Avatar for illIAm

Hi have done the whole program but now am stuck at what initially seemed like a simple thing a repitation loop the program is supposed to ask the user if he/ she wants to continue with adding more data - if no exit and continue with the other stuff. [CODE]char …

Software Development c
Member Avatar for Xufyan
0
15K
Member Avatar for bufospro

Hi, I am trying to learn exceptions using "throws". So , my code is [CODE]public class A { public static void main(String args[]) { A a = new A(); int x1; int x2; x1 = 7; x2 = 0; a.printer(x1, x2); } void printer(int x1, int x2) throws ArithmeticException{ System.out.println("Add: …

Software Development java printer
Member Avatar for bufospro
0
162
Member Avatar for tallygal

I am inputing from a text file, displaying it on the screen, displaying the menus and the choosing from there. It will repeat the menu, but, how to do I get it to read the next line in my input file and display it to the screen before repeating the …

Software Development c++ file-stream ios
Member Avatar for tallygal
0
112
Member Avatar for spursfan2110

Hey, just curious. Is atof() a C++ only function or will it work in standard C?

Software Development c
Member Avatar for Narue
0
123
Member Avatar for NOLK

Hello all, I'm fairly inexperienced at C# and I am currently working on a project that requires me to generate two random numbers, then apply a random mathematical operator (+,-,*,/). I'm currently struggling on how I would do this. So far I have worked out how to generate two random …

Software Development
Member Avatar for NOLK
0
1K
Member Avatar for buzzykerbox

Trying to find the string length,of word_to_guess,wont work,any suggestions??? [CODE] #include <iostream> #include <cstdlib> #include <string> using namespace std; int main() { int num; int size; int num_guess; string word_to_guess; string words [10] = {"john","paul", etc} char exit = 'y'; char guess; srand((unsigned)time(NULL)); num = rand() % 9 + 0; …

Software Development c++
Member Avatar for buzzykerbox
0
101
Member Avatar for Avasulthiris

Hi there, I did not see an Android thread, but its pretty much an extension of J2SE so this is probably the best place for it.. I'm currently developing on minimum sdk version 3 (Android 1.5 - cupcake) and I'm having a strange unexplained issue that I have not been …

Member Avatar for peter_budo
0
172
Member Avatar for rkp728

I want to fill a structure and then print it. How to print the values of the structue? The structure is: [CODE] #define UINT32 unsigned int #define INT32 int #define UCHAR unsigned char typedef struct CheckSumPair { UINT32 weakcs; // The weak, rolling Adler32 checksum. UCHAR StrongCS[10]; };[/CODE] I have …

Software Development c++
Member Avatar for Banfa
0
359
Member Avatar for mucoool

i'm having problem in executing this statement.... error expression syntax switch(col) { case 1:text[]={"0x00000000"}; break; case 2:text[]={"0x00FFFFFF"}; break; case 3:text[]={"0x0000FF00"}; break; case 4:text[]={"0x00FF0000"}; break; case 5:text[]={"0x00C000C0"}; break; case 6:text[]={"0x000000FF"}; break; case 7:text[]={"0x0000FFFF"}; break; case 8: text[]={"0x00FFFF00"}; break; } char text[10] is global. please help me out.............

Software Development c++
Member Avatar for jonsca
0
286
Member Avatar for zyaday

[CODE]public class Employee { private String name; private String SSN; private Employee e = new Employee("ME","MYSSN"); Driver x = new Driver(32); public Employee(){ } public Employee(Employee e){ this(e.name,e.SSN); } public Employee(String name, String SSN){ this.name = name; this.SSN = SSN; } public static void main(String [] args){ Employee e = …

Software Development java
Member Avatar for zyaday
0
121
Member Avatar for thecurious

Hello, I have a strange annoing situation with a C# software i made. The software is made by me, it uses : - usual C# libraries - visual studio 2008 - MySql DB with .net connector - Crystal reports Problem : - the problem is that on a specific system …

Member Avatar for thecurious
0
111
Member Avatar for Robbert

Hi I need some help with sizers. I just can not get my head around it and i cant find much on the net about what i am trying to achieve. I am not even sure if i need a grid sizer or two box sizers. This is what i …

Software Development python
Member Avatar for Robbert
0
88
Member Avatar for VernonDozier

I have some code that works. However, when I try to make it not work (i.e. try to execute a non-existent program), I don't see any indication that it hasn't worked. Here's the code snippet. [code=C] pid_t pid; // char *const paramList[] = {"/usr/threshold/bin/preconfig.sh", options[indexSelected].optionName, NULL}; const char* paramList[] = …

Software Development c
Member Avatar for VernonDozier
0
7K
Member Avatar for eulogy57

Hi. I've been browsing this forum for answers for some time now and i guess it's about time to post a question myself. Here's the deal: I have a dll file in which i define a method that sets SE_DEBUG_NAME to enabled. Here's the code: [CODE] // tema4dll.cpp : Defines …

Software Development c c# c++
Member Avatar for eulogy57
0
464
Member Avatar for pirateninja1111

here are the instructions for my assignment Write a program that counts the number of words, lines and total characters (not including whitespace) in a paper, assuming that consecutive words are separated either by white space or end-of-line characters. Your output from this particular file should say: line count: 58 …

Software Development java
Member Avatar for james.newell
0
456
Member Avatar for PinoyDev

Good day guys. I want want a little help of my query. The tbl_ entity: tbl_1(UserId(AutoNum ber - set as primary key),Validity(Date/Time)) [code=vb] dim logonid as long rs.open "SELECT * FROM tbl_1 WHERE UserId='" & logonid & "'",conn, adopenkeyset,adlockoptimistic [/code] It returns an error invalid data type expression. But when …

Software Development visual-basic
Member Avatar for PinoyDev
0
105
Member Avatar for kelvinteh

Hi, I have this problem which I do not know how to solve in VB. I have to read from a text file, but only write selective lines to a new txt file. E.g. (original text file) ============================================ SINNWSQ .SINFMSQ 230606 SSM LT 23MAR00323C108 NEW SQ 3328 01NOV04 31DEC20 2 …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
121
Member Avatar for ddanbe

I start a new WindowsApp with Form1 with a Button. Added a form Form2 to my project. In the click event handler of my button I do the following: [CODE=csharp] private void button1_Click(object sender, EventArgs e) { Form2 F = new Form2(); Point P = new Point(500, 500); F.Location = …

Software Development
Member Avatar for chad701
0
251
Member Avatar for shusshoku

I'm using python for a project and was curious if anyone knew whether it was possible to open up jpg files in a GraphWin window. Also, the image software I'm using with it is PIL, if that helps.

Software Development python
Member Avatar for bumsfeld
0
75
Member Avatar for BruceIrvin

EDIT: Nevermind, I already found what was wrong; But I can't draw a card properly when I run it still. [CODE]import java.util.Scanner; import java.util.InputMismatchException; public class CardDealer //Main Class { public static void main(String[] args) { Scanner keybd = new Scanner(System.in); Deck deck1 = new Deck(true); int count = 0; …

Software Development java
0
90
Member Avatar for sarsekim

Hello, I am having some trouble debugging a simple windows forms application. I have four textboxes, two being readonly that display the calculated answers, and then a "calculate" button. here is the code for the calculate button: [code] private void btnCalculate_Click(object sender, EventArgs e) { decimal obj_height = Convert.ToDecimal(txtHeight.Text); decimal …

Software Development c c# c++ visual-studio
Member Avatar for ddanbe
0
150
Member Avatar for Bigfoot73

I'm writing a program that requires the user to select a file when the program starts. If he cancel this the program exits. Currently I'm creating an OpenFileDialog in the main form's constructor, but it's not working very well due to the following issues: * If the user cancels I …

Software Development
Member Avatar for Bigfoot73
0
163
Member Avatar for Bigfoot73

I have a problem with inheritance. I have the class A with functions x and y Class B is a subclass of A and should override y. y should call y in A and add extra functionality. Class C is a subclass of B and should override y. y should …

Software Development
Member Avatar for Bigfoot73
0
125
Member Avatar for Yggdrasil

During a university project, I had to print some int arrays to the screen, and I wanted to do it with printf. So I decided to include a function that converts an integer array into a string type, and passes the string out to the calling function. But the function …

Software Development c
Member Avatar for jephthah
0
171
Member Avatar for spursfan2110

This isn't entirely a programming problem, but it may be at its base, which is why I'm bringing it to you guys. For my assignment, I have download a .txt file from my prof's webpage, and then have my program open it. The file, when opened in a web browser, …

Software Development c file-stream visual-studio web-browser
Member Avatar for spursfan2110
0
113
Member Avatar for jiten_raulo

Hi experts, I have confusion about the point I read in my book: I. In a source file you can define number of classes, but only one of them can be a public class. In this case, the name of source file must match the name of public class. II. …

Software Development java
Member Avatar for jiten_raulo
0
89
Member Avatar for jk451

I wonder if at least according to ECMA-334, section 15.9.5, the behaviour of following is undefined: [code] using System; class FindingCountry { public static void Main(String[] args) { int a=0; try { throw new ArgumentNullException((5 / a).ToString()); } catch (DivideByZeroException) { } } } [/code] Running it with the VS …

Software Development
Member Avatar for jk451
0
178
Member Avatar for buzzykerbox

Hey gang, I have a string array containing 10 words,I would like to randomly pick one of these words, how do I go about it,cant find any tutorials???? Thanks Buzz

Software Development c++
Member Avatar for mrnutty
0
92
Member Avatar for mrynit

This program is a GUI shopping menu with text fileds next to item descriptions. My question is about the add method in ShippingCart class. It is called every time an action occurse in a text field, from a GUI class not shown here, where quantity requests are entered. So when …

Software Development gui java pdf storage
Member Avatar for Ezzaral
0
214
Member Avatar for crazyhorse09

I'm working on my poker clock again now that I found the source, and I need some help with loops. I have a label that has the round number on it, and labels for the small and large blinds for the current round, and for the next round. I have …

Software Development vb.net
Member Avatar for crazyhorse09
0
133
Member Avatar for lionaneesh

[CODE]#include<stdio.h> void squeez(char s[],char z[]); int main() { char s[100] = "Hey wassup !!!!!!"; char z[100] = "Wow cool!!!!!"; squeez(s,z); return(0); } void squeez(char s[] , char z[]) { int j,dummy = 0,i=0; char x[100]; for(j = 0 ; s[j] != '\0';j++)/* the starting loop */ { while(z[i] != '\0') …

Software Development c
Member Avatar for urbangeek
1
270
Member Avatar for jozz3

Just a quick one- I'm writing code that asks the user for a filename and checks that it exists. If it does it has to print the file's contents, if not print a message. [CODE]import os fileName = raw_input("Enter the name of the file: ") if os.path.exists(fileName) == True: fileName.read() …

Software Development python
Member Avatar for Gribouillis
0
141
Member Avatar for slicer

Hi I really need help figuring this one out I have been working at it forever. I am trying to pass an array of 3 pointers, which are themselves arrays, and get the sum of the last two pointers and store it in the first pointer. The pointerarrays are filled …

Software Development c++
Member Avatar for Excizted
0
117
Member Avatar for Pelle_3

Why do I have do use the Seekg()-function two times in a row to make it work? Code: [CODE] fbin.seekg(0); //jump to record at start of file fbin.seekg(0); //jump to record a second time (else it won't work) fbin.read(name, sizeof(name)); //read from data field 1 fbin.read(reinterpret_cast<char*>(&age), sizeof(int)); //read from data …

Software Development c++
Member Avatar for Pelle_3
0
200
Member Avatar for crazyhorse09

I had a hard drive crash and lost all my source code for my poker clock program, but still have the program. Are there any programs I can use to reverse engineer my program so I can get the code back?

Software Development hard-drive vb.net
Member Avatar for crazyhorse09
0
99
Member Avatar for timbomo

error: default argument for `int&ns1' has type `int'. i cant figure out why this error is popping up it says the error is on line 3, anyone know how to help? [CODE]#include<iostream> using namespace std; void score_num(int &ns1=0,int &ns2=2,int &ns3=3, int &ns4=4, int &ns5=5, int &n6=6, char gam_answ); void display_score(int …

Software Development c++
Member Avatar for mattjbond
0
189
Member Avatar for soUPERMan

I have this code: [CODE]class Member: def __init__(self, name, typeOM, fee, yearJoin): self.name = name self.typeOM = typeOM self.fee = float(fee) self.yearJoin = yearJoin # Reader Methods def getName(self): return self.name def getTypeOM(self): return self.typeOM def getFee(self): return self.fee def getYearJoin(self): return self.yearJoin def getMemberTypeString(self): if self.typeOM == 'P' or …

Software Development python
Member Avatar for soUPERMan
0
114
Member Avatar for PinoyDev

Good day guys. Im just new in c++. I just want a little help/guide/sample code or steps on how to get files from a certain txt files(notepad) and display it on screen. Vice Versa. Thank you for giving time. God bless.

Software Development c++
Member Avatar for PinoyDev
0
133
Member Avatar for mrnobody

I'm trying to figure out how to change the edit box colour when I click on the button. Btw, i'm using VC++ 6.0 (MFC). One way I can do is assign a colour variable. When I click the button, the colour variable changes. When the program call the OnDraw function, …

Software Development c++
Member Avatar for mrnobody
0
2K
Member Avatar for kingmu

Hi, I have serial data that can come in at irregular intervals from a hand held barcode scanner. The scanner continuously looks for a barcode (no button or trigger is ever pressed) and when the scanner captures a valid barcode it sends the code to the PC over serial. What …

Software Development gui python tkinter
Member Avatar for kingmu
0
721
Member Avatar for El3et

Hi I'm trying to play a WAV file. I have used the following code... [CODE] PlaySound("C\Sounds\GAME_OVER.WAV",NULL,SND_ASYNCH); [/CODE] I get the following [CODE] Error 7 error C2065: 'SND_ASYNCH' : undeclared identifier c:\Users\Chris\Desktop\Pacman\v1.0\Pacman\Pacman.cpp 65[/CODE] I have also tried... [CODE] PlaySound (TEX("\\SOUNDS\\GAME_OVER.WAV"), NULL, SND_SYNC | SND_NODEFAULT); [/CODE] With this i get no sound …

Software Development c++
Member Avatar for helsing1989
0
147
Member Avatar for Lolalola

Hi, my program don't work? Propgram stop on: this.textBox1.Text = "(New text)"; [CODE="C#"] Thread demoThread; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.demoThread = new Thread(new ThreadStart(this.ThreadProcUnsafe)); this.demoThread.Start(); textBox1.Text = "Written by the main thread."; } private void ThreadProcUnsafe() { while (true) { Thread.Sleep(2000); this.textBox1.Text …

Software Development
Member Avatar for Lolalola
0
91
Member Avatar for toll_booth

I'm trying to code the game of Minesweeper. I haven't put in graphics just yet, only text labels on the buttons. Here is my create_widgets method: [code] def create_widgets(self): #Create the grid. self.square = [] self.isAMine = [] for i in range(self.y): row = [] mineRow = [] for j …

Software Development python
Member Avatar for toll_booth
0
173
Member Avatar for Afupi

My goal in this program is to solve for the 12 unique solutions for the 8 queens problem. All the below posted is my code. I believe that my findSolutions function is capable of finding the first solution but I have a couple issues from that point. If the user …

Software Development c++ user-interface
Member Avatar for Afupi
0
572
Member Avatar for QuantumMechanic

I am hoping someone here can help me with a little bit of trouble using the execve() call. I have some code that needs to call an external script under CNL (Compute Node Linux, [I]i.e.[/I] - Cray XT4/XT5). CNL is [B]extremely[/B] lean and is missing enough libraries to make using …

Software Development c
Member Avatar for QuantumMechanic
0
1K

The End.