43,549 Solved Topics
Remove Filter ![]() | |
This one is really crazy cause i think my professor screwed it up. I have to write a class Bank. It contains objects savings of class Account. now say i have a savings array and a savings object has [code=cplusplus] Account savings = new Account[5]; //How do i return the … Software Development c++ | |
If I add default arguments to the end of my copy constructor, is it still considered a copy constructor? E.g. will it still be used in the places where a copy constructor would normally be used (or automatically generated). I can verify that it works on one compiler (g++). That … Software Development c++ | |
I'm having trouble making this program with linked lists work. Where I am having a problem is in printarea() [code] //**************************************************************** // This program tests creating dynamic linked list of // several Dynamic (descendents) // It uses: shape1.h header file // Filename: prtshape.cpp //**************************************************************** #include <iomanip> #include <iostream> #include "shape1.h" … Software Development c++ linked-list | |
Hello all. I want to craete a empty double dimensional array. Later i will get the row and column length. But row length varies each time program. But i will be having the lenght of the row. So hoe to write a generic code for creating a empty 2D array … Software Development python | |
I'm trying to make a linked list, what's wrong with my syntax for adding a node? [code=c] struct data { char name[20]; char number[10]; }; typedef struct node { struct data list; struct node* next; } Node; Node *head = 0; Node *tail = 0; Node *New = 0; void … Software Development c linked-list | |
Hi all, i'm looking into doing a little bit of work with the mouse in console applications on windows. I'm using windows.h to get access to functions such as ReadConsoleInput. I've created a simple program that just prints a string whenever the left most mouse button is clicked. However sometimes … Software Development c++ | |
Hello! I want to go through a string char by char and i've heard a byte ptr is the way to do this, but i'm having problems with using it. I tried with the code below, but i get an error saying: "comma or end of line expected" at the … Software Development assembly | |
hi, ihave this code in c# for crating cookies : if (saveInCokies_CheckBox.Checked) { HttpCookie myCookie = new HttpCookie("AtterehWebCookies"); myCookie["userName"] = userName_TextBox.Text.Trim(); myCookie["password"] = password_TextBox.Text.Trim(); if(employee_RadioButton.Checked) myCookie["loginType"] = "employee"; else if(lawyer_RadioButton.Checked) myCookie["loginType"] = "lawyer"; else if(customer_RadioButton.Checked) myCookie["loginType"] = "customer"; Response.Cookies.Clear(); Response.Cookies.Add(myCookie); Response.Cookies["AtterehWebCookies"].Expires = DateTime.Now.AddDays(30); } after that i want to read … | |
Hi I have build one dll project . I want to use that dll in another project. But when I include the header file of the project I am getting an error Error 2 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH" Am I missing … Software Development c++ | |
Okay, I have to store an adjacency matrix for a graph problem I'm doing. Let's use this picture to explain it right now. [url=http://i21.photobucket.com/albums/b272/DemonGal711/Program%20Pic/pic.jpg]Click here[/url] I figured, I'm use a linked list to store it where each node uses the struct [code]struct Node { char item; Node* vertex; Node* next; … Software Development c++ linked-list | |
I'm coding for fun and I can't figure out how to compare two string in an if (string1 < string2) type statement. I figured if I could somehow get values for those strings it would be easy to do the if statement. All help is highly appreciated : ) Software Development java | |
hi I am creating an CSV file in java by putting the Korean values in a properties file like "\uc81c\ubaa9 \uc18c\uc2a4\uc5d0\uc11c \uc5b8\uc5b4" [B]which is properly coming in the CSV file (like "번호 출판물의") when I open it in the notepad and select the font as Arial Unicode MS[/B], but when … Software Development file-system java | |
[CODE]void StrCpy(char * Dest , char* Src ) { while(*Src){ *Dest = *Src++; cout << *Dest ++; } } void main() { char* string1 = "\0"; char * string2 = "EL"; StrCpy(string1, string2); //cout << string1; //must output EL } [/CODE] Im trying to output EL after its copied to … Software Development c++ | |
I created the first method, which gets and displays all the links in a web page in a listView when a button is pressed. I found the second method on a site that supposedly checks to see if a link is valid. I need help on incorporating it into my … Software Development listview | |
Hi. This is NOT a homework assignment (self-interest only). The exercise asks me to write a function which accepts two strings and returns a pointer to the longer of the two. [code language="C"] #include <stdio.h> #include <stdlib.h> char* longer( char str1[], char str2[] ); char* str_ptr; int main( void ) … Software Development c | |
Hi I was wondering if anyone could help I'm receiving a segmentation fault whenever I go to run my main.cpp on my program. I've never encountered this before and was wondering if anyone knew how it can be fixed. The program consist of equiv.h, equiv.cpp, graph.h, graph.cpp, and main.cpp here … | |
Hi, In this piece of code in my program I am receiving the following error request for member âyâ in something not a structure or union. [code=c]struct intpair { int x ; int y ; } ; struct intpair makeintpair(int x, int y) { struct intpair temp ; temp.x = … Software Development c data-structure | |
Hello all. I am teaching myself C# and I have been fairly dedicated to solving my own problems. However, for some reason I am just stumped. I have a main form that manages alot of data. To insert data into the form you push a button to bring up a … Software Development | |
This program is all working except when a user chooses the same file as before it needs to show both orders in the file but it is only showing the latest one. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /** * Program that allows user to select a … Software Development apple file-system java java-swing | |
I have to make a program that reads in words, deletes certain ones, stores ones that pass, and then count the total. He didn't exactly specify how the words would be coming it, but I'm assuming that if a space at the end of the word is bad, that it's … Software Development c++ | |
The code is pretty easy to understand what I am doing. You basically pick a number 1-4 and it will do either addition, subtraction, multiplication, or division. What I need it to do is after they do a problem it loops back and lets them do it again, until they … Software Development c++ | |
I need to add student name and grade to a file. This is my section of code so far [code=VB] Private Sub addStudentNameGrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addStudentNameGrade.Click Dim swrStreamWriter As IO.StreamWriter swrStreamWriter = IO.File.AppendText(path & "studentgrade.txt") swrStreamWriter.WriteLine(Me.textStudent.Text, " ", Me.textGrade.Text) 'swrStreamWriter.WriteLine(Me.textGrade.Text) swrStreamWriter.Close() End Sub [/code] … Software Development file-system vb.net | |
Hi i have written a code for concatenation of two strings by overloading the string operator. The program works fine but i don't understand the sequence of steps happening. [code][Use language = C++] #include <iostream> using namespace std; class String { int len; char *p; public: String () { cout … Software Development c++ | |
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the pictures of all the cards */ public void init() { /** * This method loads the card picture and lays out the applet. */ cardImages = getImage(getCodeBase(), "smallcards.gif"); setBackground(Color.blue); … Software Development java java-swing | |
I've got executable code that is partially working, so i know i've done something wrong in it. In it you type in the rainfall for each month in inches and will display the total, average, largest and smallest rainfalls(with the month). I have the the total, average and largest(except the … Software Development c++ | |
i made a game called chimp and when i start it it just freezes the game window, idle and the python shell, any ideas? heres the code" [code=python] import os, sys import pygame from pygame.locals import * if not pygame.font: print 'Warning, fonts disabled' if not pygame.mixer: print 'Warning, sound … Software Development python | |
Hi all, I am using MS Windows SP2. I should like to share my positive and negative experience with the PPM (Perl Package Manager) with the community. For a reason I uninstalled Perl from my computer and installed again. After installation only DBI was present, and for Mysql the DBD::mysql … Software Development mysql perl window-manager | |
Hi guys I am making a program that uses a text control to move messages from one place to another. My program needs to be able to, once the message has been moved, delete what is in the textCtrl. I can go: [code=python] self.textCtrl.SetValue('') [/code] but that leaves me with … Software Development python | |
I'm reading up on jobs and processes in UNIX and was a little confused. A processes is just something that executes and then dies right away, like a grep command issued from the shell, right? It started, did what it was supposed too, outputs the info and then dies so … Software Development shell-scripting unix | |
Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated. | |
I always have a problem with this. I get an error when trying to build the program "argument exception unhandled". Any help would be appreciated, thanks. [code=VB] Private Sub addBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addBtn.Click Dim newLineIndex As Integer = 0 If My.Computer.FileSystem.FileExists(path & "stocks.txt") Then … Software Development vb.net | |
I want to open IE from a forms application. A bit like daniweb does it btw.! I have the following in a button click eventhandler: [CODE=csharp]Process MyProcess = new Process(); //string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); MyProcess.StartInfo.Domain = ""; MyProcess.StartInfo.FileName = "iexplore.exe"; //MyPath + "\\iexplore.exe"; MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal; MyProcess.StartInfo.CreateNoWindow = false; MyProcess.Start();[/CODE] … Software Development | |
i have to write a program that deletes special characters from a phone number. For Example: (0049)5599/85675-344 0049559985675344 i have started to program it, but it doesn't seem to function. here's my code: [CODE] #include <stdio.h> void affe(char nummer[]){ int n , i, z; n = strlen(nummer) - 1; for … Software Development c | |
Hi, Can u add numbers without using arithmetic operators in java.We can add using bitwise operators.But i m not able to get the ans. Solve: a+b=c; Prove 2+2=4 without using arithmetic opreations. Looking for u r answers Software Development java | |
Hi, I am working on [B]"Creating A Multiuser Chat Application"[/B] in C#. The code is generating an error -- [B]"SocketException unhandled -- The requested address is not valid in its context"[/B] when it executes [B]listener.Start(); [/B]method. Can somebody kindly help me resolving this? Please find the code below for your … Software Development client-server socket-programming | |
Hi I am trying to use MSXML. But I am getting error in that so I explored internet and found one useful articles regarding the installation of MSXML [url]http://msdn.microsoft.com/en-us/library/ms758753(VS.85).aspx[/url] This article is about "Include Headers and Libraries Manually" But as per the instruction given in this article I have to … | |
Hi, I have a GUI written with wxPython that contains a form. When the button is clicked, a script is executed to cycle through a specified directory and resize the images to a 50% size (the image manipulation is done with PIL). I used to run this script via the … | |
draw a right angle triangle with 3 sides 3, 4, 5, and vertices A, B, and C. And prints the description next to that as follows: (Note: it is OK that the characters are not printed out in the right positions at this time as long as they are printed. … | |
i just wonder what is the most reknown-popular-acknowledged c certification? Software Development c | |
hi friends i have developed an application for bank accounts. Its a web application and my server is Tomcat 5.0. my requirement is that user could sms (from their mobile) to my application. In the SMS they will provide their account no and in response my application will send a … Software Development java web-server | |
I am attempting to input data from a log file into a database with tables for each network device. The table name is set via a parameter for the function. The script crashes after running stating the table name does not exist. If the actual table name (routerA) is listed … | |
Hello! I have an assignment where I have to take user input from my GUI (Month, date and year) and then send it to my CalendarUtil file where the input will be handled in the static methods. The part I an stuck on is the monthNumber method. I had written … Software Development gui java java-swing window-manager | |
For future reference here are the instructions for my assignment. Thank you in advance for any feedback you can provide: Implement the Message class using a header and implementation file named Message.h and Message.cpp respectively. In addition to the two Message class files, you must write a driver. The driver … Software Development c++ | |
Hi, I am having some troubles with a recursive function. The function needs to get a string as an input. The string contains both symbols and numbers. What the function does is doing some operation on the two children of a node, the node being the operation(+,-,*,/). The thing is, … Software Development java | |
i'm trying to put a function call inside of a function call: [CODE]switch_statement(menu());[/CODE] switch_statement is a function call and so is menu. I want what menu is returning to go into switch_statement but i kinda don't want to bother making a new variable just for this task.. So is it … Software Development c | |
| |
Hi In the below code , i am getting compile time error when declaring the copy constructor . C:\work\Dev-Cpp\bin>"mingw32-c++.exe" dynamicArray.cpp dynamicArray.cpp:13: error: expected `,' or `...' before '&' token dynamicArray.cpp:13: error: ISO C++ forbids declaration of `dynarrray' with no t ype dynamicArray.cpp:13: error: `dynarray::dynarray(int)' and `dynarray::dynarray(in t)' cannot be overloaded … Software Development c++ | |
Does it need a copy constructor and an operator= for a class which have array member? for example: Class A { private: B data_[100]; //B is a class }; does class A need a copy constructor and an operator? in other words, is the default copy constructor is OK for … Software Development c++ |
The End.