Beginners - September 2009 (Page 22)

Noobie question regarding new line string concatenation
 
Hi all, I have one very simple querstion here. How can I do something like this in C++ : string myString = "blablablabla" +"blabla...
[2 replies] Last: Hmm... I think I accidentally have found the answer. string myStri... (by cppuser)
by hunter
I want to parse twitter.
 
So what I want to do is to make a program that will get the most recent update from someones twitter page and put it into a .txt My brother did this using Be...
[14 replies] Last: I didn't said that that is the most practical implementation, but for ... (by R0mai)
Problems with first ever C++ Program
 
I just started C++ and I'm getting a bunch of errors and I don't know what they mean. I did some searching and found some similar stuff but nothing this simple...
[5 replies] Last: No problem. (by chrisname)
by NGen
cin >> and cin.get( ) not pausing program?
 
For some reason, the exertion operator and get( ) don't cause the DOS to wait for a return. Here is my main function: int main( int argc, char* argv ){ ...
[12 replies] Last: Sorry :P I forgot to add "#include <limits" :( (by chrisname)
stdio.c source code
 
I found the source to stdio.c ( http://www.jbox.dk/sanos/source/lib/stdio.c.html ). However, this makes no sense whatsoever: int vprintf(const char *fmt, va_l...
[2 replies] Last: Oh, god. My eyes must be broken. (by chrisname)
Memory leak, how to find?
 
void main() { int *pi = new int(0x12345678); int *pAry = new int ; delete pi; delete pAry; return; } If, written delete p...
[6 replies] Last: Microsoft's MFC has a debug_new that's mapped into debug builds. Ea... (by kbw)
Need some advice on two classes
 
I have two classes, one called character - derived, and one called weapon - base, but the weapon class doesn't have a constructor. Is this wrong? Should I h...
[11 replies] Last: "Interface generally refers to an abstraction that an entity provides ... (by chrisname)
how to delay the output??
 
hi everyone~~~~~ just like the title above~~~~~ how to delay the output?? i wanted to output three '.' in a slow motion~~~~ example: output . (1...
[12 replies] Last: i tried to compile already~~~~~ about the *cin.tie() ~~~~~why does ... (by loveless)
C++ and D
 
Is d more powerful then c++? Can you make things in d that you can't with c++? Was d written in c++? Thanks
[6 replies] Last: Very funny, and following the link to C++ ... http://www.catb.org/~esr... (by kbw)
Carraige Return Problem in char array with new compiler
 
Is there a compiler option to recognize and ignore carraige returns and line feed within a char array. This is occuring with char strings that have been tr...
[3 replies] Last: In C and C++, you quote a newline by putting a backslash before it. ... (by Duthomhas)
writing a program that finds length of a string
 
Hello there all, I'm new to the forum here and pretty much new to C++. I'm learning it out of a book right now and I've been working on a program that I can't ...
[5 replies] Last: http://cplusplus.com/reference/string/string/ it is without the ( ) I ... (by Cojones)
by lse123
C++ is a lot easier to Learn than Java in the matter of configuration
 
C++ is a lot easier to Learn than Java in the matter of configuration (files) etc ... classpath etc matters ???? what is the easiest in your opinion ? c++ has c...
[1 reply] : Is that a question or a declarative statement? (by chrisname)
Arithmetic using pointers
 
Im using dev c++ and Im trying to make a program that uses pointers to add, subtract, multiply and divide. So far here is what I've got: /* */ /* ...
[5 replies] Last: I guess we've given up on [co de] tags then? You need to be able t... (by chrisname)
by Duncan
Friend function clarification
 
Hey everyone. Here's a quick class: #include <iostream> using namespace std; class A { private: int x; public: A(int a = 1) {x = a;} ...
[8 replies] Last: You're right, sorry. For some reason I was thinking that 'friend' did ... (by NGen)
function returning a pointer to a 2d array
 
Hi, I am relatively new to programming, having read up on it in order to learn the basics. I am working on my first game, a tetris clone, and I need a funct...
[9 replies] Last: Great! Thanks Gregor, problem solved. (by MHarriman)
by mareon
String parameterization as argument
 
Hi all, how how can i parameterize the number of string according to this example: class Prob{ Prob(string); }; int{ Prob *test ; test = new ...
[4 replies] Last: my initial posting was with string streams but if you want to use spri... (by anilpanicker)
by yeap
problems with numerical inegrator!!!
 
hello I made that program... bat there are some errors... how may I correct it?? can you help me??? there are some words written in italian but i think that...
[2 replies] Last: ok... you are right!!! my problem is here... this is a matrix where ... (by yeap)
This is weird...
 
I was just reading through the Linux kernel source (I just wanted to read through some of it, to learn) and I noticed something that Linus Torvalds does that lo...
[4 replies] Last: Ohhhh... I was wondering about that. Thanks :) (by chrisname)
Exporting a class to a dll
 
I have this code... #ifndef _MODEL_H_ #define _MODEL_H_ #ifndef DLL_API #define DLL_API _declspec(dllimport) #endif #include <d3d9.h> #include <...
[12 replies] Last: D3DXMATRIX is defined in d3dx9math.h. It's a file in DirectX SDK (by Cojones)
C++ Date and Time
 
I need help please. I am new to C++. I want to create a program that would compute the weekly salary of the employees. The program would accept TIME-IN and TI...
[4 replies] Last: It would be easier but less correct due to inexact floating point repr... (by jsmith)
September 2009 Pages: 1... 20212223
  Archived months: [aug2009] [oct2009]

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