132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mrackley86

New to templates and lists but i have to use them for a class project. I got it working in one file then i tried to make it a class and I keep getting this error: 1>c:\users\r4ck13y\programming\c++ projects\project2.1\project2.1\merginglists.h(11) : error C2955: 'std::list' : use of class template requires template argument …

Software Development c++ visual-studio
Member Avatar for mrnutty
0
181
Member Avatar for db132074

Hi, I'm having a problem with displaying names from a text file. I'm passing the names from the text file to an array that will be sorted, but I'm not getting the names to show like I want them to. It should display the different names as Last, First But …

Software Development c++ file-stream
Member Avatar for NathanOliver
0
918
Member Avatar for timbomo

How would i keep track of money spent? and items bought when i loop and how do i say i want multiple items meaning if i want to purchase more than one teeshirt or mug. /* SIUE's bookstore is having aspecail sale on tiems embossed with the cougar logo. For …

Software Development c++ ios
Member Avatar for timbomo
0
117
Member Avatar for devz2k

hey there, i am creating a program, and i have text fields such as Customer Name, address, postcode, telephone email etc. and i also have a button 'add record' what do i have to code in add record to actualy save the records.. will i have to make a file …

Software Development microsoft-access vb.net visual-basic
Member Avatar for samir_ibrahim
0
108
Member Avatar for nsjoe

Can someone quickly point out what the problem is here? I'm sure it's something small but I've been coding for too long to see it. The problem is that in the balance method call, the first parameter is an array. if I hard code a test array, or if I …

Software Development c++
0
61
Member Avatar for Lukezzz

I have a panel called panel1. What I wonder how it is possible to do is that when you click the mouse on the [B]location 304,369[/B] in the panel, I want to display a messageBox. How would that be possible to identify the location in code ? [code] private: System::Void …

Software Development c++
Member Avatar for Lukezzz
0
522
Member Avatar for badlucky

so i have my main program which reads in a data file through the command line, and the data file is a list of names, each line consists of "last name first name" (no quotes obviously) all i want to do is print out the list of names as "first …

Software Development c
Member Avatar for badlucky
0
74
Member Avatar for PMACLEAN

Could someone please advise me on how to implement fork() in a parallel processing (multiplying) of a 2d array....I have been at this for far too long.. here is my code [code] for (int i = 0; i < rowCol[0]; i++ ) result[i] = (float*)malloc ( rowCol[1] * sizeof(float) ); …

Software Development c matrix-multiplication multithreading
Member Avatar for abhimanipal
0
182
Member Avatar for ppotter3

Hello, I am working on a program that takes an integer array filled from a random number generator. These values are suppose to be from -5000 to 5000, 2500 of them. Then I want to find the standard deviation of the numbers in the array. I am required to use …

Software Development c c# c++ ios
Member Avatar for ppotter3
0
1K
Member Avatar for fuggles

I am new to Android development. This compiles in Eclipse without any errors, but when I run it in the emulator, it crashes, why? [code=java]package com.buttontest; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class ButtonTest extends Activity { int timesPressed = 0; String timesPressedText = ""; …

Software Development android android-development java
Member Avatar for fuggles
0
337
Member Avatar for sammyboy289

Hi, im a begginer to python, and i've been doing it a small while now, i've been attempting some puzzles of a website, and have met a small problem, and i can't find it. My code is below and i will explain my problem, ask how to sort it, and …

Software Development python
Member Avatar for sammyboy289
0
95
Member Avatar for devz2k

hey there, i have a main menu on my program which has the option of registering. I have enter name and password .. and a button Confirm i want to be able to store the added username and pasword to the login form so that it will work... what must …

Software Development vb.net visual-basic
Member Avatar for devz2k
0
99
Member Avatar for clayton797

I've been trying to fix this error for a while now, I could really use some help. C:\Users\Clayton\Documents\CH4P11.CPP(71) : error C2676: binary '>>' : 'class std::basic_ostream<char,struct std::char_traits<char> >' does not define this operator or a conversion to a type acceptable to the predefined operator code: #include <iostream> #include <iomanip> using …

Software Development c++
Member Avatar for Duoas
0
469
Member Avatar for Begjinner

When you use char(130) you get the é. When you do int('é') you get -23... and with my program to get value it is -126... How on earth can I get the 130 value when entering the é ? Thanks for looking. With this program I printed out the letter …

Software Development c++
Member Avatar for Duoas
0
137
Member Avatar for ssquared

I'm writing a C++ program in which I need to display the bits that represent both a 32-bit and 64-bit floating point number. I had no problem properly displaying the 32-bit number, but I'm having trouble with the 64-bit number. This is the code that I'm trying to use: [CODE] …

Software Development c++ display
Member Avatar for ssquared
0
228
Member Avatar for neostead

Hi, i'm working on simple fullscreen launcher application, to use it with remote on my HTPC media center to launch xbmc, stepmania, nes emulator, etc I'd like to use png icons with transparency, but there is a problem. In alpha channel of loaded icons i can see the back frame's …

Software Development python tkinter
Member Avatar for neostead
0
4K
Member Avatar for timbomo

Im trying to figure out how to error trap this program so if the user doesnt put in a valid response then a message will cum up and they will go back 2 the beginning until they do it correctly. also i want to subtract the money they spend and …

Software Development c++
Member Avatar for WaltP
0
99
Member Avatar for purgatoryred

Please forgive my ignorance but forever I've been in the habit of building a library of useful subroutines which I call from an application I am building. Recently the language has been python - a distinct departure from my experience. I've been unable to create a reasonable library. Here's the …

Software Development assembly python
Member Avatar for purgatoryred
0
141
Member Avatar for miteigi-san

NOTE: ~this code is in c++ ~you need not change anything in the code ~the commented lines are there just in case you want to see how the program works in real time - simply uncomment them and run the program, these commented lines are not necessary for the program …

Software Development c++
Member Avatar for dusktreader
0
380
Member Avatar for RavetodaGrave

[code] // need help with this how do i get the for loop to print out just //the alphabetic words { public static void main(String[] args) { String string ; int index ; String sentence; String newSentence; String word; int startPos; int spacePos; int wordCount; boolean lastWord; boolean alphaWord; char …

Software Development java
Member Avatar for verruckt24
0
200
Member Avatar for timbomo

How can i make this into a menu where you select a letter and you get a response that reads you have choosen "a" which is $2.50 /* SIUE's bookstore is having aspecail sale on tiems embossed with the cougar logo. For a limited time, three items, mugs, teeshirts, and …

Software Development c++ ios
Member Avatar for Lerner
0
109
Member Avatar for C++ Beginner

Problem: Write a class that defines a car. The car class stores the following data about a car: [B][U]Member Name Data Type[/U][/B] make string model string vin string owner string doors int mileage float gas tank float trip float gas remaining float Create methods to set data into the data …

Software Development c++
Member Avatar for jonsca
0
480
Member Avatar for nkinar

Hello-- I've been writing some code in C++ to test the [I]tffs-lib[/I] library, which is written in C. The library provides functions for directly accessing a FAT file system from within a program. Although most modern operating systems have drivers for accessing the FAT filesystem on SD cards, I am …

Software Development c++ legal operating-system
Member Avatar for nkinar
0
297
Member Avatar for persianprez

I'm trying to figure this out, but every google I do just brings up garbage. What I'm trying to do is split a string at an * I want the string to be in 2 parts basically. So.. Say the string is 2478*72-432*823-74 What I want to do is split …

Software Development python
Member Avatar for persianprez
0
240
Member Avatar for I0adidas0I

OK I need some help... so far ive been able to get everything on my own but...im making a program that selects questions from an array numbered 1-40. i put in a random fuctions so the questions are chosen randomly. but i want to have it so that theres no …

Software Development c++
Member Avatar for peter_budo
0
160
Member Avatar for localp

I need to append to Map to another Map... and this is what i did .. [code] import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class sampl { public static void main(String[] args) { Map<String,String> FileMap =new HashMap<String, String>(); Map<String,String> stateMap =new HashMap<String, String>(); stateMap.put("1", "value0"); stateMap.put("12", "value1"); stateMap.put("13", "value2"); stateMap.put("14", …

Software Development java
Member Avatar for cale.macdonald
0
106
Member Avatar for ms_farenheit1

I have been having a lot of trouble getting my overloaded operators to properly with each other, especially in cases such as a=a+b+c When I execute the program, I get an error: "Unhandled exception at 0x01201f10 in Project1_v3.exe: 0xC0000005: Access violation reading location 0xcccccccc." But I am not sure exactly …

Software Development c++
Member Avatar for jonsca
0
122
Member Avatar for jesoj

Hi All, Can anybody help me with source code to obtain dynamic run time binding without using virtual functions in C++. I would like to use my own pointer just like VPTR and a table (array) like VTable. Thanks in adv, Regards, JE

Software Development c++
Member Avatar for Salem
0
225
Member Avatar for vipin_98

which function is used to increase the font size in c++ program

Software Development c++
Member Avatar for Salem
0
44
Member Avatar for cecilia_g1

Hola, Necesito leer un valor de una variable como hexadecimal, y guardarlo en otra, pongo el codigo y quiza con eso quede mas claro. Tengo esto: buffer es un arreglo de caracteres y aux tambien buffer[i] = atoi(aux); Un ejemplo: atoi(aux) me regresa 40 entonces yo quiero que el valor …

Software Development c
Member Avatar for Narue
0
138
Member Avatar for icu222much

I am trying to program with semaphores and was told that I should use sem.h. When I compile, I get the error: "sys/sem.h: No such file or directory". How can I fix my problem? [CODE]#include <stdio.h> #include <sys/sem.h> int main() { printf("I am alive \n"); getchar(); return 0; }[/CODE]

Software Development c
Member Avatar for icu222much
0
1K
Member Avatar for invisi

It doesn't compile, why? [CODE]#include <iostream> #include <string> using namespace std; int main() { for(int cnt1 = 0, int cnt2 = 10; cnt1<10; ++cnt1, --cnt2) { cout << cnt1 << "--------Hello!---------" << cnt2 << endl; } system("PAUSE"); }[/CODE]

Software Development c++
Member Avatar for WaltP
0
307
Member Avatar for OmarOthman

Dear All, I want to do two mathematical operations, say [CODE=c] a / b [/CODE] and [CODE=c] c / d [/CODE] then test whether they are equal. I'm really very bad at computer errors, I think I need to read more about it (any reference is welcome). So, my question …

Software Development c++
Member Avatar for WaltP
0
165
Member Avatar for tjsail

Hey guys, so i've posted here before about regex, and i was told that some of you may be able to check my regexes for errors after i have created them. I have one that looks like it should work to me, but it absolutely will not. [code] public static …

Software Development java regex
Member Avatar for ~s.o.s~
0
114
Member Avatar for anthony5557

I wonder if anyone can help me. I'm suppose to write a program to ask the user to enter the file they want to display and display the file they want 24 lines at a time. It pauses at 24 and asks them to press enter and displays the next …

Software Development c++ file-stream ios
Member Avatar for WaltP
0
103
Member Avatar for corbenik

Hi,everyone. I've been trying to extend Python's file type but I'm new to Python so I don't know if I'm going about it the right way. I hope someone can help me out with this or point me in the right direction. The problem isn't really subclassing file, but a …

Software Development python
Member Avatar for corbenik
0
125
Member Avatar for chinnaedu

hi all....i have small problem with replacement of part of a character array..... my problem is i have character buffer buff[] the content in it is "DESCRIBE rtsp://<ip-addr>:9000/2.sdp RTSP/1.0 CSeq: 1 Bandwidth: 384000 Accept-Language: en-US User-Agent:Windows NT 5.1Service Pack 2)" now here i want to replace "9000" with the number …

Software Development c++
Member Avatar for tetron
0
111
Member Avatar for tetron

I have a std::string (char *, std::string::size_t ) constructor failing and I am not sure why. For my small test file there was no problem, but when using ifstream::read() with an unsigned int sz of 1Gb (1073741824) (I think that I used a pos_type 1st time) and the resulting char* …

Software Development c++ file-system xml
Member Avatar for tetron
0
211
Member Avatar for Her-o

I have never done any programming in my life but I have decided to go into engineering and in doing so we have to take this intro to programming course and I am pretty clueless. I am starting to get the hang of how python works but to put my …

Software Development engineering python
Member Avatar for jwenting
0
247
Member Avatar for twoshoes

Hi New to this forum. Looking for advice. I'm a doctor working in a hospital and know little if anything about programming. Out of necessity I learned just what I had to to write a VB program for some specialized monthly notes that are otherwise very time consuming to write. …

Software Development legal visual-basic
Member Avatar for SCBWV
0
152
Member Avatar for spirit3ch

Hi guys, I am supposed to implement a sequence using linked list. But I seem to have an error in the code. As I am getting trash for the results of the concatenate function. It might be a problem with my constructor too. I am not sure. Please help. I …

Software Development c++ linked-list
Member Avatar for spirit3ch
0
1K
Member Avatar for vsagarmb

I have installed the Python Imaging Library. But i am not able to use it. When I run the script in windows it says "ImportError: No module named ImageGrab" I also created the PATH VARIABLE called PYTHONPATH and gave the location of the installed modules. Please help.

Software Development python
Member Avatar for Stefano Mtangoo
0
293
Member Avatar for Krstevski

Hello... I have problem with regex, I want to get the tables from another site... the regex is re.compile(r'<table.*?>(.*?)</table>') but when I get the tables I don't know how to return the value into the tables. [CODE=Python] #html = the page tbl = re.compile(r'<table.*?>(.*?)</table>') return tbl.sub('', html) #return html without …

Software Development python regex
Member Avatar for Krstevski
0
84
Member Avatar for khevz09

My only problem is the spacing..... to make it right.... i need to make it inverted pyramid pattern... like this: [CODE] 9 8 7 6 5 4 3 2 1 9 8 7 6 5 4 3 2 9 8 7 6 5 4 3 9 8 7 6 5 …

Software Development c++
Member Avatar for tetron
0
84
Member Avatar for TheGhost

hi, i need to send keystrokes an application (including, "enter", "left arrow", "right arrow", etc). but how do i do that? i do not see any short and useful examples to doing it. all i have got at the current moment is to get the foreground window using HWND foregroundWindow …

Software Development c++
Member Avatar for VilePlecenta
0
163
Member Avatar for sujithy15

overriden methods provide one interface multiple methods. what is meant by one interface multiple methods

Software Development java
Member Avatar for verruckt24
0
116
Member Avatar for tetron

I am having problems with the new operator() specifically within std::string I appear to have hit a memory limit in visual studio. Ideally I would like someone to help me find one of the following solutions: 1 - Can I access the memory in a very big file directly without …

Software Development c++ file-system ios visual-studio
Member Avatar for Ancient Dragon
0
1K
Member Avatar for MacUsers

Greetings everyone!! First of all, I'm a python newbie; my apology in advance if I'm being silly with my question but I really hope some one can help me on this. I got myself a project (just to start) to read iTunes library .xml file - iTunes Music Library.xml - …

Software Development data-structure os-x python xml
Member Avatar for Pupo
0
725
Member Avatar for anatwe

Hi, I want to define buttons that will switch between tab pages in a tabControl. What should I put in the click functions of the buttons? I tried focus, bringToFront, select, show. Nothing works... Thanks

Software Development
Member Avatar for anatwe
0
134
Member Avatar for dilake

I am not able to find the Compile Tab in Project Properties in vs 2008. Can someone help me out?

Software Development
Member Avatar for dilake
0
99

The End.