Beginners - November 2010 (Page 27)

get methods
 
Hi all, I would like to ask if there is any other method than the usual get -return method in order to get a variable which is argument to a class constructor? ...
[2 replies] Last: Member variables? (by Pax)
ordered doubly linked list
 
hey everyone. I'm writing a code to read student information from file and store them in an ordered doubly linked list. the list should be ordered according t...
[2 replies] Last: Thanks for you help I will consider your notes (by alaa sam)
by Snhr
fstream, seekp and seekg
 
I was reading a tutorial for the seekp and seekg commands a couple weeks ago and I saw something about getting seekg to the same spot as seekp to input a variab...
[7 replies] Last: Thanks guevara and duoas. Maybe it's just cause I'm extremely tired I'... (by Snhr)
Problem with boost
 
I been working on a server via boost networking and can't get it to work: hers my code: server.h: #ifndef SERVER_H #define SERVER_H #ifdef WIN32 #defi...
[7 replies] Last: I have been using ASIO for a *long* time, and I noticed the issue imme... (by OvermindDL1)
by asput
Deleting columns and rows in 2D vector
 
Hello, I am struggling to delete one column and one row from a 2D vector, where the column and row to be deleted depend on the position of the element, not ...
[4 replies] Last: Fun: #include <algorithm> #include <iostream> #include <iterator... (by Duthomhas)
How to use the comparison operator(<) in user-defined Priority Queue?
 
Hi.. I am new to C++,I want to create a Priority Queue class, I don't know How to use the comparison operator( operator < method ) in my class and why we are us...
[3 replies] Last: BTW, your operator should take const arguments: bool operator < ... (by Duthomhas)
colour to font and background (1,2)
 
# include <iostream> using namespace std; int main () { int c; do { int a,b,c ; cout <<" enter ur first no. " << endl; cin >> a; ...
[20 replies] Last: Code::Blocks can use any main stream compiler (except for Clang and a ... (by closed account S6k9GNh0)
for statement not incrementing properly
 
I know what's going to happen but I'm seeing spots. I've walked away from this and let it set, hoping I would have the solution jump out at me. Unfortunately th...
[3 replies] Last: You need to fix your code tags please. The if (time < 1 || speed < 0)... (by Zaita)
Wumpus Hunt
 
Stroustrup has an exercise in which the reader writes a program for the wumpus hunt game. A first draft of my code is below. It compiles and runs partly corre...
[11 replies] Last: [quote=unoriginal]@Athar. Not to sound rude but you are incorrect. ... (by Athar)
passwords
 
i password protected my calc (i'm paranoid) but i want to change the password so it looks like ******* ****** when i log on. /* not copyrighted in any way ...
[1 reply] : http://www.cplusplus.com/forum/articles/7311/ http://www.cplusplus.... (by Zaita)
A loop error... Anyone able to solve this?
 
I think there is a problem with my while loop in this code. But I can't find it, can you? #include <iostream> #include <time.h> using namespace std; in...
[15 replies] Last: Thank you. (by ThePixel)
Run-Time Check Failure #2 - Stack was corrupted.
 
Have seen this error posted but no solutions that work for me.Here is what I have and it goes thru the debug but doesn't compile without this error message usua...
[3 replies] Last: I'm ending this thread with the corrected version. Thanks to all that ... (by alpha49er)
Destructor calls?
 
Cant find a good name for the title :/ I have a memory leak in an OpenGL application i am creating. I cant seem to find that memory leak. My question is,...
[10 replies] Last: Not necessarily. The compiler can often optimize out object copies, s... (by Disch)
C++ trouble with a template for a sorted list?
 
Program Requirements: Let A be an array of n elements. Write a template function that takes an unsorted array of type <class T> as an input parameter and feeds...
[3 replies] Last: Once again, it doesn't work, because you don't make it work. You clos... (by hamsterman)
by sdalby
Are There Any Decent Practice Sites?
 
Hello, I am a college freshman who is taking a course in C++ programming and I am having a really hard time. I was wondering if there is a website much like ...
[1 reply] : There's an article on this forum with a short list of various programm... (by Null)
ATM Program
 
Hello I am just a newbie when it comes on programming, I would like to ask if anyone who can help me sharing some source code about ATM program using C++.
[1 reply] : Just google for "C++ ATM" (by Null)
by lare26
enum in class
 
I am creating a program that will test my current "skills" with c++. Here is a short description: A "city map" with people walking randomly through it. The p...
[11 replies] Last: Thanks, everyone. You have been a big help. I would've avoided putting... (by lare26)
by alexbg
I got a problem...A huge one.. (1,2,3)
 
deleted
[52 replies] Last: [quote=Nohbdy]// This is such a fun, and confusing, topic. Lmao, wtf i... (by moorecm)
String compare that ignores case and allows spaces?
 
Hi everyone, I just found stricmp which is great for ignoring case, but is there a function that can ignore case and allows spaces to be used? I tried stricmp w...
[1 reply] : There isn't a standard one. (by kbw)
static question
 
Hello everyone ,i have two question 1)Is there any difference between the declarations static int a and int static a; 2) class one { public: int ...
[3 replies] Last: ok thanks guys :D (by kikirikou)
November 2010 Pages: 1... 2526272829... 42
  Archived months: [oct2010] [dec2010]

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