64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for NinjaLink

This is my goal: - Search the list for a number and display how many times the number occur or display 'number not present' - Modify number and change each occurrence of a #, to the new number or display 'number not present' I have 2 functions. My first function …

Member Avatar for NinjaLink
0
203
Member Avatar for BestJewSinceJC

Is there any way that I can take a String and somehow use it as if its the name of one of my declared Objects? For example, if I have an Animal named germanShephard, is there some way I could say String gerSh = "germanShephard"; and then treat gerSh as …

Member Avatar for ~s.o.s~
0
199
Member Avatar for d1s_0n3_guy

Write a program that will prompt the user to type in a series of characters. Input these characters into a c-string (char array). For each character, if it is a letter, toggle the case (upper to lower case, or lower to upper case). All other characters leave as is. Print …

Member Avatar for d1s_0n3_guy
0
214
Member Avatar for Trekker182

I was wondering if anyone could offer some suggestions on how to validate a social security number & their employee # that a user would input separately through prompts? The SS# would be in the form of xxx-xx-xxxx where the x's are 0-9. I tried using this function that I …

Member Avatar for Trekker182
0
833
Member Avatar for chocolate-glaze

Hi! I'm trying to write a method that finds the index of a specified occurrence of a character in a given string using recursion. I've managed to count the number of times a character occurs in the string, but can't figure out how to find the index of a particular …

0
63
Member Avatar for dnmoore

I have to create a database that implements an array that stores a persons first name and last name and zip code this is what i have so far for my individuals array public class IndividualsArray { private Individuals[] array; private int count; private int zipCode; public IndividualsArray () { …

Member Avatar for dnmoore
0
153
Member Avatar for skatamatic

For a lab, my instructor asked us to include an assignment operator with our class, but to hide it. Does this mean to declare it as private and just leave an empty implementation? Is this common/useful?

Member Avatar for wt1099
0
313
Member Avatar for zothos

I have a problem with a code attempting to do a factorial of a number. For numbers 12 and below, the code works fine, but when I do 13 and above it outputs the wrong number. [icode] #include <iostream> using namespace std; int number; int number2; int main() { cout …

Member Avatar for MosaicFuneral
0
294
Member Avatar for kellogs

Hello, I would like to clarify one thing about SOAP security. My situation is like this: there is a web service server and some web service clients that I need to bring up using SOAP. This web service will only be used with my own clients and, perhaps some other …

Member Avatar for yaronn01
0
117
Member Avatar for Evil Genius

Hi, I was coding the following program.. [ICODE] // Program takes work hours and rate per hour and gives total // salary after tax, if work hours are over 40, its increased by 1.5x. #include <iostream> #include <conio.h> using namespace std; int main() { double hr_work, hr_rate, taxed_total, total; cout …

Member Avatar for Evil Genius
0
134
Member Avatar for vmars

Please, how does 'Python, wxPython, wxWidgets, C++' all fit together? WxWidgets being written in C++ and all. What is actually being handed to Python when we use these things. Thanks a bunch!

Member Avatar for vegaseat
0
108
Member Avatar for rickya100

Hi everyone, Many thanks for looking. Here's the problem. I have a form with three option buttons. Depending on what one the user clicks on I need a particular div to be shown, while the other two divs are to be removed. The only problem is that the removeChild doesn't …

Member Avatar for rickya100
0
153
Member Avatar for mrkcse

Hi all, Iam developing one windows application in that i have to open one text file and read it from http link on website like: "http:\\website\dir\sample.txt" iam using c# as language.How to do this.

Member Avatar for LizR
0
131
Member Avatar for Bhoot

I am writing a RAT in which i have also included a keylogger as a DLL file. here is my code in the keylogger.dll : [CODE] //function.h -- the file which will be referenced by my RAT project file.///////////////////////// extern "C" __declspec(dllexport) void setHook(); //keylogger.h////////////////////////////////////////////////////////////////////////////////////////// #if !defined(AFX_KEYLOGGER_H__5979CE3A_20A6_4172_BBF1_9F7C091CC182__INCLUDED_) #define AFX_KEYLOGGER_H__5979CE3A_20A6_4172_BBF1_9F7C091CC182__INCLUDED_ #if …

Member Avatar for Bhoot
0
277
Member Avatar for adaykin

I've seen a lot of different possible ways to do so, but I was wondering what people thought the most efficient way was.

Member Avatar for adaykin
0
3K
Member Avatar for scottyscotty19

Hi, I have produced an er diagram for an assignment which I have attached. Can somebody please tell me if it is correct and if not can you please let me know where I went wrong Thanks

Member Avatar for scottyscotty19
0
209
Member Avatar for Shipintern

Does anyone here know of a shopping cart application that can be private labelled and resold as a different brand? It should be easy to use, have solid reporting, integrate with Quickbooks and allow design modification without HTML skills. Thanks.

Member Avatar for Shipintern
0
125
Member Avatar for replic

Hi everyone, as the heading already says i want to check whether a folder is a network share or not. So far i tried to achieve this by reading the file attributes but that did not lead to the right solution. If anyone here knows how to do this please …

Member Avatar for replic
0
464
Member Avatar for bondo

I have no clue why this isn't working. The top part that reads into size, shortTime, longTime, and threshold work fine. Down below where I try to do the exact same thing and read into x, i get segmentation fault every single time. It seems to me that everything is …

Member Avatar for Narue
0
150
Member Avatar for DLightman

I have a bunch of sort methods in a class: [CODE=cplusplus] typedef int DataType; void bubbleSort(DataType theArray[], int n); void insertionSort(DataType theArray[], int n); void mergesort(DataType theArray[], int first, int last); void quicksort(DataType theArray[], int first, int last, char * pivot_type); void selectionSort(DataType theArray[], int n); [/CODE] In my main …

Member Avatar for DLightman
0
88
Member Avatar for MaxVK

Hi there. I am using a RichTextCtrl on a window with a toolbar. The toolbar has a save button on it that is disabled by default when the application starts. I need this button to become enabled when the user changes something in the RichTextCtrl, but I'm having trouble working …

Member Avatar for MaxVK
0
81
Member Avatar for rmlopes

Hi all, I was developing my app under Linux, using the Loki library. No I am trying to work on it using visual c++ under windows XP. I can compile without errors both my project and the loki library, which created a loki_D.lib. I include this .lib through the makefile. …

Member Avatar for rmlopes
0
205
Member Avatar for sonia sardana

I have made two resource files,named 1)Form1.en-US.resx Name Value Button1.Text English 2)Form1.fr-FR.resx Name Value Button1.Text France My Code is as Under- [code]Imports System.Globalization Imports System.Threading Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim ci As CultureInfo Dim aL As New ArrayList() For …

Member Avatar for sourav bansal
0
232
Member Avatar for gangsta1903

As far as I know, exceptions that are not subclasses of runtime exception or error should be caught (handled). When a file exception occurs, it should be caught because its a subclass of exception class, but how can it be recovered? If file is not found,it sounds silly to recover …

Member Avatar for gangsta1903
0
102
Member Avatar for kitty7

Hello, I'm am really new to C++; I've only been doing it for a couple of months. However, in my class, I have no idea what I've been doing wrong...I'm posting my program and the assignment because I desperately need the insight. I'm not sure if I am in the …

Member Avatar for kitty7
0
138
Member Avatar for ddanbe

Anyone out there any ideas why this compiles and runs? I'm using Visual C# 2008. [CODE=csharp]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public enum fluf_value { thegood, thebad, theugly, }; static fluf_value MyFunc() { return fluf_value.theugly; } static void Main(string[] args) { MyFunc(); …

Member Avatar for ddanbe
0
193
Member Avatar for ccandillo

I am trying to run the following screen scraping script but it's not displaying any output. Can someone tell me what I'm doing wrong? [CODE=python] from BeautifulSoup import BeautifulSoup import urllib url = 'http://toronto.en.craigslist.ca/search/cta?query=civic&minAsk=min&maxAsk=max' doc = urllib.urlopen(url).read() soup = BeautifulSoup(doc) tags = soup.findAll('p') for tag in tags: addate = tag.contents[0] …

Member Avatar for ccandillo
0
174
Member Avatar for tomtetlaw

Hi all, Im making a test text game and i got this error when i was trying to run it, after i had told it i wanted to attack: [code=python] Traceback (most recent call last): File "/home/tom/Desktop/Python/Text game/main.py", line 109, in <module> main() File "/home/tom/Desktop/Python/Text game/main.py", line 105, in main …

Member Avatar for tomtetlaw
0
251
Member Avatar for Achupa

Hi, I have an assignment that's giving me some problem: [quote] "1.Add methods to your Human that return collections of arms and legs. implement these methods by iterating through the collection of limbs and checking what type of limb they are. Note that you will need to use the instanceOf …

Member Avatar for stultuske
0
833
Member Avatar for meddlepal

I am having a major problem with a really simple File I/O operation. I have a pretty simple datafile filled with a list of names and courses. [CODE=text] Happy Singing Dopey Dancing Sneezy Etiquette Slimey Math Grumpy Mining Slinky Karate Happy Mining Dopey Mining Doc Singing Doc Math Doc Medicine …

Member Avatar for meddlepal
0
91
Member Avatar for smile4evr

hi... i have a small doubt in hw to check the initial charecters in text... like if the first two letters of my text is OS or TP... so based on that i should be able to select which database to select... and one more doubt is dat suppose i …

Member Avatar for smile4evr
0
271
Member Avatar for Icebone1000

I don't knof if that's the right place, since it's not c++ specific but a windows development doubt... (and sorry my english) My problem is kinda stupid, but i don't know whats happening, im tryng to show a popup menu when user press the righ mouse buttom, in the cursor …

Member Avatar for Icebone1000
0
1K
Member Avatar for BestJewSinceJC

I read about data forwarding and according to my notes, a nop (no-op) is required before a beq operation and after a lw operation. What about sw?

0
61
Member Avatar for VernonDozier

This is part of a larger project. I've simplified it here. I am implementing a word search program where word puzzles are produced and displayed. There are two main panels. One is the word search panel where there are rows of letters that spell words in different directions. The user …

Member Avatar for VernonDozier
0
5K
Member Avatar for jayjaysam0441

Hello, I need help!!! Very new to programming. I need a program that will display a menu with the letters C,E,F,L and X for exit and allow the user to select a letter from the menu. If the user selects X,print an appropriate message and end the program. If the …

Member Avatar for jayjaysam0441
-1
146
Member Avatar for freelancelote

Hi, why is it giving me the warning: deprecated conversion from string constant to ‘char*’ How may I fix this? Any help is welcome [CODE=cpp] #include <iostream> using namespace std; class Melarki { public: Melarki(): first(""){}; Melarki(char * mimi): first(mimi){}; ~Melarki(){delete first;}; char * first; }; int main() { Melarki …

Member Avatar for freelancelote
0
622
Member Avatar for Emerald214

1) This is a sample OpenGL program. 2) I got this error when the console window (black screen) shows: freeglut Error: Function <glutDisplayFunc> called without first calling 'glutInit' 3) VC++ 2008, WinXP OS, Win32 consolde app project, all libraries installed. [code] #include <windows.h> #include <gl/glut.h> void display() { // clear …

Member Avatar for MosaicFuneral
0
2K
Member Avatar for cmills83

i have tried a few tutorials but i cant get this working. I am trying to create a div with the id of overlay and insert it right after the body tag when a function is run. can anyone help? thanks

Member Avatar for cmills83
0
2K
Member Avatar for NinjaLink

Hello.. This is what my program is suppose to do: -find length of list -check for empty list -insert in back of list -delete from front of list [B]I have everything done except finding the length of list and check for empty list.[/B] I need help getting the length of …

Member Avatar for ArkM
0
3K
Member Avatar for flash121

Hello! I've started learning assembly and I have some problems with a program. I'm trying to write a program that would print some text x-times (x would be inputed by me), but I always get an infinite loop, because it seems that the counter value doesn't get updated in the …

Member Avatar for flash121
0
144
Member Avatar for johnny.g

hi all i m using asp.net 2005 and sql server 2005...i have a dropdown list in my page...i have a table called as details...all i want to do is bind the fname from details table to dropdownlistbox...but the thing is tht i want to each and every step through coding...is …

Member Avatar for jpramac
0
306
Member Avatar for adam291086

[CODE]#!/usr/bin/python # e begoli, python connector for mysql # import MySQL module import MySQLdb # connect db = MySQLdb.connect(host = "localhost", user = "adamplo1", passwd = "U7RJM5HQ", db = "adamplo1_UniProject") # create a database cursor cursor = db.cursor() # execute SQL select statement cursor.execute("SELECT * FROM User") # get the …

Member Avatar for Stefano Mtangoo
0
118
Member Avatar for grambo

Alright this is my first program in python, so be gentle. I have 2 files I need to basically combine to create a record in mysql. Features.txt has around 1300 records and property.txt has about 25,000 records. I can read in property.txt fine and get my insert statements. My problem …

Member Avatar for jlm699
0
130
Member Avatar for clutchkiller

When switch"ing" (....) If the user inputs 1, would you just use case 1: or case '1': thnks

Member Avatar for clutchkiller
0
138
Member Avatar for VernonDozier

I have an applet that is not initializing: [code=JAVA] import javax.swing.*; public class WordSearchApplet extends JApplet { public WordSearchApplet (int width, int height) { } public void init () { new WordSearchApplet (700, 800); } } [/code] Here is the error I get. [quote] load: WordSearchApplet can't be instantiated. java.lang.InstantiationException: …

Member Avatar for VernonDozier
0
107
Member Avatar for lonestar23

I have two pages 1.) form page 2.) I-frame page. What I am trying to do is: Once the form page is submitted, javascript in the second page would retrieve the values and place them into a an I-frame with a given url. Example: === Page One === <form action="page123.html"> …

Member Avatar for lonestar23
0
95
Member Avatar for MrDiaz

Hello, I'm creating a subclass from an already defined class. Let's say I have a class called Student and it has a default constructor. Now I want to create a child class of Student, but when I create it, it seems that it's taking the constructor instead of the actual …

Member Avatar for MrDiaz
0
92
Member Avatar for k2k

I had a similar script in solaris and it had no problem. I wrote this one in freeBSD and it gave me strange output. Can anyone please tell me why? thanks a lot [code] #!/bin/sh #This is a shell script that checks file system capacity mounted on /home directory #If …

Member Avatar for eggi
0
104
Member Avatar for atman

Hey guys., i wrote a little program to calculate the foreign exchange of canadian dollar to french frank. but when i validate an input(it has to be between 1 and a 1000), i get a problem even though it makes user to reenter the number, still the very first number …

Member Avatar for bionicseraph
0
159
Member Avatar for asilter

I did not care on warnings. But they put me in trouble lately. When compiler comes to the statement below it gives the warning. [code] /* void ** vpSec00 comes as an argument */ int hSec = 0; size_t nbytes; *vpSec00 = bitio_o_close(hSec0, &nbytes); [/code] it says: warning: assignment makes …

Member Avatar for SphinCorp
0
301

The End.