132,726 Archived Topics
Remove Filter ![]() | |
Hey everyone, I'm working on function that will take in a char array, prompt the user to input a string, and then return that string to the function. Below is what I've been working on and yes, I know it is not the right syntax, but I'm hoping someone could … Software Development c | |
My compiler says my code isnt standard c++? [code] #include <iostream.h> //Decimal To Binary Conversion //James Duncan Bennet 2007 james.bennet1@ntlworld.com using namespace std; void binarynum(int); int main(void) { int intnum; int choice = 0; cout << endl << "Decimal To Binary Conversion" << endl; cout << endl << "Please enter … Software Development c++ | |
Hi, I need to build an MS Access database and include abstracts and articles. I then need to retrieve this information using Visual Basic. I would like to design it so that when someone types in a word in a search facility then relevant info would appear just like in … Software Development database-design google visual-basic | |
if i wanna read an input file with an equation in it, for example 2+3, and need to give the result of this input file, how should i write this code?:?: Software Development pascal | |
i am using vb6.0 and crystal report11 and MS ACCESS database how to create a crystal report at run time from a vb form i dont have any idea regarding this please give some suggestions or code would be very helpful to me Software Development visual-basic | |
Ok, my name is Paul and i am new to this forum. I need some help and thought i can try my luck here. I need to write a program to do the following: 1. Need to write a shell script called fileutils.sh that will do: Accept one variable on … Software Development shell-scripting | |
Hi all I need to read a program in c/c++ in linux which shall read rtf file text and then informs me the information about the fonts properties of the text in rtf file. Can anyone tell me how to do that.. does any library exists for this that I … | |
I've tried to clean down this code so that it will demonstrate my problem but contains little else. Just enough to make a window. This code will compile on "BCC32" or "cl". I can't figure out why I get an "Invalid handle error" when trying to create a DIB. I'm … Software Development c++ | |
Hi, i have to programm this in c++ can anyone please help me and give me the code for this Material Weight (kg / dm3) Price (euro / dm3) Marbel 2,7 20 Stone 2,6 15 Tree 0,6 7 these three item have diffrent price and diffrent weight. Programming based on … Software Development c++ | |
Hey guys, Here's my code: [code=c++]#include <iostream> using namespace std ; template<class T> class Pair { public: Pair ( ) ; Pair (T v1 , T v2 ) ; void setFirst(T newV ) ; void setSecond(T newV ) ; T getFirst() const ; T getSecond() const ; private: T first … Software Development c++ | |
I got a list of items to program in Visual C++. I could write a linked list from scratch but I want to do something special and best. I am thinking about a hash table. What is best, linked lists or hash tables? I am not too experienced with the … Software Development c++ linked-list storage | |
i have a question is there any way that i can add up all the value in a multiplication table i create or parscal triangle i created? if yes i need to find out how to add up all values in a multiplication table. i can't figure out the logic … Software Development c++ | |
[CODE] #include <iostream> #include <string> #include <cstdlib> using namespace std; int create_matrix(int* matrix[], int row, int column, int size); int create_pascals(int a, int b); int main() { //variable declaration int size; int* row = &size; int* column = &size; //output to the screen cout << " Please enter the size … | |
Hi there, I'm trying to write a program to accept some details about mp3 files, and store them in an array. I am also hoping to process some of the parameters of each entry to the array. I am trying to create an object of type "Track", and then define … Software Development c++ | |
Hello there, first time poster, many time lurker. I'm currently working on an assignment for my CS class which has me creating a small program in which i create an array, call several functions to read intergers into the array, display the array, bur the part which is tripping me … Software Development c++ | |
Hi Guys&Gals, Just wondering, when using separate compilation, should the class definition and method definition(s) for a derived class be put in separate header and source files from the base class? Thanks, Ger. Software Development c++ | |
Hi This may seem as a trivial question, but I'm new to VB so please bear with me. I'm writing a form to control one worksheet as a database. On PC, I used the ControlSource property of every textbox to bind it to a field in a record. [B]On Mac, … Software Development visual-basic | |
Hi, I have an interesting question. I have this C# Application and I need to generate a report. I want to be able to print the report or save it to a file. Unfortunately I don't want it to depend on a third party software ( Crystal Reports, MS Word, … | |
I have a file first line contains three int's. (These are the vari's I assigned) numStudents numScores total --I AM CONFUSED HERE- { in >> numStudents >> numScores >> total; } - Here I am mentally not getting it. I need to read the line in the file as a … Software Development c++ | |
Hi everyone, this is my first post and im just plain confused on how to get what i need here. in the past ive only had single lines of data and just used an input >> char; but now i have this line of code in a txt file, with … Software Development c++ | |
Hello everyone. Thank you again for all the help... At this point, my eyes are bleeding on this project.....My code runs and does everything this card memory matching game is supposed to do, except I've tried to no avail to "shuffle" the cards between iterations (i suspect). I have read … Software Development c++ | |
First off, Thanks again for all your guys help :) I worked on a project where the user was supposed to enter numbers one at a time. After each number is entered, the program is to display the number of inputs, the total numbers entered, the average, the maximum and … Software Development vb.net | |
I'm supposed to be taking all the averages of the students grades and create an overall average...but it's not working import java.io.*; import java.util.*; public class Grade { public static void main(String[] args) throws IOException { String []name = new String[50]; int num1, num2, num3; Scanner inFile = new Scanner(new … Software Development java | |
I am working on a problem where I am trying to find a palindrome using a stack and queue. Below is the code that I am using to try and determine if a string is a palindrome or not. Right now I am having problems. It seems as though this … | |
![]() | I am trying to use a for loop to print the contents of a single dimensional array. I am trying to use the loop counter in the 'cout' statement to provide a heading for the contents of each array element. code is below. I am using MS Visual Studio to … Software Development c++ visual-studio ![]() |
i want 2 know the logic of adding 2 matrixes in c++.... pls tell me if any extra header files 2 be used? Software Development c++ | |
I need to do a stack of strings but im getting problems can anyone help heres what I have so far: [code=cpp] #include <iostream> #include <string> using namespace std; class StringStack { private: string *stackArray; int stackVal; int top; public: StringStack(string); ~StringStack(); void push(string); void pop(string &); bool isFull(); bool … Software Development c++ | |
[B][I][COLOR="Red"]good day![/COLOR][/I][/B] we were given a project. it is a program for an airline company. in this program, [B]the user can view vacant seats in the airplane[/B] then [B]he can make a reservation in any of those seats [/B]or [B]cancel a reservation[/B] he had made. he can also[B] view the … Software Development c | |
[B] How to show the corresponding nodes of a treeView in a listView? Is it simply by comparing the node->Text and the items->Text? And how to delete the corresponding item? Or the way is complicated to find out that these 2 items are corresponding? Anyway, what's the different between items … | |
I am designing an ftp client prompt in C (unix environment). At this point, I have an infinite loop with an fprintf of the prompt on stdout and an fgets for reading user input. I need help with the structure of my program. How do I implement this? I have … | |
I'm trying to practice writing a program which creates an object and does various tasks. So far the tasks I want to program to do are to take a hypothetical triangle (it doesn't draw a literal triangle on the screen; it just shows the number of triangles there, the area … Software Development java java-swing | |
Hi, I need some help with average calculation. I have a homework where i must find average value, but this one is quite tricky, atleast for me. usualy it goes like that 1+2 average is 1,5. I have to do it like this: If i input 15 then program should … Software Development c++ | |
the below program is supposed to read the string you input and count the amount of times that the letter 'a' appears in it. if it doesn't find the letter 'a', it's supposed to tell you that there aren't enough arguments (which i may change to say that "there aren't … Software Development java | |
I'm having trouble with where to begin with an assignment. I'm hoping someone here will have a little more knowledge and be able to explain it to me. Just a point in the right direction please!! Here's the assignment: [B] Create a Class that reads a file completely into a … | |
Hi, I have a text file that needs to be exported to a sql server table. the text file is something similar to this, ------------- 01.08.2007 06:00 go to work 12:00 lunch 17:00 go home 19:00 dinner 21:00 go to bed 09:00 go to leisure centre -------------- I need to … Software Development vb.net | |
Is it possible to display report in Visual Basic which is created in Microsoft Access? We developed a databasep applicaton that uses Access database. but one of the cross tab reports is difficult to develp in VB , but could develop in Access. Now I want a way to call … Software Development display microsoft microsoft-access visual-basic | |
:?: I am creating a project in [B][COLOR="Red"]VB.NET2005 [/COLOR][/B]for reading and writing xml app.config. but how i want to display the xml data in a message box. I have used the following code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim astrology_value As String Dim … | |
I am receiving three c2228 errors when I try to compile my program. *edit* I am dealing with rectangular prisms in this program.*edit* Here is my code: [code] #include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; class Rect { private: double length; double width; double hight; public: Rect(double l … Software Development c++ | |
I have gotten a problem compiling. the program gives me an LNK2001 error so there seems to be a problem with my function but i cant seem to find it..i am posting part of the function that calls and the original function being called void disp() time_info start, end; time_increment(hours_count,minute_count,day_count,month_count,year_count,start,end); … Software Development c++ | |
is there a way to convert a binary number to hex. im sure there may be a library that already does it for you ? Software Development c++ | |
Whats up guys. I am new to programming and just started a week ago. I am doing this just for fun. I have a problem with a text file that i am trying to read in. I am able to read in the text file, i just need to know … Software Development c++ file-system | |
i don't know how to fix this error can any one help me here's my code: [code=c++] StringStack::StringStack(string value) { stackArray = new string[value]; stackVal = value; top = -1; } [/code] and the erro says: error C2440: 'initializing;: cannot convert from 'std::string; to size_t' what does this mean and … Software Development c++ | |
hey guys, im having a hard time making this switch function catch letters and return the error message. [CODE]int main() { int choice; do { /* THE DISPLAY MENU*/ printf("================================================\n\n"); printf("Welcome to Walther's Tic Tac Toe Game.\n\n"); printf("what would you like to do?\n\n"); printf("1 Play Tic Tac Toe\n\n"); printf("2 Quit\n\n"); … Software Development c | |
I'm working on a program for school and the code I have so far is: [code] public class Assign6{ public static void main(String[] args){ int bill = (int) (Double.parseDouble(args[0])*100); Change aSmall = new Change(bill); System.out.println("# of Fives: " + aSmall.numOfCoins(500) ); System.out.println("# of Ones: " + aSmall.numOfCoins(100) ); System.out.println("# of … Software Development java | |
[b]WHERE DO I START!?[/b] [CODE] Write a mygrep program that accepts arguments: mygrep [-i] [-n] match file1 [file2] [file3] ... [filen] A grep program will look for occurences of the "match" string in the files file1, file2, ... filen. Whenever the "match" string is found, the line where it is … Software Development c++ | |
I'm working on a school assignment right now, ( populate an array of 50 elements with random integers ranging from 50-100, find mean, mode, standard deviation and the number of elements that fall within the standard deviation) I've written working code for everything except for the function that finds the … Software Development c++ | |
Hi all, Suppose i have one string as "A:B:C", where ":" is the delimiter . now i want to seperate this A, B, and C and save them in 3 different variables. How can i implement this thru C++ code. Plz let me know. Thanks in advance. Software Development c++ | |
I face the problems of don't know how to convert the number from any base to any base.I just can get the output by converting the number from base 10 to any base.So,panic.:( :'( Who can help me,thanks. Software Development java | |
Hi everyone, I'm a relative beginner in python looking for a bit of help on an error I get when running the script posted below. It is used to split data files in text mode. It runs through a list of files (using the glob module) and creates a number … Software Development open-source python |
The End.