132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for server_crash

I've got the following code: [code] template <typename T> int Histogram<T>::get_occurances(const T& obj) { map<T,int>::iterator find_occur = frequency.find(obj); if ( find_occur == this->frequency.end() ) { return 0; } return ( find_occur->second ); } [/code] The following line always gives me an error saying ';' expected before find_occur. map<T,int>::iterator find_occur = …

Software Development c
Member Avatar for server_crash
0
157
Member Avatar for jlouang

I don't know if I read the book right but my array is not working on my months .My instructions is this assignment uses an array of strings: write a C program that asks the user for the month, day, and year read in the month, day and year (as …

Software Development c++
Member Avatar for jlouang
0
352
Member Avatar for Emperor456

Hi Im creating a new online rpg game that is currently under construction. The game will be set up just like the well known runescape but set in the Ancient world! All the info you need to know is located here... [url]http://emperor462.proboards105.com/index.cgi[/url] But what i wanted to know is if …

Software Development gaming java
Member Avatar for Emperor456
0
113
Member Avatar for Dark_Omen

Hey does anybody know how to make window forms using openGL in c sharp. Or know of a tutorial online, i've looked but turned up nothing useful, just that csGL is a good library to use for openGL projects. Thanks

Software Development c# opengl
Member Avatar for Dark_Omen
0
562
Member Avatar for softwarecaz

Hello I have 3 frame, in each I have 3 option buttons, If the user enters option 1, it should make option 4 and option 7 not available If the user enters option 2, it should make option 5 and option 8 not available, but make rest of the option …

Software Development visual-basic
Member Avatar for Comatose
0
97
Member Avatar for mwo0002

Thanks to some people who has already given me some pointers and insights, I wrote down on paper the layout before I started putting them into code, which I eventuall did and they're in code now. I tried to run it and gave me a list of lots of errors. …

Software Development c++
Member Avatar for Lerner
0
124
Member Avatar for Ene Uran

I am fairly familiar with C, but new to Python. Does Python have something like the handy C conditional expression? For example: [code]// C conditional expression x = a ? b : c; // if a is true then x = b else x = c // here used to …

Software Development python
Member Avatar for Ene Uran
0
118
Member Avatar for Warden

I got a sirious problem . I need to build a little program , that will download a file from the internet and showing the download's progress on a progress bar or something . Now , a very good thing you can do for me ( since i am a …

Software Development visual-basic
Member Avatar for Comatose
0
152
Member Avatar for sandip.juit

hai, :cool: sandip :confused: needs your help, subroutine for the aray of 10 command buttons as chosen in calculator project which shall return the level values assigned to it :!:

Software Development visual-basic
Member Avatar for Comatose
0
81
Member Avatar for bg123

I'm trying to do a program that takes two vectors and computes the alternating sum, appends the vectors, checks whether two vectors have the same elements in some order, ignoring multiplicities, and removes duplicates. Any help would be appreciated. [CODE] #include <iostream> #include <vector> using namespace std; /* Functions on …

Software Development c c# c++
Member Avatar for Bench
0
178
Member Avatar for sub-zero

Hi, I'm writing a program and it saying their are two missing return statements . can u help me to find the two missing return statements ? :-| [PHP] import java.util.*; import java.io.*; public class DayOfWeek { static Scanner s = new Scanner(System.in); static public class Day { private String …

Software Development java
Member Avatar for sub-zero
0
72
Member Avatar for LEGACYONE_2006

I have the following program working. It takes an array of numbers and returns the index value of each number. However, what I want it to do is to get an integer from input from a user and return the index value of just that integer. If the integer is …

Software Development java
Member Avatar for SeekAnswers
0
87
Member Avatar for mcook228

I'm working on this program that implements the Horspool string matching algorithm. The program reads in a text file and searches for the pattern text provided in main.cpp. The StringMatcher class is supposed to return the index of the first letter of the pattern in the text and count the …

Software Development algorithm c++
Member Avatar for iamthwee
0
2K
Member Avatar for blademaster

Does anyone have any idea how I would code this I'm having some trouble coding it, I would appreciate it very much if you could provide a code in C++. Been trying ot figure out this for couple days but keep getting syntax errors for some reason. 1.) let the …

Software Development c c# c++
Member Avatar for blademaster
0
63
Member Avatar for YoTaMiX

Hello to you all , I am having a little trouble in C , working with Files. for some reason , it doesnt copy to output file the first letter and jumps over 3 digits of the last number in the file . whats wrong , i cant find it …

Software Development c
Member Avatar for Salem
0
295
Member Avatar for Coach_Nate

Sorry for the crummy subject, but I have a serious problem here. I'm trying to check myself as I code and I keep having issues with seeing "old" code. I'm putting together an applet for a class assignment, and I have been periodically trying to view my code (what it's …

Software Development ide java
Member Avatar for jwenting
0
107
Member Avatar for yaoyaolin

I'm in an entry level c++ class. My professor wants us to write a array project that keep a frequency count of each of the italic alphas, also keep a frequency count of other characters entered (numbers and symbols). The project output a frequency count of each italic alpha, and …

Software Development c++
Member Avatar for Lerner
0
91
Member Avatar for kaun

I download turbo c++,but I can`t use ther a SHIFT key :cry: ( I can`t do // or #)it just ignore shift. :sad:

Software Development c++
Member Avatar for Narue
0
715
Member Avatar for Dj Enjoi

ok, i kinda feel like an idiot asking this, but here it goes simple setup for example purposes.: [B]#include<iostream> #include<stdio.h> using namespace std; int main() { system("cd\") return 0; }[/B] ok, as you've prolly already noticed, the CD\ will return an error saying that there is an invalid terminator because …

Software Development c++
Member Avatar for iamthwee
0
108
Member Avatar for small_ticket

hi, I have a problem of concatenating 2 strings. 1 of the strings is defined in the code and the other one is asked from user. This small code must only concatenate these to strings but doesn't work... here is my code: [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct deneme …

Software Development c
Member Avatar for Narue
0
115
Member Avatar for jto

i have a *.dat file which is i am sending as attachment can any body help to convert this file in to text file or any other database format such as access /oracle etc

Software Development c++ file-system oracle
Member Avatar for Ancient Dragon
0
167
Member Avatar for jto

when i am using a data array and taking the character one by one in each array and inserting in to a table using codes but when i am getting inverted comma it is giving an error massage ' is any other method to convert text in database

Software Development visual-basic
Member Avatar for jto
0
150
Member Avatar for asnairwin

to start with c++, I got to know what is required to be added for starting c++ builder in a system where visual studio is installed

Software Development c++ visual-studio
Member Avatar for Narue
0
70
Member Avatar for j1979c

[B][COLOR=DarkRed]Hello all, Just want to know if you guys can recommend me some good links where I can learn how to make a robot with keyboard interactivity using OpenGL GLUT. Thanks in advance... :cool: [/COLOR][/B]

Software Development c opengl
Member Avatar for SpS
0
277
Member Avatar for crws416

HI all, I'm having trouble putting a GUI on an existing java server program i have. I have added a frame to the code but all it does so far is pop up, there is no interaction.. I've tried moving all of my functions accross but to no avail.. i …

Software Development gui java java-swing xml
Member Avatar for jwenting
0
111
Member Avatar for skalra63

one of my forms, when anything is done to it (opened saved etc) shows an error message. here is an image of the error message. anyone able to shed any light on this?

Software Development image visual-basic
Member Avatar for skalra63
0
66
Member Avatar for dp601

I have a question that i am having difficulty with. The question is to write a function that creates the following pattern given the height(number of rows)which must be even. Please help! * *** ***** ******* ********* ********* ******* ***** *** * Here is the code i have so far …

Software Development c++
Member Avatar for SpS
0
137
Member Avatar for uwontlose

I have a mm-a940 samsung is there any thing I can do to tweak this phone for better

Software Development java
Member Avatar for uwontlose
0
89
Member Avatar for itstudent123

please can you help me in this BankAccount code i do it but the teacher remove some my code and ask me when i see complete i complete but i when i do it i have some error can you help me i will post my code the client code: …

Software Development client-server first-post java
Member Avatar for Phaelax
0
133
Member Avatar for BirdByte

I'm unable to format the date fields when I export from Access 2000. I'm trying to generate a report that has to be comma delimited, strings in quotations, and date as mm/dd/yyyy. Everything looks the way it should until I export. I get mm/dd/yyyy 0:00:00 everytime. There are several tables …

Software Development visual-basic
Member Avatar for Comatose
0
121
Member Avatar for gminis3

Im a beginner in C language and I have a problem with strings in array mostly. Question : User is required to input ID number, which consists of 7 characters. First 2 characters have to be Alphabets and the last 5 will be numbers. Example, AB12345 Task : Error checking …

Software Development c
Member Avatar for Lerner
0
194
Member Avatar for kevjeffers

I need help. Here is the homework problem: Write the definitions of the functions to implement the operators defined for the class dateType. Here's my code: Header: [CODE]#ifndef dateSType_H #define dateSType_H //dateType name changed to dateSType class dateSType { public: // ************ Mutators follow ************ void setMM(int month); //Function to …

Software Development c++ first-post visual-studio
Member Avatar for kevjeffers
0
107
Member Avatar for Foda_Bett

Hi y'all! I found this forum through google and I was hoping that I could get some help!! I've been assigneda rather odd assignment by my C++ teacher. I have a 2d array of names (names[17][20]) which has to be sorted alphabetically via selection sort, we can not use pointers. …

Software Development c++ display google
Member Avatar for Narue
0
2K
Member Avatar for ZenaNqld

New Problem... it keeps outputting both under and over par grrrrrrrrrr whats wrong with my if statement??!! [code] if (StrokeCount == 5 ) { cout<< "You are on Par Way To Go!!"<<endl; cout << endl; } else if (StrokeCount < 5) { Par = 5%StrokeCount; cout <<" You are "<< …

Software Development c++
Member Avatar for WolfPack
0
89
Member Avatar for k_en

I am quite confuse between Visual Basic 6 & VB.net. Can someone please explain what is the different between these 2? I have some comment from my friend saying it is better to learn VB.net than VB since i am a beginner. Is the VB refer to visual basic 6 …

Software Development vb.net visual-basic
Member Avatar for zmind
0
163
Member Avatar for sarahjane

Hi, supposed to implement a game where the queen(counter) is supposed to travel over all 64 squares in 16 moves and it must highlight or mark squares allready passed over. Been at this for last two nights and begining to lose patience any help would be great, thanks. Code is …

Software Development image java
Member Avatar for Phaelax
0
168
Member Avatar for ZenaNqld

Ok heres the problem ( and no laughing at my code!! ) I need it to change the value of the strokedistance to the holedistance when the strokedistance makes the holedistance less than zero. Any suggestions, ideas, tips, and it doesnt have to be specific to my problem maybe just …

Software Development c++ java-swing
Member Avatar for ZenaNqld
0
148
Member Avatar for chelo77

Need help with a function that reads from a text file usins fscanf function. example say there is 20 stings that are 60 chars long on their own individual line. Does fscanf() read the whole text file or does it read only up to the carriage return. If it doesn't …

Software Development c file-system
Member Avatar for Ancient Dragon
0
156
Member Avatar for Lunaticrr

Me again. Another stump. This time I have to recieve two inputs from the user and perform a few math operations using both those two inputs. Meaning I have [B]String a, b;[/B] for my two user inputs. Is it possible to get all 4 of my math operations, addition, aubtraction, …

Software Development java
Member Avatar for psodhi
0
168
Member Avatar for comwizz

Hello everyone, I am having some problem in reading the data inputted in a file correctly using linked lists. I think this might be because of having pointer next of type password class. Thanks, comwizz. The code is posted below. You may directly see the section if (reply==3) as that …

Software Development c++ file-system ios
Member Avatar for comwizz
0
159
Member Avatar for butterflyTee

[CODE]# tpm.py # Take two inputs, age and years of citizenship, and returns eligibility for # senator and representative. from graphics import * def main(): win = GraphWin('Eligibility' , 400,400) win.setCoords(0.0,0.0, 4.0, 4.0) Text(Point(1, 3.0), 'Age').draw(win) Text(Point(1, 2.0), 'Years Citizen').draw(win) agebox = Entry(Point(2, 3.0), 10) agebox.draw(win) citizenshipbox = Entry(Point(2, 2.0), …

Software Development python
Member Avatar for butterflyTee
0
115
Member Avatar for Podge

I have been working with the new Studio 2005. I am creating several apps, one with multiple documents and some others that are more dialog box type apps. I have done some MFC in studio 6 (C++) but I would like to understand when it is better to use MFC, …

Software Development c++
Member Avatar for eggsy84
0
320
Member Avatar for Saint48198

I'm trying to pass the valuee from the arrays for age, sex, and wTime to the cal_Fitness_Level function, but I can't seem to get it right. I either get the same level for everyone or garbage. code and data follows. [code]#include <fstream> #include <string> #include <iomanip> #include <iostream> using namespace …

Software Development c++ file-stream
Member Avatar for Saint48198
0
228
Member Avatar for Acidburn

Hell ive written some code : [php] #include <iostream> #include <string> using namespace std; int main() { string a; string b; a = "ABCDEF"; b = "$"; a +=b; cout << a; if(a.find == 1 , "$") cout << "FOUND" << endl; else cout << "NOTFOUND" << endl; if(b.find == …

Software Development c++
Member Avatar for Bench
0
157
Member Avatar for iamboredguy

I have a code in which I want to swap an element in a matrix with another. User inputs the row, column no of the elements to be swapped. But the code doesn't seem to work. Can somebody help? PS: The swapping starts in the snigleplayer() function. [CODE]#include <stdio.h> #include …

Software Development c
Member Avatar for iamboredguy
0
164
Member Avatar for newgurl

hello, Thanks to previous help which has gotten me this far. However, my lovely program, although looks great in theory doesnt do what its supposed to do. When I type in 3 words, it doesnt put them in order as it should. Can someone point out to me where I …

Software Development c++
Member Avatar for WolfPack
0
308
Member Avatar for bg123

I am having trouble understanding classes, I'm new at this and have not had any problems with c++ until now. This is what I have so far. I was supplied the driver and cannot make any changes to it. Any help would be appreciated greatly. Thanks. [CODE]#include <iostream> using namespace …

Software Development c++
Member Avatar for bg123
0
240
Member Avatar for ultirian

Ok so I have a couple of files within a C program diffrent files for diffrent things etc. What I want to know is, Can I open all the files at the beginning of the program (in main) and close it when the program exits or Should I write the …

Software Development c file-system
Member Avatar for dwks
0
93
Member Avatar for johnhl007

Ok i am having a little trouble trying to figure out how to pull the x-cordinate from p1 and p2 so that i can use it later in the code to build a door. # This is a program to build a house in five clicks from graphics import * …

Software Development python
Member Avatar for Scagli3tti
0
470
Member Avatar for novadon

Hey there, This is my first posting, as for once in my life I need extreme help with programming. I can work C with a little magic, just assembler is just [B]NOT [/B] my cup of tea. I was hoping that my attempts will show through, yet there are numerous …

Software Development assembly storage
Member Avatar for novadon
0
166

The End.