General C++ Programming - April 2012 (Page 22)

Segmentation Fault
 
I am writing a program to read in 2 4-digit char patten from the user and then replicate each pattern to 32 digits. (let me call this stump_si) then i need to a...
[5 replies] Last: Thanks for your help (by nilagayu)
by itcsr
shifting order of numbers
 
im still not sure if I should use a string or an int (array). but im trying to get binary string such as 01001011 and perform a left and right shift on them....
[1 reply] : The following doesn't do what you think: int a=10110101; In C++, ... (by Duthomhas)
by Bouya
Problem with virtaul fonctions
 
hi I got this error when i try to heritate from a class that use virtual fonctions: .... because the following virtual functions are pure within ‘NetDevi...
[2 replies] Last: If you inherit from a class that has pure virtual functions you have t... (by Peter87)
Some quite different questions
 
So I have to make an address book until Wednesday. First of all, it has to write and read its information from a binary file. The program must be able to operat...
[12 replies] Last: You could use a buffer to allow the user the enter as many characters ... (by MrHutch)
by sanyam
Sending bits out of the audio port?
 
Hi.i'm using windows 7(32 bit). code block compiler. OK. i have to get the binary code of a file out of the audio port(headphones). for e.g. if the bin code of...
[5 replies] Last: Hi Disch and Albatross. I know that i can write a wave as: P= A*sin(w*... (by sanyam)
Pig Latin Translator
 
I am trying to write a program in C++ to translate words into pig latin. I've gotten words that begin with vowels to translate correctly, but I can't get words ...
[2 replies] Last: I've fixed up the code, and I've gotten it to translate words that beg... (by AdamBomb89)
deleting elements from an array.
 
I have a programming project for class where I'm writing bank software. One of the modules I have is I'm trying to close an account. I keep getting a segmentati...
[3 replies] Last: First, int i; AccountInfo newbankRecord you havent given i a value,... (by naraku9333)
Need help getting errors inheritance.
 
Problem has been Fixed
[2 replies] Last: Thank you very much. (by Subzero030201)
Managing my array
 
So I have this template based class which has an array, queue<T> * items ; , and I want to test if the array is empty. How would I do this? I've tried: que...
[3 replies] Last: Is that size variable, that's used as an index, the correct value? (by kbw)
User Input
 
I am trying to implement a function orWords(string one, string two) where it searches for a user's words. In main the user must type in two words with an "or" ...
[6 replies] Last: You might want to make sure to read in w before you read y, so that x ... (by Albatross)
input/output and array
 
I have a input file (.txt) which have books in the format: catalogue_number, author_last_name, author_first_name, book_title, genre, availability I have to ...
[3 replies] Last: This is my book.h: #ifndef _BOOK_H_ #define _BOOK_H_ class Book ... (by Stephanie I)
Urgent Help if Possible - Palindrome Problem.
 
First off, I made this code in VB.NET as that's the language I'm the most familiar with, but the professor wants this problem to be solved in c++ so best I coul...
[4 replies] Last: There is an algorithm that finds the minimum number of chars if I am a... (by Legjendat)
c++ programming
 
Please help!!!! This is my program:
[19 replies] Last: use for loops: Book1 = {"Harry potter", "Lord of the rings".. etc.... (by Need4Sleep)
While loops Issue
 
C++ Guru's Can you please assist me in the following below why it is failing. This code is suppose to read from two files. It reads the first line from the i...
[8 replies] Last: In that case you have to start reading from the beginning of ifsbtl ag... (by Peter87)
a sample question....
 
hi everybody . i read in CookBook herbert schildt 4 place a copy constructor is call 1) cl a(b) 2) cl a = b 3) f1( a ) 4) a = f2() now my question is : #inc...
[1 reply] : A constructor is used to initialize an object when the object is creat... (by Peter87)
Restoring Shuffled Image (Binary Img)
 
I am (trying) creating a program with C++ to RESTORE A SHUFFLED IMAGE. The program will be used to restore the original image from the standard original pic ...
[7 replies] Last: For the Noise Image, I found that using Median Filtering works best to... (by simagen)
homework help. please help!
 
i got this assignment for a class and i have no idea where to start. please help! // Lab 1: telephoneWords.cpp #include <iostream> using std::cerr; usi...
[6 replies] Last: i cant find out how to do the stream insertion operator. this is what ... (by cstarter1)
by ldima
Get pixel dimension of an image
 
Hello everyone. I have an image of a certain size,say 640x480. It's possible to get the pixel dimension in mm from that? Thanks all!
[4 replies] Last: ok,what a pity :( .. thank you! (by ldima)
function used both in class and client code
 
Hi, I have a helper function getNum() that I use as a generic way of accepting only numeric input from the console. I use this function in my class as a was...
[8 replies] Last: Thanks for the help. I created a Utility namespace. Now my code is c... (by mrkalkman)
by sanyam
sdl mixer program. need help!
 
I'm new to the SDL libraries. I have got all the header files installed. The program runs BUT it does not show up "hello!". Neither does it play scratch.wav whe...
[3 replies] Last: You should make sure that you don't lose memory in the first place. Th... (by Peter87)
April 2012 Pages: 1... 2021222324... 49
  Archived months: [mar2012] [may2012]

This is an archived page. To post a new message, go to the current page.