199,114 Archived Topics
Remove Filter ![]() | |
I'm writing a program wich is using an array -> startpoint[4] this array will be later filled by values from an other array. this is not the problem! the problem begins here: I have a class: computerPlayer.cpp with a method: getStartpoint() [code=cpp] int *startPoint[4]; // global variable int* computerPlayer::getStartpoint(){ int … | |
Hello, I need to test an array of chars to see if they are numbers. I am trying isdigit() but that is not working. Does anyone know how I can do this? Here is the code, it is in three seperate files. I try to test the char in the … | |
I'm trying to make my first base class header file and an inherited class from it. I've compared the syntax with at least two other examples that we did in class and they match, yet I'm getting a lot of errors when I try to compile. This is the code … | |
I am currently doing classes, but I am unable to print out my cout statements in the "elmo.modifyALL" function. I can get the other stuff to print correctly so far. This is my first time doing this kind of program, so I do not understand why I can't get cout … | |
hello, I'm trying to import data from external file (it's a text file with fractions separated by space) and manipulate that data as a floating point. I've tried using 'fget' and 'getstring' and 'readline' and I'm getting an error that says that I'm trying to make a data out of … | |
Hi all! I'm trying to write a "last login" message in my login script. The plan is to store dates in the database with UTC_TIMESTAMP and then show them back to the user with CONVERT_TZ, using each user's specified timezone (they have set that on registration). However here lies the … | |
Hi there people i have a problem i have been asked to Accept characters from a data file. Convert all the characters to upper case,Save the characters to a new data file which i have done. But for some reason im stuck on trying to get the following to work: … | |
I have an assignment and I'm stuck. The program is supposed to read in names and test scores from a data file, compute the average, and display the letter grade. This is the code that the teacher gave us in class: [CODE=cplusplus] #include <iostream> #include <cstring> #include <iomanip> // // … | |
I have searched many a site to find an answer to this question, so here goes: I'm doing a hangman program that needs to pull different quotes from a text file named quotes.txt. Each quote is on a different line. I have the entire hangman program written (I can post … | |
WinXP Home, sp2: I am going thru the tutorial @ [url]http://zetcode.com/wxpython/firststeps/[/url] The exercises are great. BUT I am still running with 1) dle.exe, 2) python shell, and 3) an idle text input screen (Centre.py). [ C:\Program Files\Python26\Lib\idlelib\vm ] When I click on PythonW.exe it does nothing. I tried the directions … | |
I'm having trouble with a program with class. When it runs, on the screen and on the file it shows one output, the last one in the input file. It USED to work, untill I tried to get fancy and add some other code... that will be below the main … | |
I am new to vb6. I am trying to automatically click a button on a web age. I keep getting the run-time error 91, object variable or With block variable not set at the line doc.All("btnAcknowledge").Click. I have also set the HTML object library. Can I get some advice. Here … | |
![]() | Hi everybody. I have a clothes and shoes Template with for example created buttons : "numericstepper" and "size" for shoes. I used "-visible=false;" and that is very good. But now, I wish to see these buttons "numericstepper" and "size in the shoes item and never in "bags" or "clothes" items..... … ![]() |
Hello there! How can I convert an INT value into a string? I used the itoa function successfully in Windows: [code=c]itoa(the_int_number, the_string, 10);[/code] It worked fine in Windows (DevC++) but Linux did not recognize this function. Does anyone know another way of converting INT into char[n] in C that Linux … | |
Can somebody please tell me what I'm doing wrong? I am creating a TCPClinet. I have 2 errors and both of them come back to this line. [code] connectSocket.Send(System.Text.Encoding.UTF8.GetBytes(sendText)); [/code] The errors are: 1. The best overloaded method match for 'System.Text.Encoding.GetBytes(char[])' has some invalid arguments 2. Argument '1': cannot convert … | |
All this function is supposed to do is count each node in the queue and return the number of nodes. [code=c++] template<class SomeType> int TemplateQ<SomeType>::Size() const { int numberOfChars = 0; QueueNode<SomeType>* countPtr; if(IsEmpty) return 0; while(countPtr != rearPtr) { countPtr = frontPtr->data; numberOfChars ++; } } [/code] I am … | |
Hi there I would like VB6 procedure to execute the TAB key as soon as the maximum length data is entered on the text box without having to press the TAB key. Text box has a maximum length of 5 characters. What code do I use to automatically move the … | |
I been trying to find with instruction was executed in this waveform and I narrowed down the choices to XRL A, @R0 or ORL 04H, A here is the picture [url]http://img511.imageshack.us/img511/959/97955260mp4.jpg[/url] I choice those two out of the rest because the write and the WR did change can I get … | |
I have to create a temperature conversion project using a method and driver class...... i did it b4 put only as one file , i started the driver class but when i compile i get a couple errors; the errors i get are: Degree.java:30: illegal start of expression public double … | |
Hello, I just started using Netbeans and, well, found it quite interesting. I've been working with Java but not fully with JFrames and stuff like that. What I want to know from anyone who has worked with Netbeans, how do I make a label fit within a sizeable JFrame, where … | |
Hi all, I have an HashMap with key/value pair. The program processes each element of the hashMap, and should mark the HashMap element as "processed". i.e. I have the follwoing key/value pair. [code] 1/"090003453bc454" 2/"090003453bc455" 3/"090003453bc456" and so on... [/code] So, when the program process each element, it should mark … | |
I am new to PHP and need help with a website I'm creating. Using a MySQL database I have created a table storing all of my images, descriptions, links etc. I need the product images to display on the PHP page (which I've already figured out) and be links to … | |
hello , I've visited the new paltalk web interface [url]http://express.paltalk.com/[/url] that i liked so much , and wondering what programming languages one can use to make a similar service .. that integrates voice and video chat ... maybe Flash & actionscript ? and does the hosting have to have certain … | |
I Need find tools for my project , has someone know, tools for code generated write with java code .... i've try to use appfuse but i still find another tools for that ... please help ... Thanks | |
Hello I am using C# forms to create a GUI, and I was wondering how to make the window nonResizable. I know how to do it in Java but not C#. any help would be appreciated. | |
can't figure out what I'm doing wrong....Im trying to write a program that can convert a sequence of positive integers from base-10 (decimal) to base-2 (binary), but I can't use the pow function [code] #include <stdio.h> #include <stdlib.h> void input_check (int start, int stop) { if (( 0 <= start) … | |
I am working on a text adventure for my cis class. Just to let you know, the code is graphic, and may be offensive to those who might be a begger LOL. Anyways, my functions do not seem to work properly. I looked over them, they seem fine. where am … | |
Hello , I have a database SQL server 2008 database. What are the SQL queries that I could use in the SQL server management studio to retrieve the following information: 1. all stored procedures. 2. all functions. Thank u | |
Hi, i need to compile 1 DLL, i start a new project, MFC appWizard(DLL),i select regular dll and push finish. i want to compile this: [code=cplusplus] /********************************************************************* ** XTrap Bypass ** ********************************************************************** ** Hacking Detected ** ** ---------------- ** ** 00435FA6 EB 35 All referenced text string, 'Hacking detected' ** … | |
[url]http://www.sendspace.com/file/do7486[/url] Can someone please explain the assignment & give me some hints. The way am thinking to do is like this.. enter ur input: 1024 i take 1024 and do a loop, divide it by 8 until the number is less then 8. when its less then 8. thats power3: … | |
for some reason my code is not going into the for loop. i completely skips it. any ideas?? [code=java] private ArrayList<Investment> investments = new ArrayList<Investment>(); public String toString() { String outPut; outPut = "Account" + " " + super.getId() + "\n"; for(int i=0; i < investments.size(); i++) { //outPut += … | |
Hello everyone, i am new in this forum and also in C++ programming. I just started learning C++ few months ago from my university then i stuck from some assignment they give me yesterday. I need to count number's occurrences from input data. This is the assignment : Enter 20 … | |
I made project in Console are the any way change font style in it(and there is can I change size too? Thanks Sergey | |
i cant get access to a pc atm im on my psp.. for(i = 0; i < 11; i++) { triangle(i, '×'); cout << triangle < endl; } triangle is a string. ty | |
Hi I have a question regarding python, I have been meaning to study the language for sometime now just have not got around to it, Im looking to start soon but I read an article about how Python 3.0 is very different from the earlier versions. Will it be worth … | |
i wrote this up but seem to have done something wrong and honestly i cant seem to find it, it compiles just fine, but when i run i get stuck in an infinite loop. my WHILE doesnt seem to be working, i know its to do with the variable STAMINA … | |
Hello Is it possible to Create a new character in C++? and then can we use it in in other softwars like word and such programs that you can write something in them? thanks a lot. | |
i am working on a program using stacks. what i have so far is reading in the line and pushing operands/operators into their respective stacks. My teacher has us using a MyArrayList class, therefore we have to extend to that class and use its methods instead of using the Stack … | |
[code]import java.awt.*; import java.applet.*; import java.util.Scanner; import java.io.*; public class SuperSaver extends Applet { TextField inputField; Button saveButton; Button clearButton; Label titleLabel; public void init() { setLayout(null); titleLabel = new Label("Super saver"); titleLabel.reshape(260,20,80,30); add(titleLabel); inputField = new TextField(); inputField.reshape(100,60,400,100); add(inputField); saveButton = new Button("SAVE"); saveButton.reshape(100,175,70,30); add(saveButton); clearButton = new Button("CLEAR"); … | |
I am learning to write java programs but I really am not any good. My programs run but with a whole bunch of glitches. I have to write a java application that is like an inventory program. It has to have a product class obviously but it needs to hold … | |
Hi everyone, I have a webbrowser which displays a webpage. I need to capture the text of any links that are clicked on that webpage. For example if the link 'certificates' is displayed then I need to capture the url of that link (which I can do) and the text … | |
Can someone help me how to read and write text file using Java Code... ??? Thanks in advance.. | |
My Mafia game. Need some help;D READ ------------------------------------------ Hello. i just got my mafia game Script and i really need some help from some pepole who are Skilled. i uploaded the game and when i click on the link it says Localhost using password No if u can help me … | |
Hi all. I am trying to overload the operator+ for a SLinkedList class I created. I would like to write [ICODE]list1 = list1 + list2;[/ICODE] and obtaining that list2 is merged into list1. I thought it was simple but it didn't worked properly. I tried to simplify the problem as … | |
could anyone tell me what are Armstrong numbers and pascal's pyramid. | |
[CODE]#include <math.h> #include <iostream> using namespace std; void instruction(); int calculator (char); void divide_by_zero (); float do_next_op (char, float, float); int main() { //input char input; float accum,num; // instructions (); void intruction(); accum = 0 ; do { //get input cout<< " : " ; cin >> input; cin … | |
I would like to place a radiobuttonlist inside of a gridview cell. The gridview is using a iList as it's datasource. In that gridview, in the second column i have a itemtemplate that holds a radiobuttonlist. I need to change the radiobuttonlist to not hold static listitem values and text … | |
I've been trying to work it out for more than 10 hours already and still can get pass this The basic skeleton is like this [code] class BST { public: .... void insert (const device & aDevice); ..... private: ..... }; class device : public BST { ..... }; [/code] … | |
hi there people i was hoping i could get some help please as im kinda stuck. ive have been asked for my uni portfolio to "accept the characters from a data file rather than from the keyboard. Extend the program to convert all the characters to upper case (excluding numeric … | |
How can i grep a file using c++..? I have a file. File having a keyword. i want to get the count of that. i am tring to do int count ; count = system("grep -c keyword file1.txt"); cout << count ; /// this is giving me system command return … |
The End.