132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for skypower

Hello, I am having some strings grammar problems. [CODE] char *eisodos1[50]; char e; int *a; int i; int main() { eisodos1[i]=getchar(); (1) e=eisodos1[i]; (2) if (eisodos1[i] == ' ') g++; (3) while ((e!=EOF) && (a!=EOF)); (4) } [/CODE] Please don't look the code like a complete program, I posted the …

Software Development c
Member Avatar for eager
0
193
Member Avatar for manvis2484

I can compile and run the program, but cannot output the text file and print the member list result. Anyone can advice the solution? Thanks. 1. Add new member information 2. Print member list 3. Exit #include<iostream.h> #include<fstream.h> #include<dos.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<string.h> #include<iomanip.h> struct student { char Stdid[7]; char …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
243
Member Avatar for Isaaac

Hello I'm using an access database for a school project. The point is to get info out of a tag (stored in database). There's a path of a picture stored in the database. When i want to get it out, everythink works. But as soon the picture is displayed and …

Software Development
Member Avatar for Isaaac
0
72
Member Avatar for corby

hey guys/gals. i get a segmentation fault whenever the for loop in the print function is executed. any suggestions? im not sure what i did wrong. [CODE]//class member functions #include "experiment.h" #include <iostream> #include <fstream> #include <cstdlib> #include <iomanip> using namespace std; int Experiment::numberOfTests = 0; Experiment::Experiment(){} void Experiment::setExpName() { …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
162
Member Avatar for nishankyadav

HI, i am Nishank and have got a project -to make periodic table by using the following a. Data Structure b. Object Oriented Programming in C++ c. Data File Handling through the program the user should be able to: a.view the periodic table b.edit the periodic table c.delete a record …

Software Development c c# c++ data-structure flash os-x
Member Avatar for Ancient Dragon
0
6K
Member Avatar for judithSampathwa

hi there, how can i add a calender column by writing the code in C#, the below code gives and error: [CODE] CalendarColumn c = new (CalendarColumn)dgvAction.Rows[0].Cells[1].OwningColumn; [/CODE] what i want is when i click a check box in the datagrid view i want the current date to display in …

Software Development
Member Avatar for sknake
0
152
Member Avatar for Fou7a

This is a code to solve a maze using A* search algorithm. When I run it, it gives me the following error: Exception in thread "main" java.lang.NullPointerException Can someone help me out? Below is all the code: [CODE] import java.util.List; import java.util.ArrayList; import java.util.Queue; import java.util.PriorityQueue; import java.util.Stack; public class …

Software Development algorithm java queue
Member Avatar for BestJewSinceJC
0
260
Member Avatar for OffbeatPatriot

I'm making a game engine and an integral part of the game is that it populates worlds based on maps loaded from a XML file, a method "Actor load(Map<String, String> code)" in a class ActorLoader takes a map and returns an actor based on this map. When you make a …

Software Development java xml
Member Avatar for ~s.o.s~
0
180
Member Avatar for abyan

hi.. I'm new in VB, and I have a project to activate LED from VB, but the data from VB should be send first to microcontroller (I am using ATmega8535). so in simple way I suppose to activate the LED, yhe input is from VB, but it must be through …

Software Development visual-basic
Member Avatar for abyan
0
151
Member Avatar for jockfaire

Hello, I have a form with two list boxes and a button that, when clicked, removes the selected item from the first list box and adds it to the second list box. I can add the selected item to the second list box but i can't find a method that …

Software Development
Member Avatar for finito
0
149
Member Avatar for Roses89

Im trying to access the objects in the vector array that ive created in the bid class. I need to access the first ask bid and then continue to compare the price and the quantity with the first buy bid. I dont understand how on EARTH im supposed access these …

Software Development c++
Member Avatar for NathanOliver
0
129
Member Avatar for anusri555

Hai friends, Me too have some doubts regarding C++. What happens if a pointer is deleted twice? Which is a better option --pass by value or pass by reference ?

Software Development c++
Member Avatar for NathanOliver
0
74
Member Avatar for prototyppe

Hello guys, My problem is that my code will automatically go through: [code]if((ask[i].getPrice()) <= (buy[j].getPrice())){[/code] where ask and buy are vectors. I need to know how I am suppose to compare them based upon the getPrice()...... Thanks in Advanced. The rest of the code is here: [code] int i=(int)ask.size(); int …

Software Development c++
Member Avatar for NathanOliver
0
62
Member Avatar for BLKelsey

Hey all, I've elected to write a console hangman game and I've completed it just fine. However, one thing is evading my logic as to why it wouldn't work. I want it to "appear" to LOAD GAME" at the beginning like so: "LOADING GAME....." The total wait time I want …

Software Development c++
Member Avatar for mitrmkar
0
104
Member Avatar for Roses89

I have a class which accepts vectors from another class called trader. This is the simulator class: [code] #include<vector> using namespace std; class Simulator { Trader trader; Auctioneer auction; public: void run(); }; void Simulator::run() { trader.setBid(); auction.BidID(trader.getBidID(vector<int>)); auction.TraderID(trader.getTraderID(vector<int>)); auction.Quantity(trader.getQuantity(vector<int>)); auction.Price(trader.getPrice(vector<int>)); auction.Type(trader.getType(vector<char>)); auction.showbid(); auction.matchBids(); }; [/code] In these lines: [code] …

Software Development c++
Member Avatar for Roses89
0
58
Member Avatar for trpsjt2008

I use [CODE] Shell("explorer Path")[/CODE] Path is Directory But it Open My Document Path is D:/ I think It because The syntax "explorer Path" i try a lot like shell("explorer" path), shell(explorer path) , shell(""explorer" path") but it always open My Document

Software Development vb.net
Member Avatar for trpsjt2008
0
100
Member Avatar for Kruptein

somehow this does not work: [icode]self.list_box_1.SetForegroundColour(5,"red")[/icode] SetForegroundColour is though listed in [url="http://www.wxpython.org/docs/api/wx.ListBox-class.html"]the api reference[/url]

Software Development api python
Member Avatar for HiHe
0
168
Member Avatar for ceyesuma

Hello Is there a way to get data from the db with ConnectStudentDAO and populate the StudentBean.java and then copy the bean over to the model (Student.java) Is this how it is done. I'm not sure how to work out the Cast error. Thanks [b]LoginInfoBean.java[/b] [code] public String loginAction(String newUser, …

Software Development apache java xml
Member Avatar for ceyesuma
0
127
Member Avatar for royaloba

hello every one, i just want to know if it is possible to install . NET into Mandrake Linux server.. thanks..:confused:

Software Development asp.net mandrake vb.net
Member Avatar for kvprajapati
0
96
Member Avatar for gangster88

can someone plz explain why each option is valid or invalid..i have no clue of waht is going on in these questions? all i can see are they are being multiplied?.. i do not understand these attributes and instances and cannot find any helpful resources either? i know in the …

Software Development java
Member Avatar for gangster88
0
107
Member Avatar for jeanfrg

Hi, I need help with an Assignment that requires me to continue(inheritance) on an existing assignment that I previously did. When I run the program and choose option 4 or 5 nothing happens, it skips the rest of the loop and starts again. #This is the main code that uses …

Software Development java
Member Avatar for moutanna
0
142
Member Avatar for Mitja Bonca

I would like to know how to send a sms (text message) from windows application to a mobile phone (with entering the number) - for free. One and the only option I know (and I tried) is to send it using email. But I do not have any provider in …

Software Development
Member Avatar for Ramy Mahrous
0
86
Member Avatar for prem2

Hi, I want to know the general information about java. Is java is opensource or not? Thank you, Prem

Software Development java open-source
Member Avatar for prem2
0
84
Member Avatar for basma.lm

hi, i work on windows application and i have this code: [CODE] SqlCeDataReader rrs; SqlCeCommand comd = new SqlCeCommand("select CodePersonne from Table1 where DateR ='" + DateTime.Now.Date + "';", conne); rrs = comd.ExecuteReader(); [/CODE] while running, i get this error: The data type is not valid for the boolean operation. …

Software Development
Member Avatar for basma.lm
0
212
Member Avatar for bettybarnes

hi everyone can u please correct the errors in these codes? [CODE] // Testing the Stack class of the java.util package import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class StackTest extends JFrame { public StackTest() { super( "Stacks" ); Container c = getContentPane(); final JLabel status = new …

Software Development java java-swing
Member Avatar for moutanna
0
243
Member Avatar for jasneg16

Please help me out with this... Sorry, Don't know how to post in coding option. this might be hard to understand. | I just copy it and posted it.... thanks in advance. /* * To change this template, choose Tools | Templates * and open the template in the editor. …

Software Development java java-swing
Member Avatar for moutanna
0
133
Member Avatar for drweere

please give me a java codes to print this triangula shape using for loop........... 1 22 333 4444 55555

Software Development java
Member Avatar for javaAddict
0
48
Member Avatar for pinsickle

I recently starting learning Java, I have a pretty good grasp on C/C++ and wanted to expand my horizons. Anyway, I have being using the Headfirst Java book and recently finished the chapters on GUI. One thing that wasn't covered by the book was how to deal with child windows. …

Software Development gui java
Member Avatar for javaAddict
0
115
Member Avatar for Reprise

I have the following code which basically acts as a typewriter: [code] int main () { char c; puts ("Enter text:"); do { c=getchar(); putchar (c); } while (!feof(stdin)); return 0; } [/code] However when I feed it a text file for input: [icode]$ ./typewriter < input.txt[/icode] it always adds …

Software Development c
Member Avatar for Reprise
0
92
Member Avatar for Hawkeye Python

Is this possible with pyhton? If it is, how can you do it? [CODE]def raise(): raise = raw_input('Do you really want to raise? y/n') if raise == 'y': bet = bet+1 return # Should RETURN to play(), after raise() # Like "goto LABEL" else: return def play(): bet = 1 …

Software Development python
Member Avatar for lllllIllIlllI
0
95
Member Avatar for jv_05

First of all, excuse me for bad English, I speak Spanish... Well, my question is how do I implement sockets in my program? I'm working on a little game call "Battleship", I already have how to set your ships and the function to attack, but I need to connect 2 …

Software Development client-server python
Member Avatar for lllllIllIlllI
0
178
Member Avatar for KBL

This is a small program that is suppose to find out the sum of even numbers entered into an array.... but everything works fine without errors but the output am getting is a negative number.... -1717986920. [CODE]#include <iostream.h> void main() { int sum=0; int i, a[6]; int range; cout<<"Enter a …

Software Development c++
Member Avatar for KBL
0
11K
Member Avatar for triumphost

Ok here is what I want... I want to read the Dictionary file, and output its contents into the dynamic-text.dat file... But it reads the dictionary file and it will not write to the dynamic-text.dat file and I have no clue why... what am i doing wrong.. when I split …

Software Development c++ ios
Member Avatar for triumphost
0
343
Member Avatar for prototyppe

Hello, I cannot figure out why my program crashes when it gets to the code below. Everything else in my coding works, except when I go to run this code... [code] void Auctioneer::matchingGame(){ vector<Trader>::iterator it; int i=ask.size()-1; int x=0; int y=0; int bId; int tId; char h; int temp=0; int …

Software Development c++
Member Avatar for prototyppe
0
134
Member Avatar for 3cats

Assignment - read an input file that has month, highest temp for month and lowest temp for month. I have to use a function called GetData to fill the array. I define the array as 12 rows and 3 columns. Please could someone look at the code I have and …

Software Development c++
Member Avatar for jonsca
0
194
Member Avatar for daino

Hi Would anybody be able to tell me if there is a book or any material ot there explaining what kind of widgets you can get for C++. I'm not sure what kind of widgets are available in terms of functionality. When I say types I mean say textbox or …

Software Development c c# c++
Member Avatar for daino
0
164
Member Avatar for xxxchopsakexxx

Ok so if I wanted to do a simple while loop with a user inputting a number and a function doing some calculations, would it be possible to have it so that the user can type in 'quit' instead of a float if they want to quit? Thanks in advance.

Software Development python
Member Avatar for HiHe
0
344
Member Avatar for jelinky

hey guys, this is what i have so far... this part is from the main.cpp [CODE]double x; cout<<"Enter a number to search for: \n"; cin>>x; list.search(x); if (list.search(x)) cout << "\n" << x << " IS on the list! AT POSITION :" <<endl; else cout << "\n" << x << …

Software Development c++
Member Avatar for jelinky
0
124
Member Avatar for leesho

i have this code and for an class work task and you have to do a walkthrough table and work out the output. But i dont know how you do a walkthrough table. Can someone help? [CODE] int c = 0, sum = 0; while (sum < 8) { c++; …

Software Development c++
Member Avatar for leesho
0
1K
Member Avatar for johndoe444

I logged into a computer which is not mine. I know there is apache installed because when I type whereis apache it shows /etc/apache it has only a few files. I need to know where the htdocs directory is and also where http.conf file is. How do I accomplish this? …

Software Development apache shell-scripting
Member Avatar for griswolf
0
266
Member Avatar for pateldeep454

What are the pros and cons of class and object methods? Which is more concise (usually)? What kind of computations can be expressed most naturally using each style)? Explain PLZ!!!

Software Development java
Member Avatar for quuba
0
90
Member Avatar for ku95

Im trying to call the reset method within this Connect4Model class is that possible. As you can see I have made and attempt and I'm getting 33 errors. I can't exactly see where I'm going wrong. If someone can guide me and let me know where I've gone wrong that …

Software Development java
Member Avatar for quuba
0
110
Member Avatar for ku95

Hi, I have some code for a program that I'm doing. Basically I'm trying to write method whereby the reset() method takes two parameters which are number of columns and number of rows. I'm doing this method whereby I have to to move all the contents of the Connect4Model constructor …

Software Development java java-swing
Member Avatar for quuba
0
109
Member Avatar for ku95

I'm new to doing Java and i was wondering if anyone would happen to know why this return type error is occurring. this is the following error C:\Users\..\Desktop\Connect4Model.invalid method declaration; return type required public reset(int numCols, int numRows) [CODE]public class Connect4Model { Connect4Column [] columns; // an array of columns …

Software Development java
Member Avatar for wildplace
0
228
Member Avatar for phriendtj

OK I am writing a custom application which needs to do a limited amount of web browsing... i.e. browsing is not its main intention but yes it is ABSOLUTELY necessary for it to be able to browse the web.... I am using a JEditorPane with the HTMLEditorKit for the display …

Software Development java java-jsp session
Member Avatar for phriendtj
0
181
Member Avatar for trillionaire

Hi there, I have written a simple program which I know a solution to, I simply don't understand why the version below doesn't work. I have investigated the answer to roughly how it goes wrong, I just don't know why! Where the problems begin is commented in the last six …

Software Development c++
Member Avatar for Narue
0
151
Member Avatar for flasy12

well ive been trying to make an app in VB 2008 Express Edition so that every time my timer ticks it randomly adds a number like it either adds 1 or nothing but having trouble with it since it just does it one time this is my coding for the …

Software Development vb.net
Member Avatar for flasy12
0
89
Member Avatar for TrustyTony

Here is way to put easily editable layout for input fields with standard look and collect the text variables to list for use.

Software Development python tkinter
0
2K
Member Avatar for chained

Suppose if I have a dynArr pointer and a file pointer as parameters, and in the DynArr I am storing a TYPE with an integer value and a string description. How would I put the TYPEs in the DynArr into a txt file while tabbing between the string and the …

Software Development c
Member Avatar for chained
0
129
Member Avatar for jockfaire

Hello, I have written a small java program that simulates a Lottery draw. I would like to generate multiple "lotto tickets" e.g 20 tickets containing 7 numbers at one time when i run the program rather than just a single ticket every time i run the program. Below is the …

Software Development java
Member Avatar for quuba
0
121

The End.