132,729 Archived Topics
Remove Filter ![]() | |
hi, please helpe me my code include one problem and i dont know how to slovet the heder [ICODE]#ifndef COURSE_H_ #define COURSE_H_ #include <iostream> using namespace std; #include<string> using namespace std; class Course { private: string id; int NumberOfCredits; static string serialId; public: Course(string corsename) { } void print() { … Software Development c++ | |
Hello, this is my first post so be nice :) After hours of trolling various forums and websites along with a few books i've decided to ask for help. I've put together the whole of the program which is to carry out a few simple processes using inputted data and … Software Development c++ | |
I need to make modifications to [B]BIOS[/B] code which runs at [U]PowerUp[/U] or [U]Boot[/U] time and I need to access more than the lower 1,048,576 bytes of memory. Is it possible to switch into [B]Protected Mode[/B] at this time in order to access more memory? If so, how? What is … Software Development assembly | |
Hi there, been working on a small program that will loop a function which adds two integers until the user enters 00, but can't seem to work out the finer details. A little newer to C++, don't need a complete answer but any advice would be much appreciated [code=c++] #include<iostream> … Software Development c++ visual-studio | |
hi friends; i am trying to build a class using multimap, the idea is something like this: I have say N no of particles and each particle has fix position in 3d space something like this: Coordinate: Particle level (1,2,3) ----------------> 1 (1,2,3) ----------------> 7 (1,0,0) ----------------> 2 (0,0,0) ----------------> … | |
I am importing object files and making tables from the for a project due tommorow night. The function works fine when I use it the first time i.e. input pro1.txt, but when I call the function again and input pro2.txt as the file name my program crashes. All of the … Software Development c++ | |
Here are my parameters to follow: Every Account at the bank keeps track of a balance. In addition, each Account allows users to deposit and withdraw money. Accounts are subdivided into: SavingsAccount. This type of account has an interest rate associated with it. This rate is used at the end … Software Development gui | |
I realize that the response time of my GUI is extremely slow! I have three combo boxes - I want the user to select a template from one drop down list, which will populate the second drop down list with customers related to that template. When a customer is selected, … | |
I'm having problems with if statements present value (PV) should be no larger than $10000 interest rate is not higher than 10 and no less than 2 and number of years at least 3 I've tried the if statements with error messageboxs but I was getting confused with all the … Software Development vb.net | |
When I run the code, what's supposed to happen is that when I input three numbers separated by spaces (e.g. "[i][u]23 4 5 <enter>[/u][/i]"), it outputs "[b]no more input\n\nReady\n[/b]", when I input four or more numbers (e.g. "[i][u]23 4 5 34 65 <enter>[/u][/i]"), it outputs "[b]is more input\n\nReady\n[/b]": [code] #include … Software Development c++ | |
I have the following in a text file How old are you?:I am 1 year old. Basically, the ":" is the delimiter. "How old are you?" is the question and "I am 1 year old" is what i will reply when i get the question . There is basically 2 … Software Development c | |
Hi, i'm new to python. I'm trying to input a stack of (prefix.tif) images, modify them to png files and output the new files as prefix.png. One code that i was told to use allows me to modify the input name by adding something to the beginning of the name. … Software Development python | |
How do I get a textbox to automatically update with information when I select an item from a combobox? [icode] txtCustID.Text = Custds.Tables(0).Rows(cboCustomer.SelectedIndex).Item("custno")[/icode] is what I came up with, and it populates properly when the combobox is first loaded up, but if I select another item, the text boxes don't … Software Development vb.net | |
Hi all I've only been learning C for 6 weeks and have a project to convert arabic numbers to roman numerals. Part of the prgram must do this in batch mode. i.e. read integers from .txt file, convert and write numerals back to .txt file. It seems to be working … Software Development c file-stream | |
hi everyone..i really need help as fast as possible..i have 14 errors in the program..it is a linked list implementation for reversing a stack using recursion.. here is the code: [CODE]#include <iostream> using std::cin; using std::cout; using std::endl; #include<cstdlib> #include <fstream> using std::ifstream; using std::ofstream; #include"ItemType.h" using namespace std; struct … Software Development c++ linked-list | |
OK so Christmas time is here again and i am thinking about computer controlling my Christmas lights. I understand the easiest way to do so is thru the parallel port. I also understand that this is possible thru c++. I have the dll fill needed but dont understand the code … Software Development c++ | |
Another problem I am looking into is the following: How does one use a command button to run private sub's (again) or (at all)? For instance if a website isn't available at the exact moment that it is being checked for certain information on it. I have it set to … Software Development visual-basic | |
Ok, Im not trying to be evil or anything but is there anyway I could use C++ to open a website in a window, then record what the user types? So the website is google, and some random guy decides to search up dogs:twisted: , dogs would be recorded some … Software Development c++ | |
I have a Person Class, binarySearch needs to be performed on surnames. I need help with binarySearch algorithm. This is what I have so far: public class Person implements Comparable { private String firstName; private String lastName; public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } … | |
Well, im just in the learning process of c++ cant seam to make my loop work with 2 simpel choises :( #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; using std::boolalpha; int main() { int start; char choise; char y; y=1; char n; n=0; cout << "whant to run … Software Development c++ | |
Hi guys! I wrote program, which read data from file(you can modify this file) and than it paints in to JPanel containing Canvas.But it doesn't work. [COLOR="Red"][B]class MainWindow:[/B][/COLOR] [code] package my; import my.MyCanvas; import my.Rectangle; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; import katka.Circle; import … Software Development file-system java java-swing | |
Dear Experts In our application the values that are sent from FRONT end( Java) are stored in a C++ Structure on Unix box and then a remote procedure call is made . To store the values that are coming from front end , Im allocating the memory using operator new … Software Development c++ data-structure unix | |
Hi all; i dont know how to access data stored in C: Drive (folders) where i want to retrieve this data and put it into a TreeNodes please i need help quickly thanks in advance yours; Eng.Basma Ahmed, Symbian Developer, ASGATech Company, Cairo. Software Development | |
Okay, i have two classes. One needs to access (public) methods within the other . If i declare [code]ClassB objectName = new ClassB(); [/code] in one method of class A , then use objectName.methodname() in that method then it works fine. Butif i then try and call objectName.methodname() from another … Software Development java | |
I need to write a program that asks the user to enter a string and then ask the user to enter a character. The following steps each need to have separate functions... • Check the validity of the character • The program should display the index number of the character … Software Development c++ | |
Hello, everybody. first, look at the following code: [CODE]#include <iostream> 1 using std::cout; 2 using std::endl; 3 using std::cin; 4 5 double* treble(double); 6 7 int main(void) 8 { 9 double num = 5.0; 10 double* ptr = 0; 11 ptr = treble(num); 12 cout << endl 13 << "Three … Software Development c++ | |
Hi I am new to C++ Can anyone please tell me how to refer .lib files in C++ Regards Karan | Software Development c++ | |
Hey I am trying to teach myself C++ and i am having trouble with a measurement converter I am pretty sure my problem is in the line [CODE]Yards = Meters * 1.094;[/CODE] but i don't know how else to write it, this is my code: [CODE]#include <iostream> namespace std; int … Software Development c++ | |
Hi friends, I am Ramesh. I am a B.E. Graduate. Currently i am doing "ATTENDANCE AUTOMATION SYSTEM ", mini project in VB. I am supposed to generate a new access sheet(i am using MS ACCESS as my back end tool). I tried my level best, but i can't. FRIEND IF … Software Development visual-basic | |
how can I select which data I want on a report from code in vb.net? I've been trying to use a dataset but that isnt working. | |
[B]HEADER..[/B] [ICODE]#include <string> using std::string; class Blackjack { public: Blackjack(string); void Shuffle(); void Intro(string); void InitDeck(Card deck[],int numCards); void PrintCard(int); // void Card(int); private: int deck[52]; //deck of 52 cards. }; [/ICODE] [B]BODY[/B] [ICODE]#include <iostream> #include <fstream> #include <cctype> #include <cstdlib> #include <ctime> using namespace std; const int NUM_CARDS = … Software Development c++ | |
hello., in a few examples i noticed that pointers are declared in functions parameter list. ex [CODE] #include <stdio.h> void SwapEm (char *p_grade1, char *p_grade2); int main () { char grade1= 'D', grade2 = 'A'; printf ("At the beginning grade1 is %c and grade2 is %c\n", grade1, grade2); SwapEm (&grade1, … Software Development c | |
Hey I have this code: [CODE] void menu() { char opt do { system ("cls"); printf ("1 - Option 1"); printf ("2 - Option 2"); printf ("3 - Option 3"); [B]scanf ("%c",&opt);[/B] [B]}while ((opt!="1") && (opt!="2") && (opt!="3"));[/B] [/CODE] The lines in bold are the ones Im not sure about. … Software Development c | |
[B]HEADER FILE:[/B] [ICODE]#include <string> using std::string; class Blackjack { public: Blackjack(string); void Shuffle(); void Intro(string); void InitDeck(); void PrintCard(int); // void Card(int); private: int deck[52]; //deck of 52 cards. }; [/ICODE] [B]BODY PROGRAM.[/B] [ICODE]#include <iostream> #include <fstream> #include <cctype> #include <cstdlib> #include <ctime> using namespace std; #include "bj.h" Blackjack::Blackjack(string name) … | |
Some languages like C# create an Auth object to authenticate themselves on a soap server. for example [CODE] cpLatestBrief.authValue = new auth(); cpLatestBrief.authValue.username = "username"; // your aql username cpLatestBrief.authValue.password = "password"; // your aql password [/CODE] how can you do this with python? Software Development python | |
Hi, I'm using fgets() to read lines of text file and display them. The fgets() is in an infinite loop. The problem occurs when I remove lines from text file while program is running. The lines count is correct, but the program display the old content of the file up … Software Development c | |
ok, once again, I'm back...after this program I don't plan to write anymore...here's the task... Program # 1: Write a program that can decrypt the following string Ukjv!lt#xkz#DVT#sxmht1 Each character must be decrypted by applying the decryption algorithm to its ASCII value. The decryption algorithm is: • if array index … | |
Hi all i need one help. i have a text file something like this date time employee name Department id Employee id Jan 2007 12 pm abc 001 676666 ''''' ''''''''' '''''' '''''''''' ''''''''''''' ''''''''''''' '''''' '''''''''' '''''''''' '''''''''' Feb 2007 9am xyz 005 434367 all are tab delimited and … Software Development vb.net | |
Hi! I need help with a memory game. I dont know how to do when I want the users choice to appear. The function guessing. I want the user to first write e.g. A1 and then B2. and the doldmatris() is the one with the words. Then the start function … Software Development python | |
As of now I have the below: [code=C++]#ifndef RUNNER_H_ #define RUNNER_H_ #include "Maze.h" #include <QtGui> class Runner{ public: Runner(QColor c); int runnerSize; void setLocation(int,int); void setMaze(Maze); virtual void redraw(QPainter * painter) = 0; virtual ~Runner(); protected: int rXcoor; int rycoor; Maze * rMazePanel; QColor rColor; private: }; #endif /*RUNNER_H_*/[/code] [code=C++]#ifndef … Software Development c++ | |
i have a problem with a mikhail gorbachev trivia game, the number at the end where it tells you how many questions you got right is always wrong but i can't tell why. also how can i reset the radio buttons after each question here is the code [code]#pragma once … | |
i have customer details in my sql database. then i have a textbox, combobox & button. if i type customer name in a textbox i should get his id in combobox. if there is more than one customer with same name that id also should fill in combobox. i need … | |
hi, just added an mdi form into a tabpage with the following code: [CODE]frm_ASN f_New = new frm_ASN(0); f_New.Dock = DockStyle.Fill; f_New.FormBorderStyle = FormBorderStyle.None; f_New.MdiParent = this; this.components = new System.ComponentModel.Container(); ExtremeTabPage tab = new ExtremeTabPage(); tab.Text = f_New.Text; tab.Name = f_New.Name; tab.Controls.Add(f_New); this.Text = "[" + f_New.Text + "]"; … Software Development perl | |
hi, I'm using this bubble sort to sort the elements in my array right now, but I need something faster. [code=cplusplus] bSorted = false; while(!bSorted) { bSorted = true; for(int e = a_count - 2; e >= a_lbound; e--) { if(a_edges[e + 1].B < a_edges[e].B) { bSorted = false; tmpEdge … Software Development c++ | |
Hello, the program I have creates a database and lets you update/add/delete any information you want about hardware items. My problem is.. after I exit the program, all the data is lost in the binary file. I need to keep a database in a binary file and update it everytime … Software Development c display file-system | |
I'm trying to get all the links from a web page. So far I have the page source stored in a string. I have done similar things like this in Java, using a string tokenizer. I've looked around trying to find something like this for C# but apparently it doesn't … Software Development | |
hello., ny1 knows what is the data type for displaying hex numbers? i know that specifier is %x, but dont know what data type it is ex: 0xBCD thanx! Software Development c | |
I the compiler is giving me the following error on the constructor of graph however it has been defined in the public section. Error [CODE]/tmp/ccku0faq.o: In function `Graph::Graph()': Main.cpp:(.text._ZN5GraphC1Ev[Graph::Graph()]+0x39): undefined reference to `AdjacencyMatrix::AdjacencyMatrix()' collect2: ld returned 1 exit status [/CODE] Here is my code [CODE=CPP]class Graph { private: vector<Node*> nodeList;//list … Software Development c++ | |
Hi, I have a windows service running in my own service framework. Currently, the service can be stopped by using SCM API by sending SERVICE_CONTROL_STOP control code. What I want to do is that the service will ignore the control code unless there is a registry key set (that will … Software Development api c++ windows-api | |
Ive been trying for a while to make a calculator in Microsoft Visual Web Developer 2008 Express but cant figure it out or come close. I have all the buttons set up and ID as Button1, Button2,etc. Same with the add,minus,divide,multiply buttons. The tricky part is theres 4 labels and … Software Development vb.net |
The End.