Beginners - June 2011 (Page 41)

Object Composition
 
I am wondering if someone could display a very simple example of using references vs. pointers for object composition. I am still a little confused. Here's a...
[2 replies] Last: Thank you, I see now. *this is the self reference, as where this ... (by johnnystarr)
by tonnot
Is it possible to assign a buffer to a stringbuf - stringstream? It would be worthwhile ?
 
How can I assing a buffer to a stringbuf - stringstream ? ( What are the difference betwen them ? I keep on understanding ) If I put data in it , in examp...
[no replies]
by sebgar
What's the difference between 'console', 'smfl,... ??
 
I've seen these terms in a few posts but i couldn't find anything on the tutorial. I am new to c++, just started learning a few days ago :) Could someone ple...
[1 reply] : The following is very general and probably arguable in many aspects; n... (by Moschops)
Help
 
I'm trying to build something that will read certain bits of a text file so far i've come up with this but i'm stumped on it the text file is a log file but i o...
[1 reply] : Please use the code format tags around your code. i only want certai... (by kbw)
by mdk85
long and short format date
 
how to write long format date ( 31 may 2011) in one screen in next screen the date should appear as 31/5/2011 .. i am working on reminders/to do list program...
[4 replies] Last: can i write this program without using strftime / ctime in C++ ? (by mdk85)
by Wanher
Graphics Linker
 
Hey! Friends In my PC the c++ software is creating a problem named Linker error the program written in c++ file became successfully compiled but in execut...
[4 replies] Last: ok...:P (by Wanher)
Dynamic Memory??
 
Hi, I was hoping if someone could explain this to me. When is dynamic memory suppose to be use? When is "new" and "delete" suppose to be used? Why is the new op...
[2 replies] Last: When you use the new keyword, a block of memory is allocated from... (by closed account zb0S216C)
A quick Question about CSV
 
Hello C++ Forum, I hoping someone can give me an answer to a quick question. I have a CSV text file to read. I'm able to get the values and manipulate th...
[2 replies] Last: Thank you Anthar, I've been given one month of data and in that month... (by RobertsR)
Weird include "extras"
 
#include <iostream> int main() { std::string s = "hi"; } Why does this work? The compiler is using strings without my permission! Also, if anyone k...
[2 replies] Last: The <iostream> header includes the <string> header. So, when you u... (by closed account zb0S216C)
a problem of using STL ,the hash_map
 
My code is like this: #include <iostream> #include <algorithm> #include <hash_map> #include <string> struct str_hash{ std::size_t operator()(const std...
[4 replies] Last: And the compiler error is... hash_map<Key, Data, HashFcn, EqualKey, ... (by ne555)
A program that I'd like to make to help keep track of my money
 
Just a quick side note: at first my intention was to run this program through a blackberry or an HTC Evo from Sprint. However I'm not sure if I can do that. ...
[2 replies] Last: I would have thought using Excel + maybe VB script within Excel would ... (by anonymous23323124)
Beginners in C++
 
Hi everyone! I am totally new with C + +, I have previously programmed a part in VB6.0, but that is obviously on the way out. I have now found Microsoft C +...
[6 replies] Last: [quote=Tigerblomst]So now I ask here, there is a C + + program can be ... (by Mathhead200)
File Handling (1,2)
 
I had made a quiz. The quiz stores the scores of the users in a file. Now I wanted to do two things with the file. One, limit the number of lines in the file, b...
[37 replies] Last: Your file stream is probably becoming corrupted or ending before the c... (by Mathhead200)
by AKat
Using sizeOf, Pointers explanation
 
I've been working my way slowly through on understanding pointers. One of the examples in the book shows how to use getSize to return the number of bytes in an ...
[2 replies] Last: Okay, I think I do now. I just had to reread it a few times and think ... (by AKat)
One Time Pin
 
Assuming I have 2 different programs, one called Dongle the other called Connect. One Time Pin (6 digits) is generated by the Dongle. The generation of the OTP...
[7 replies] Last: I was thinking of something like this. Pls correct me if it wrong. Do... (by jellyfish)
Loop not working
 
This is part of my code I'm having trouble with the second player looping until the bool PlayerHits doesn't equal true. Basically the same as the first player. ...
[2 replies] Last: ok i think i got the while loop running the whole part now but i still... (by CodeMonk)
help
 
Please elp don'tknbow how tocall on functions i am stuck,i want to call my functions hhow can do this please write the code thanks. Here is the code: #inclu...
[16 replies] Last: On line 15 your calling SqRt, not sqrt. This will cause infinite recur... (by ModShop)
by Majeth
Loops - Problem
 
void createPrimes (int max){ int i, j; bool k = 0; for ( i = 2; i <= max; i++){ do { for( j = i-1; j > 1; j--){ if (isWhole((i/j), ...
[7 replies] Last: Yes! it's working! My evil minions can now utilize the power of primes... (by Majeth)
Looking for hints on reading file
 
I have to read a text file and then output the information from that text file. I have gotten the file to be read, but I need to format it under a heading usin...
[11 replies] Last: Never mind I got it to work, problem solved. Thanks for the help. (by defcon18)
by mkumbo
c++
 
Write the 6- in- one Program for -Finding solution of a Quadratic equation -Finding solution of a Simultaneous equation -Finding sum of all even numbers betw...
[18 replies] Last: Ah, could be. This forum's parser will append to the link the period.... (by webJose)
June 2011 Pages: 1... 394041
  Archived months: [may2011] [jul2011]

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