43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for asa88

i need to write a class for driver.cpp file [CODE] // Chapter 13, Programming Challenge 3 Driver // #include "Car.h" #include <iostream> #include <string> using namespace std; int main() { // Loop counter int count; string myMake="Porsche"; // Create a car object. Car porsche(2006, myMake); // Display the car that …

Software Development c++ visual-studio
Member Avatar for asa88
0
138
Member Avatar for noey699

Everything compiles fine but it does not identify a straight. It will find straight flush though. A hand consists of 5 objects of the class CARDS which has 3 int variables(Value, Suit, Position). When I send a straight through it it goes all the way through to else and returns …

Software Development c++
Member Avatar for noey699
0
154
Member Avatar for The-IT

Hello, I decided I want to make a game where you have to move a ball through a maze and make it to the end without hitting any walls, some of which are invisible!! The game is extremely far from completion, and will be until I learn how to overcome …

Software Development python
Member Avatar for The-IT
0
101
Member Avatar for VernonDozier

I have some code to parse POST and GET parameters passed to a CGI program written in C and I'd like to test it out. To parse GET parameters, I need to access the QUERY_STRING environment variable, so I'd like to set that environment variable to different things and see …

Software Development c
Member Avatar for VernonDozier
0
847
Member Avatar for PinoyDev

Hi guys good day. Sorry for the delayed response to my previous post.We currently just change our internet connection. I just want to ask on how to get the data of this sql statement because it only returns the total records found. [code=vb] rs.open "select count(*) as idnumber from tblstudent …

Software Development visual-basic
Member Avatar for PinoyDev
0
87
Member Avatar for Excizted

Hello. I'm going to create a stack of pointers to objects, and I need to implement an identifier with the best performance. Those objects are custom classes. I'm wondering what would be best for performance. Either of these two ways, or maybe a third better way?. 1) Making an std::map …

Software Development c++
Member Avatar for Excizted
0
134
Member Avatar for invinate

hi, i'm having trouble compiling this code: SparseMatrix.h: [CODE] #ifndef SPARSE_MATRIX #define SPARSE_MATRIX #include <ostream> class SparseMatrix { //class data ... SparseMatrix operator+(const SparseMatrix& rhs) const; SparseMatrix operator*(const SparseMatrix& rhs) const; }; ostream& operator<<(ostream& out, SparseMatrix& rhs); #endif [/CODE] SparseMatrix.cpp: [CODE] #include "SparseMatrix.h" ostream& operator<<(ostream& out, SparseMatrix& rhs) { ... …

Software Development c c# c++
Member Avatar for invinate
0
212
Member Avatar for kartik14

Hi, I'm having problems adding images to a game I'm trying to modify. The given project has some images in a folder called "Images". So I added new images to this folder and tried to use these new ones in my code. To do this, I right clicked on the …

Software Development c# gaming image
Member Avatar for jamesonh20
0
407
Member Avatar for asa88

i want print this image out... 10 11 ___ / ()\ _|_____|_ | | === | | |_| o |_| || o || ||__*__|| |~ \___/ ~| /=\ /=\ /=\ [_] [_] [_] [CODE] #include <iostream> #include<fstream> #include<string> using namespace std; int main() { string filename; int number; cout<<"enter the …

Software Development c++ image
Member Avatar for abdelhakeem
0
156
Member Avatar for Gotang

Hi, I have been searching for a few days now for a solution to my problem. Please excuse any programming faux pas as I am very new to programming. I have created a textbox array based on the number of 'Channels' on another form. This number dictates how many textboxes …

Software Development vb.net
Member Avatar for Gotang
0
728
Member Avatar for sexyzebra19

I was just hoping to get some advice before I start writing my program, I need to put two columns of data into some sort of data structure, and each number has about 25 decimal places. Can anyone recommend the best one? Would storing them as a vector work? Thanks …

Software Development c++ data-structure
Member Avatar for sexyzebra19
0
150
Member Avatar for dor.marchan

Hi All, I'm a student who really need help in this problem...what I need to do is to call/run/execute a subroutine using a varaible name from a subroutine. [code] Public Sub Main(ByVal subName as String) Call subName ' subName may be contain the value AAA or BBB End Sub '=========================== …

Software Development vb.net
Member Avatar for dor.marchan
0
5K
Member Avatar for gillanism

hi all, i am really stuck with c++ pointer issues. what my program is supposed to do is to take input from user and recognize whether the entered string is a valid word from the grammer S::= a|(S) hence grammer should accept words like... a, (a), ((a)),(((a))).... i have done …

Software Development c c# c++
Member Avatar for gillanism
0
118
Member Avatar for XxWARGASMxX

Hey all I'm trying to create a program that takes a predetermined number (monthly salary in this case) and rather than printing as a number it prints it as text. However when I input a number all I get is random stuff that makes no sence. I will include the …

Software Development c++
Member Avatar for Narue
0
82
Member Avatar for autobiography

I have a homework assignment to instructs me to play around with functions and exceptions, but one seciton I'm stuck with is a certain condition it tells me to write o if x is not "So sue me!", but x is still not convertible to an int (by calling int(x)), …

Software Development python
Member Avatar for autobiography
0
105
Member Avatar for jefanot

Hey, I was just wondering, but what code do you need to be able to press a few buttons on your keyboard. Like, if I want to type "Cheese is yellow on the moon!" I'll just run the program. Or if i want to do ctrl+alt+del to go to task …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
614
Member Avatar for Cjreynol

I am writing a tic-tac-toe program and whenever my game gets to here it generates the following error: [CODE]# Display board function def display_board(board): """Display game board on screen.""" print "\n\t", board[0], "|", board[1], "|", board[2] print "\t", "------" print "\t", board[3], "|", board[4], "|", board[5] print "\t", "------" print …

Software Development python
Member Avatar for woooee
0
79
Member Avatar for KirkPatrick

I have created a function that is supposed to go through a text file (csv) and read the information in it and then add it do a dataobject (which just holds the info in textfields and a combobox) which when filled adds itself to the jpanel. The issue I am …

Software Development java
Member Avatar for KirkPatrick
0
137
Member Avatar for jemz

hello can you help me on this i have gel compiler then i want to debug my program but the debug button is not highlighted then it can't be click...ahm can you help me on this or please suggest me if what is the best compiler for java?...thanks in advance …

Software Development java
Member Avatar for jemz
0
104
Member Avatar for sailee

Pls help me in finding hcf and lcm of 2 nos

Software Development c++
Member Avatar for hk<3ob1993
0
195
Member Avatar for Es Sayen

hello all, can anyone tell, how can i make an mdi form borderless. i don't want the user to click on the close button present in the title bar. i want them to exit the way i directed them. thanks in advance. Sayen

Software Development visual-basic
Member Avatar for Hrqls
0
911
Member Avatar for nathanurag

[CODE=c] #include<stdio.h> #include<math.h> main() { int i=0,j,c,s[100]; double t=0; while((c=getchar())!='\n') { s[i]=c; ++i; } for(j=i;j>0;--j) { t=t+(s[i-1]*(pow(16,(4-((double)i))))); --i; } printf("%d",(int)t); return 0; } [/CODE] HI, i need to write a program that converts an hexadecimal number into integer form (for convenience i'm only considering hexadecimal no. without alphabets from a …

Software Development c
Member Avatar for adnan.siddique
0
126
Member Avatar for mseck

iam currently on a program that reads two integers values, with the second has to be a non-zero integer. here is my codes so far: Does it look ok ? PLEASE HELP !:( [CODE]public class Lab2App { public static void main(String[] args) { // Calculate 5 and 3 with relation …

Software Development java
Member Avatar for javaAddict
0
162
Member Avatar for RoyMicro

hai I am planning to use some instrumentation controls available [URL="http://www.codeproject.com/KB/cs/Industrial_Controls2.aspx?msg=3340682#_top"]here[/URL] as far As i understand that project can create a dll file and it cn be used in our projects. but when I added as reference this dll file into my project those controls are not available in tool …

Software Development
Member Avatar for sknake
0
311
Member Avatar for mk123

I'm having difficulty writing my xml schema (.xsd) file. My xml file contains a recursive element para which in turn has mixed elements within. The element para contains either text only or it contains 0 or more sub-elements para and/or it contains 0 or more element footnotes or/and it contains …

Software Development xml
Member Avatar for mk123
0
126
Member Avatar for scottlafoy

I would just like to start by saying hi. I am a new user here. I have read the forms for a long time but have never joined. I am new to C# but I will try to answer any questions I can on the form. My question is, is …

Software Development
Member Avatar for scottlafoy
0
100
Member Avatar for PinoyDev

Good day. I just want to ask on how to make a textbox accept positive & negative numbers but will not accept string that was entered.. Ill try to use [code=vb] if not isnumberic(text1.text) then msgbox"error' else end if [/code] But if negative numbers is entered it will not read …

Software Development visual-basic
Member Avatar for PinoyDev
0
1K
Member Avatar for severman

hi all does any 1 here know how to save a Gnatt Chart to png file? thanks!

Software Development java
Member Avatar for AndreiDMS
-1
115
Member Avatar for severman

hi does any 1 can show me a simple code how to show a picture on a j2me cellphone? what i want to do is: i have a tcp server based on j2se. i want it to send a png/jpg to a cell phone via the socket and then show …

Software Development java
Member Avatar for peter_budo
0
109
Member Avatar for wingers1290

Hi, i'm trying to create a program so i can log every person I meet, which i have done quite easily with databases. However i would also like to be able to log each time i meet that same person which is where i can't figure out what to do. …

Software Development c c# c++
Member Avatar for wingers1290
0
173
Member Avatar for nathanurag

[CODE=c] #include<stdio.h> void astrcat(char s[], char t[]); //to concatenate two string main() { int i=0,p=0,q=0,c; char s[100],t[100]; while((c=getchar())!='\n') s[p++]=c; while((c=getchar())!='\n') t[q++]=c; astrcat(s,t); while(s[i]!='\0') printf("%c",s[i++]); return 0; } void astrcat(char s[],char t[]) { int i, j; i = j = 0; while (s[i] != '\0') /* find end of s */ …

Software Development c
Member Avatar for nathanurag
0
111
Member Avatar for HiHe

When I run this code: [code]class C(object): print("Hello from inside class C") [/code]It gives the same result as if I had used this code: [code]print("Hello from inside class C") [/code]However when I use: [code]class B(object): def __init__(self): print("Hello from inside class B") [/code]The class behaves like I had expected. Does …

Software Development python
Member Avatar for HiHe
0
104
Member Avatar for Lukezzz

Hi, I have a task where I programatically will open 2 Explorer Windows in a minimized mode. I have searched and the code I have come up with looks correct to me but what happens is that these 2 browser windows do open in a Normal mode. That will be …

Software Development c++
Member Avatar for Lukezzz
1
202
Member Avatar for c0d3x

Hi, I need some assistance in how to count the number of lines in a given file. It is a small part of a homework assignment I have and I am having problems figuring it out. I am to assume that in each line there will be a maximum number …

Software Development c
Member Avatar for mitrmkar
0
2K
Member Avatar for Suicidal_tool

This is a coursework help *Just so its clear im playing by the rules* A question on my coursework is to "Put a structure within a structure and show how this can be addressed". I understand regular structures, and *hopefully* this code is correct. But im having trouble working out …

Software Development c++
Member Avatar for Suicidal_tool
0
110
Member Avatar for Ap0ca1ypse

Hello, I would like to list items from a database into a list but like to make it look clean. For example if database contains Column1, Column2 John,Smith Joe, Bloggs I want to list them like this John Smith Joe Bloggs Not like this (currently) John Smith Joe Bloggs Any …

Software Development vb.net
Member Avatar for Ap0ca1ypse
0
92
Member Avatar for sidra 100
Member Avatar for sidra 100
0
81
Member Avatar for Shmoil

Forgive me I am still really new to Java. I have this swing application which creates a small JFrame that when clicked, counts down from 2 minutes and stops at zero. I build a GUI in netbeans IDE and I read that in order to place this timer code into …

Software Development gui ide java java-netbeans java-swing
Member Avatar for Shmoil
0
303
Member Avatar for chromatinpt

Hi, I have one MDIApp running, at this time I need to create some configuration windows to ajust some parameters that provides to the childwindow contents some ajusts. My problem is, which is the best way to create this config windows? How can I store the information for a next …

Software Development
Member Avatar for sknake
0
107
Member Avatar for chromatinpt

In a button click event I need to send 5 different commands recieve each output one by one. My code for only one command is (its works): [CODE]TcpClient socketForServer; socketForServer = new TcpClient("127.0.0.1", 2211); NetworkStream networkStream = socketForServer.GetStream(); System.IO.StreamReader streamReader = new System.IO.StreamReader(networkStream); System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(networkStream); string command …

Software Development xml
Member Avatar for sknake
0
106
Member Avatar for cwarn23

Hi and I am writing a small program but need to make a function that converts an integer to a hex. Below is an example of a similar function but need the result stored in a std::string variable. [CODE]printf("%x%x%x%x%x",h0, h1, h2, h3, h4);[/CODE] Does anybody know how to create a …

Software Development c++
Member Avatar for Poincarre
0
424
Member Avatar for vbdotnetlover

Hello Sqlserver MyTable has following data Vou---------date---------qty 1-------25/12/2009------5 2-------25/12/2009------4 1-------26/12/2009------8 2-------26/12/2009------3 3-------26/12/2009------2 [CODE] str = "SELECT date, SUM(Qty) AS Qty, FROM mytable GROUP BY Date" dt = GetTable(str) [/CODE] These codes display following result date--------------qty 25/12/2009------9 26/12/2009------13 Now I want to add sno column in result as Sno--------date---------qty 1------25/12/2009------9 2------26/12/2009------13 …

Software Development vb.net
Member Avatar for achieveSenthil
0
125
Member Avatar for mpegjohn

Hi, I am running 3 threads that each start an ffmpeg process to extract 3 snapshots form a video file. I need to be able to call this method multiple times, with different video files. It writes the three snapshots to the system. However If I try to delete these …

Software Development file-system regex
Member Avatar for mpegjohn
0
339
Member Avatar for samdesilva

Hi, I am creating a website where a user has to register to access the site features. Once the user registers, his registration has to be confirmed by the admin guy, who is maintaining the site. The thing is I wanted a way to send an email automatically, once a …

Software Development java
Member Avatar for satuti
0
110
Member Avatar for Olliepop

Hey guys :) I am stuck on this piece of code i am about to give below. What happens, is the server sends a "ping" to the client, the client sends "pong" back, but when the server sends "pong" back to the client (i KNOW this is sent) the client …

Software Development client-server java
Member Avatar for JamesCherrill
0
216
Member Avatar for c1979h

I am pulling a list of 3 items with a list price from a text file, I ask for the percentage off and calculate it against the list price then I update to file with revised price. The program compiles correctly, but it never displays the info in the console …

Software Development c++ file-system flash
Member Avatar for jonsca
0
197
Member Avatar for kokoromidori

Pleasew help me.. I never learn about C++ before.Since i'm study abroad in japan,everyone had learnt evrything.So i feel like crazy because i didn't know anything..My lecturer give us assignment about calculator function programming..what should i do..how to make thats programming....:( Please anybody can help me

Software Development c++
Member Avatar for Ancient Dragon
-2
98
Member Avatar for nsjoe

I'm new to using delegates and invoke methods. Can someone please quickly identify what I'm missing here. I know this code is no where near completed right now, but as is, it's working for what I'm trying to test. Basically I'm creating a simple client application that is receiving a …

Software Development c c# c++ client-server
Member Avatar for sknake
0
988
Member Avatar for kenji

Hi, I'm trying to copy a value in a vector to a string. The vector is also of string type, I'm trying to copy through the iterator. [code=CPLUSPLUS] for(iter = inputStr.begin(); iter != inputStr.end(); iter++){ string temp = inputStr.at(iter); int count = 0; for(int i = 0; i != temp.size(); …

Software Development c++
Member Avatar for jonsca
0
137
Member Avatar for markfisher

Hello everyone I have been working on generic C data structure (Doubly Linked List) and I have a question: ------ List.c ----- [code] struct node { void *data; struct node *next; struct node *prev; }; struct list { unsigned int length; struct node *head; struct node *tail; }; typedef struct …

Software Development c c# c++ data-structure linked-list
Member Avatar for markfisher
0
161

The End.