132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 … ![]() | |
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 … | |
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 | |
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 … | |
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++ | |
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++ | |
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++ ![]() | |
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 | |
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 | |
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 | |
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 | |
[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] | |
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 | |
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 | |
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++ | |
I have a mm-a940 samsung is there any thing I can do to tweak this phone for better Software Development java | |
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 | |
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 | |
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 | |
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 | |
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. … | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
[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 | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 … |
The End.