Beginners - June 2012 (Page 30)

by maroun
I cant understand the meaning of that code
 
class Singleton { public: static Singleton* instance(); protected: Singleton(); private: static Singleton* _instance; };
[15 replies] Last: [quote=vlad from moscow] "I only can conclude that you did not deal wi... (by closed account zb0S216C)
by Senjai
Problem with the for loop and loop invariant concept
 
Hey guys, I'm teaching myself C++ using the Accelerated C++ book. I'm having issues understanding the authors definition of the invariant. This is the initia...
[2 replies] Last: No problem, thank you for the input. In the book constants are said to... (by Senjai)
Checking file extension
 
Hi, I'm writing a program that will output text and save it into a ".txt" file. I ask the user to to name the output file, but I want to be able to check if the...
[2 replies] Last: Ah, thanks a million! I'll take a look at these and get back to you! -... (by Matt Teddy)
Checking all values within a multidimensional array
 
I have a program that requires a user to input a start and end location within a grid, and then calculates the most efficient route between the two points with ...
[2 replies] Last: thanks (by Raistlin121)
by digrev
without reference-pointer
 
hi everybody is it posibble to run this code without using neither pointer nor reference #include <iostream> using namespace std; double &f(); ...
[3 replies] Last: thank you friends (by digrev)
by Paul54
error with while (i <= sqrt(n))
 
Hi, I am trying to learn C++ through the book 'C++ Without fear'. So far I think I have understood everything well. Now at page 58 there is an exercise to...
[18 replies] Last: Yes, Vlad, you are right. The code example in the book is not very goo... (by Paul54)
Minesweeper problem
 
I recently tried solving some challenging (for noobs like me) problems to test my half-baked coding skills. In programming-challenges.com, I found this problem...
[1 reply] : Well I can tell you just by looking at the output, that your array is ... (by Volatile Pulse)
Size of File
 
I need to read two files with same name. but they have different contents. first file has 60 bytes the second file has 244 bytes I can read the files n...
[5 replies] Last: ok thanks. (by rafae11)
Sleep For windows
 
I want it to wait 15 seconds im on windows. sleep(15) Sleep(15) nether work?
[8 replies] Last: works like a charm :) (by sherlock)
SDL apps compilable from a USB drive?
 
More specifically, SDL headers/code installed on a USB. Even better would be if I could do it all on this windows7 crap machine I have here at work, without ins...
[1 reply] : http://biplab.in/2009/04/creating-portable-version-of-codeblocks/ http... (by Texan40)
Please can someone help explain this code
 
I am working though a book and found two confusing things. This is for the implementation of a linked list. There are two classes; one for the node and one for ...
[4 replies] Last: This statement head = new IntNode(el,head) is valid only if he... (by vlad from moscow)
Need help with my command line quiz?
 
I have made a quiz: // c++ quiz for beginners #include <stdio.h> #include <stdlib.h> #include <time.h> int main () { char string guess; do { cout <<...
[17 replies] Last: Hi there, //line 14 //question one do { cout << "Select... (by closed account o3hC5Di1)
Problem with 'long' type.
 
Hello, I have problem with declaring long long int. Perhaps I just don't know syntax. I want to write a program to find the largest prime factor of composite...
[3 replies] Last: @SameerThigale I did not get any compile time error!Using Visual Stud... (by vlad from moscow)
Selection Sort
 
Dear all, In the selection sort as in the link below: http://www.fredosaurus.com/notes-cpp/algorithms/sorting/selectionsort.html Apparently the arr...
[2 replies] Last: http://www.cplusplus.com/forum/general/70081/#msg373940 (by kbw)
by BJzero
expression must be a modifiable lvalue error
 
i have a project i need to write a tic tac toe game using arrays.. i've managed to write everything but i'm having problem when writing the function win() to d...
[3 replies] Last: As Peter87 pointed out using the assignment operator instead of the co... (by vlad from moscow)
can new[] call a customized constructor ? Howto make a union of pointers on arrays ?
 
Hi all, can new call a customized constructor ? In addition, I would like to do something like this, a kind of union of pointers : class MyPointer { pub...
[1 reply] : If you use this thing with a Class0*, but you've constructed a Class1*... (by kbw)
Prime numbers in a range
 
Finding how many prime numbers are in a range given by the user int num1; int num2; int numofvalues=0; cout << "Enter starting number:"; cin >> nu...
[10 replies] Last: By function I mean function. As you said you written a program, but no... (by Shinigami)
What Next ?
 
Hey Guys, So i have covered all the basic topics in C++ i could find(arrays, pointers, classes and objects, inheritance, polymorphism, templates, file I/O, exce...
[5 replies] Last: There's also wxWidgets: http://www.wxwidgets.org/ I would recommend t... (by coder777)
mod and array index practise
 
Hi cplusplus forum, would anyone be able to point me to a link for easy to learn and practising mod and array indexes? E.g.: I would like to...
[1 reply] : http://cplusplus.com/forum/beginner/72935/#msg389211 http://cplusplus.... (by closed account o3hC5Di1)
Access Violation issue
 
Hi, I am a java programmer and I'm very new too c++ and I am having a problem with a bit of code, I am getting an Access violation writing location 0x0000000...
[3 replies] Last: Thanks for your help guys. The reason I do not send in the object is ... (by djrichcmusic)
June 2012 Pages: 1... 2829303132... 51
  Archived months: [may2012] [jul2012]

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