Beginners - December 2012 (Page 6)

Allowing an .exe to run only once at any one time
Hello all! Ok I am completely new to C++ (as in this week) and need some help with this if possib...
[3 replies] Last: "gadget50" Being new to C++, I have no idea what any of that answer ... (by metulburr)
Which container is most efficient both for iteration and key-value access?
Hello, I have a veriable number of pointers that point to instances of a certain class. Each inst...
[9 replies] Last: :) One hell of a game with different objects 60 times per second. (So... (by Lowest0ne)
by Kosmos
Segmentation fault when declaring std::vector
Hello, When I run my program, I get a segmentation fault. This is what the gdb debugger outputs: ...
[5 replies] Last: Athar wrote: It's doing that because you're trying to access an elem... (by Kosmos)
Download html source
Hi! I made a software wich print html code of a webpage in CLI. How I can download this source to...
[3 replies] Last: You zero out the data you received in line 53 and you're surprised tha... (by Athar)
by Ayham
Im making this game and i have a problem with srand
I programmed it to ask you what move do u want to make, then the opponent makes a random number from...
[2 replies] Last: I love you Peter (by Ayham)
C++ Video: Introduction of STL - Containers Part 1
This video covers the sequence containers of STL: vector deque list forward list array http...
[no replies]
Stuck on the bunny challenge
Hello All, I am working through the bunny challenge problem from post 6281 (I think). I am making...
[no replies]
by tahere
ploblem with operator
I don't know what's wrong with it! #include <iostream> using namespace std; class Matrix{ pub...
[2 replies] Last: You know what you did wrong? This line: void Matrix::operator=(Matri... (by S G H)
by jCha
incompatible types in assignment...
hi guys :) i'm having some trouble in passing an integer to a char!! nValue = GetDlgItemInt( hwnd...
[3 replies] Last: thank you guys, sprintf works fine :) (by jCha)
Passing of value between Function (QUESTION)
I get this code over my pass year question therefore there is a question that i do not understand ...
[7 replies] Last: If you mean... int Variable = 0; int * Pointer = &Variable; *Poin... (by S G H)
by Ch1156
Question game timers
I was wondering what its called when a game has conditions that have to be met before you can comple...
[3 replies] Last: (by ne555)
Ok, so I have written a Battleships game in a basic C++ blank file, and it works fine and all, howev...
[no replies]
A cin function for files?
Hello, I have this piece of code here, which opens a text file and puts text in it. std::ofs...
[3 replies] Last: Just a few other questions, how do you know when you are at the end o... (by cire)
new member
Hi to all folks ,I am a beginner for C++Programming. I am here to learn and share with others
[no replies]
by bdwg
Accessing member variables through a function.
In short: I would like to make a function that takes in an instance of a class and accesses it's pub...
[3 replies] Last: Great! Thanks! (by bdwg)
character arrays
I heard that character arrays can store up to their length ,for example the array " f " can store s...
[8 replies] Last: Ok thank you very much!!It was really useful :)))))))))))) (by rapunzel)
Eliminating lines with if statements
This program calculates the least amount of change a person can give. For example if I would type in...
[1 reply] : First calculate the value it should be, e.g. int fifties = TotalMoney... (by Fransje)
generating random number with start num
I am trying to generate random ints from a LOW number and a HIGH number, it does seem to work, but i...
[2 replies] Last: ah yes, thanks much (by metulburr)
Simple Question
Is it possible to make code that will open up microsoft office word? (And when I mean open, I mean i...
[3 replies] Last: @tntxtnt ShellExecute requires you pass it a LPCWSTR*, while you're pa... (by Thumper)
wrote this program thats not working
#include <iostream.h> #include <iomanip.h> int main() { using std::string; s...
[6 replies] Last: To answer your question about std::cout, yes you would need to use tha... (by Raezzor)
December 2012 Pages: 1... 45678... 64
  Archived months: [nov2012] [jan2013]

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