Beginners - April 2011 (Page 29)

by Nipa
bool, not working
 
Hi, I get this error and warning error: no match for 'operator!' in '!vast' note: candidate is: operator!(bool) <built-in> In my bool function which is. ...
[1 reply] : The compiler thinks you're doing (!vast)=="" What you want to do ... (by Disch)
help on vectors
 
I need write a program to perform vector addition but not use the STL vector class and not include extended input validation. The program is to read from cin an...
[no replies]
New and Delete with Deque
 
Would this work to delete the memory that I allocated of type object? class object; int main(){ deque <*object> mydeque; Object * ptr; ptr = new(...
[2 replies] Last: Awesome thanks alot. I wrote this in notepad at work so the x and pop_... (by Deftwun)
SDL tuts?
 
Anyone know of any good SDL tutorials or books?
[3 replies] Last: I don't know a good SDL's book, so, in the Amazon has much books of th... (by andrezc)
Object oriented errors.
 
I am still new to object oriented programming and tend to screw up the syntax. Customer.h file #pragma once class Customer { public: Customer()...
[2 replies] Last: in c++ all keywords are not capitalized. The fact that your Private is... (by hamsterman)
Linker Issue
 
I'm trying to update some legacy code and I'm running into an interesting problem. I have a static member variable that is defined as a global in a .cpp file. ...
[1 reply] : From what I can tell I can't define Element<T>::KeepKeys as a type ... (by ricomoss)
Binary Search Tree from Hash Table?
 
So I am told to create a "Forest of Binary Search Trees" from a hash table. But am a bit confused on how to go about it. What am thinking is just flipping throu...
[no replies]
Hash Table into Binary File?
 
So I have this task to store a hash table into a binary file. I have a working hash table with 10,000+ records but I have no idea how to get started with the bi...
[1 reply] : Any ideas any one? (by Bman900)
Stupid question
 
I know that this may sound stupid(or not) but i got to know: it is possible to make something like : class Myclass{ protected: vector<Myclass> myvector; pub...
[2 replies] Last: Thanks a lot (by horance89)
Dynamic memory segmentation fault
 
#include <iostream> #include <string> #include <new> #include <cstdlib> using namespace std; int main(){ int i = 1; do{ string * p; p = new (noth...
[4 replies] Last: But I do thank you. i-1 solved my problem (: (by Failspur)
by Nipa
Isspace
 
Hello! I have this problam and can't seem to figure it out. The following: The program I am trying to make is a quiz of some sort. It asks a question, the...
[2 replies] Last: You can use remove_if: http://www.cplusplus.com/reference/algorithm/re... (by Bazzy)
by ascii
visual studio troubles!!! please help
 
ive recently purchased a copy of Ivor Hortons teach yourself Visual C++ 2008 because it was far cheaper than the 2010 version. however it says that visual C++ ...
[6 replies] Last: haha yeah i might (by ascii)
Making a program terminate?
 
Hi guys I just started C++ and I bet my code pasted below will be screaming out NOOB from all directions... All i wanted to ask you guys is how do I make the pr...
[5 replies] Last: Sorry for the multiple posts, I figured it out! I just needed to enter... (by elementz)
srand 0 doesn't make new numbers
 
Hi there I want make new random numbers for each of cb1,cb2,cb3,... but i dont know they made same // Group14-6.cpp : main project file. #include "stdafx...
[2 replies] Last: How about instead of posting the entire program, you just post the sni... (by packetpirate)
by tonnot
How to retrieve information in a map within a map
 
I have : map <int, map<int,int> >; Ok, anybody can help me to define an interator and a finder to this kind of map? map does not work inside a const func...
[1 reply] : map::operator may modify the map: if the key doesn't exist in the map... (by Bazzy)
by sumon
Mentor exchange - Autohotkey <-> C++
 
Greetings everyone! I have for quite some time meant to get into more serious programming, and upon realising that the basic programming course on my univers...
[3 replies] Last: Anyone? (by sumon)
cin.get(); V/s return 0;
 
Hi all, I'm totally new in programming. I've been learning C++ since yesterday through online tutorials. I'm using Dev-C++ 4.9.9.2 on XP. I have two concern...
[2 replies] Last: Thanks for your help and the suggestion. (by heckwrd)
columns and rows counting
 
hi i need to make a program to count the columns and rows, and subsequently use this matrix load I did this program, but I have a file that I have no idea ho...
[no replies]
by osaka
need help in top-k word frequent algorithm
 
i need to do a program that is called Top-k, which that can read many files in a same directory, and after reading these file, and it should print the most k fr...
[2 replies] Last: what do u mean? is it very difficult to do that?? anyone can help me a... (by osaka)
#define, #ifdef, #endif to remove cout code
 
I'm trying to figure out how to use: #define, #ifdef, and #endif with my code (with no luck). During debug, i want the couts in there to appear, but then i wan...
[3 replies] Last: #ifdef _DEBUG #define DEBUGPRINT(x) cout << x; #else #define DEBUGP... (by Disch)
April 2011 Pages: 1... 2728293031... 55
  Archived months: [mar2011] [may2011]

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