General C++ Programming - May 2012 (Page 18)

Viewing hex bytes of a wav file
 
Would anyone know of a quick and painless way to read in the hex bytes of a wav file into a C++ program? My main goal is to find patterns in a 16 byte row (as i...
[6 replies] Last: > find patterns in a 16 byte row (as it would be displayed in a hex ed... (by JLBorges)
by sad
help me please for making these program
 
i need to make this program .but i can't.but i need it so much... work is creation and filling of a new (one-dimensional) array of double precision float...
[no replies]
why doesn't my decrement code work?
 
#include <cstdlib> #include <iostream> #include <string> #include <stdio.h> #include <windows.h> #include <conio.h> #include <exception> #include <proces...
[6 replies] Last: I figured it out !! woot woot thanks for help I over complicated it al... (by code builder)
Segmentation Fault ... Templates
 
Hey there, I'm writing code to sort two vectors simultaneously. One list is used to sort both of them. Here is the code: // sorts countVect highes...
[9 replies] Last: Awesome! Thank-you Cire, that makes sense. Good catch. Ill try that on... (by SexyBachelor)
by Ajib
Finding a distinct values from a pointer array
 
I have got a program from Google which exactly meets one of my demand of obtaining the distinct values count from an array. I will be using this as a small fun...
[no replies]
by Mannah
Constructors
 
#ifndef media_h #define media_h class Media { public: Media (char* p = NULL,char* b = NULL, char = 'A', int = 1); Media (const Media &); Media & ...
[1 reply] : its okaii..........i figured out my mistake =D (by Mannah)
Theorycrafting with Objects and Data Types
 
I was wondering. Lets say you have a class, we'll call it Person. This Person class has several data members, string FirstName, string LastName, int age. Now, l...
[3 replies] Last: Here's my question. Would it be better to instead have seperate conta... (by kbw)
Animated globe showing world history
 
Hi everyone, I'm slowly working my way through "Programming and Problem Solving with C++, 5th edition". I don't know enough to start my project yet, but I thoug...
[1 reply] : Hi there, welcome to the forums! Unfortunately, there isn't a clear-c... (by closed account 3hM2Nwbp)
Why does setting the array to my class not work (operator overloading)? (1,2)
 
Hi, As a general question, can arrays be set to other arrays? For example, this is my code: // CLASS DEFINITION class myClass { private: int ...
[28 replies] Last: What. No. "Hi" is a string literal, not a memory address. And "Hi" has... (by Athar)
by Subby
Help with heap corruption
 
Hey, I'm trying to enlarge an array of pointers for the first time it's working well.. but from the seconde on after i'm deleting the old array it's alert ...
[8 replies] Last: Wow.. you are so right... I feel so ashamed.. =\ I took basicAccount... (by Subby)
Displaying Special Characters in C++
 
Does anyone know how to output special characters in C++ (to the console)? For example, ♠ ♥ ♦ ♣ (the four card suit symbols) . I am hoping for a very si...
[14 replies] Last: Well, I'm using the Allegro graphics library now, so that is probably ... (by Ben Brown)
by JJJSSS
Can someone help with this error?
 
//The error I get is "cannot convert 'int' to 'T*' for argument '1' to 'int readFile(T*,T*,T*,std::istream&)'" //The error is at the highlighted line below /...
[6 replies] Last: It seems that you are trying to build a non-console application. Or y... (by vlad from moscow)
by alkedr
gcc __attribute__((constructor)) and command line arguments
 
I am using gcc. Can I somehow access argc and argv from function declared with __attribute__((constructor))?
[1 reply] : I don't think so. (by Peter87)
How to safely delete something not dynamically allocated
 
If one tries to delete a pointer that isn't pointing to dynamically allocated memory, is there any way to call delete safely? For instance, I thought it would ...
[4 replies] Last: You could try to make some kind of smart pointer type that allows you ... (by blueberry)
Queueing
 
I am working on making a fifo and i've been using 2-d vectors as my storage but recently i have been thinking that queue's would be better but i feel like they ...
[2 replies] Last: Lists seem more like what i need. Although 2d lists seems more complic... (by forceface)
Help regarding resource.
 
I am supposed to submit a multilingual dictionary (Google Translate sort of thing) as my "Data Structures & Algorithms" course's term project. Don't think c...
[no replies]
Help regarding OpenCv and Visual Studio Express 10.0 in 64 bit Windows 7 System
 
I have built Opencv using Cmake and then I am trying to run this code: // OpenCV_Helloworld.cpp : Defines the entry point for the console application. // Crea...
[3 replies] Last: No more here, please. One thread only: http://www.cplusplus.com/forum/... (by Moschops)
by bmwboi
Help with a project!
 
So this is a project that I've been doing for myself for fun, but have ran into a small problem. I defined a structure in a header file, and declared an array i...
[9 replies] Last: What is the point of your namespace if you just usenamespace something... (by Need4Sleep)
Extra Node with Link List
 
I'm developing a program that stores information about different companies in a link list. I must read the information in from a text file, and store it into a ...
[3 replies] Last: Ohhhhh that makes a lot of sense. Thank you very much. (by sharkbait)
Password Input Conversion Problem
 
How can I get an input from the user for a password, and have the input come out as asterixs, while storing theif input, so it can be checked if it is the corre...
[1 reply] : http://www.cplusplus.com/articles/E6vU7k9E/ (by Moschops)
May 2012 Pages: 1... 1617181920... 41
  Archived months: [apr2012] [jun2012]

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