Beginners - June 2010 (Page 22)

Accelerated C++
 
I think it's learning mehtod is quite weird. You immediately start with high en structures and stuff. But I heard so many good things about this book. I hope it...
[1 reply] : I own that book, and I find it excellent. The approach may be unusual,... (by filipe)
long strings not accepted?
 
Hi everyone, This must be pretty basic, but I don't understand it. Consider the following code #include <cstdlib> #include <iostream> #include <stri...
[8 replies] Last: * is the 'indirection operator'. When you say char* ptr; you are ... (by Galik)
Multiple User Input
 
I am fairly new to C++ and mostly used VB up to this point. I am trying to create a program that allows me to input multiple names into an array. Here is my...
[2 replies] Last: Thank you fafner! I new it was something that simple. (by musicman)
DumpBin Problems
 
I'm trying to generate a .LIB File for my DLL http://www.cplusplus.com/forum/beginner/24612/ When I run dumpbin /exports MyDLL.DLL I Get the following Mi...
[no replies]
char input problems
 
Hello, i'm trying to write a simple program just to enter Characters from the keyboard and concatenate the 5 chars into one string. The code below reports a ...
[1 reply] : RomanLetters = letters ; (by m4ster r0shi)
IDE has problem handling vectors
 
Hi, as usual I am pretty new to C++ and just started fighting with vectors. And I stumbled upon a problem I cannot figure out. Whenever I try to do some oper...
[7 replies] Last: for(vector<int>::iterator i=words.begin(); i!=words.end(); ++i) ... (by Scott Vass)
Changes on elements in a Vector
 
Hi, I've got a problem using the Vector-class. When using it to implement a version of Dijkstra's algorithm I ran into reference-issues, so I tried this out: ...
[5 replies] Last: I try to avoid the subscript operator whenever iterators are available... (by Scott Vass)
Line numbering on code samples
 
Can i ask a really simple question?, How do you include line numbering for code samples posted on this forum?.
[2 replies] Last: cheers, i get it. (by Mike200)
Create shortcut
 
I'd need a code to create a shortcut to the program itself in C:/Documents and settings/All Users/Start Menu/Programs/Startup. I've been spending about one h...
[3 replies] Last: Take a look at this -> http://www.codeproject.com/KB/winsdk/makelink.a... (by m4ster r0shi)
problem with return 0?
 
I am making a simple rock paper scissors game ( key word-making. Notice I haven't set up interactions for the numbers yet ) and my compiler says there is a prob...
[1 reply] : Remove the curly brace before return 0. (by Beibin)
by mozly
SDL surface* problem
 
in my main function i have this SDL_Surface* buttonSheet. When i apply the sprite onto the surface using an SDL_Rect it doesent appear, but when i dont include ...
[8 replies] Last: true, but i just showed an example of what it should be, i guess its t... (by closed account y8h7M4Gy)
by zyky
Printing something changes function result
 
EDIT: I found the problem. I forgot to write "return NULL;" at the end of the search function. I'm still really interested in understanding why compiling thos...
[no replies]
by neeko
Header file problems, maybe?
 
I have two classes, ToDo and Family. In one of the ToDo constructors I am passing in a Family object from main (pass by address). This is the code. ToDo::T...
[4 replies] Last: Edit: Yup, de-referencing the object fixed it, it compiles now. It cra... (by neeko)
by lare26
Looking for a cleaner way.
 
I am still learning the very basics of programming in C++. I am asking if anyone is willing to tell me if and possibly how I can make the following code better....
[4 replies] Last: Thanks Duoas. I loved all your ideas and it tought me a few things. Ok... (by lare26)
Is there a command to check if a string exists?
 
Is there a command to check if a string exists? I'm trying to make a database where you enter a name and it gives you the persons details.
[6 replies] Last: No. But your question is a bit like asking "What colour is a piece ... (by Galik)
Error what to do
 
i got an error on this line!!! int main (int argc, char * const argv ) { can somebody tell me what to do. NB: it's the Hello World code!!!
[2 replies] Last: That line is indeed just fine. We will still ask for the whole code. ... (by Albatross)
silly ofstream/ifstream issue
 
Hey there, I've been trying to read up on I/O but none of the sites/books that I've looked at really deal with using the same file as both an ifstream and of...
[1 reply] : oh man, well I was write, it was very simple.... ifstream tinfile("... (by miked983)
Can someone correct my syntax
 
I don't know what's wrong with it, but whenever I try to compiler it, it won't run. #include<iostream.h> #include<stdio.h> #include<conio.h> int display(c...
[3 replies] Last: Thanks you for the post. __________________ http://moviesonlinefr... (by helenk579)
unexpected result of % function
 
Hi, I am very new to C++ and I don't understand why (16807*1622647863)%2147483647 evaluates to a negative number (-1199696159) it should be positive. Than...
[9 replies] Last: If you want to play with modular arithmetic, you might want to check o... (by Duthomhas)
Linear Linked lists with classes
 
Can someone please help me figure out what is wrong with my display function. From what I understand it should work but it doesn't. Please help!! #include <io...
[9 replies] Last: I mostly got it figured out, unfourtunately I required to use dynamica... (by lovely6922)
June 2010 Pages: 1... 2021222324... 26
  Archived months: [may2010] [jul2010]

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