Beginners (Page 60)

fstream.open() or fstream.close() don't affect, file is always open
 
what is the problem with this code files are always open EVEN BEFORE using fstream.open() and EVEN A...
[4 replies] Last: Oh I'm so sorry guys I didn't know about is_open() being the actual fi... (by danicpp)
Difference between 2 swap options
 
Is there difference between swap (x, y) and temp = x; x = y; y = temp; ? void insertionSort ...
[2 replies] Last: thx, for telling me. Tho this forum is for "beginners" , I kinda dont ... (by jakvrh1)
Make The User Input Values That is To Be Stored In an Array
 
Hey I am an Noob in C++ Programming ( I admit it) , I am Making a program in which the User should E...
[4 replies] Last: Don't you need to initialize the array with a size? No. Where the ... (by AbstractionAnon)
by stlund
Trying to make a game with 2d array. Need some help
 
Hello! Im trying to make a game with an array. So the user types in coordinates and "shoots" /...
[1 reply] : Simply replace line 26 with an if statement. [code firstline=26] ... (by AbstractionAnon)
by mehak
composition
 
i came across a statement "composition allows objects of one class to be created inside another clas...
[1 reply] : class foo { bar m_bar; ... }; Class foo contains an object... (by AbstractionAnon)
by mehak
function returning pointer
 
plz explain the output #include<stdio.h> char* fun() { return("samsung india"); } int ma...
[3 replies] Last: thnx alot (by mehak)
by rfresh
Button does not show at runtime
 
I made a winForm with a button on it in the Designer (VS 2010 C++). But when I run my app, the bu...
[2 replies] Last: #using <System.Drawing.dll> #using <System.Windows.Forms.dll> #using... (by rfresh)
using const keyword
 
I am having a question related to const keyword. I want to know which is the correct way to use it. ...
[6 replies] Last: Thanks @cire and @NT3. That helps. (by funprogrammer)
by Mikkiz
Need assistance with assignment(creating menus,Arrays)
 
Hi all, I have only studied C++ for 8weeks so I am still a very "new" beginner, I know only very bas...
[4 replies] Last: Here's an example of a couple of menu functions. #include <stdio... (by AbstractionAnon)
Dev C++ Programming
 
Can anyone help me solve this problem?.I think you would use loop but I don't know to put it in as a...
[2 replies] Last: I think you have the formula wrong. Shouldn't it be C(new) = C(old)*(... (by dhayden)
by onlliw
Help with a programm
 
So i started recently and i need some explanation on this. #include <iostream> using namesp...
[2 replies] Last: k understood .thx (by onlliw)
for concept
 
hi im having trouble understanding the for concept. this is the algorithm the teacher posted and th...
[1 reply] : http://www.cplusplus.com/doc/tutorial/control/ use code tags - you've... (by mutexe)
Program 10
 
Hello, I moved on with the exercises. Here is one tricky: Write a program that converts spelle...
[13 replies] Last: FYI, in your given code you can quit by sending an EOF signal , in a U... (by a k n)
Return this pointer vs Pointer to class?
 
What is the difference if i use the return this pointer and creating a pointer to class object? They...
[13 replies] Last: FINALLY! After a day or two finding some answers. I finally understand... (by procastination)
by zionet
How to counting the most common element in a vector?
 
Whit STLs library vector???? Example Input 1,1,2,1,1,3,3,4,5 output 4 HELP...
[1 reply] : A simple solution would be to use std::count() on every element of t... (by Catfish666)
C++ VS 2010 express Error
 
I do not know what the problem is or how to fix it.I am working in Visual Studio C++ 2010 Express ...
[1 reply] : Got VS service pack installed? http://stackoverflow.com/questions/108... (by mutexe)
c++ bullets
 
hey guys i am rather stupid with c++ so bare with me. i am a game developer learning c++. anyway ba...
[no replies]
by mew
fixing multipe definition error caused by including .cpp
 
last night my friend send a code for me because he couldn't compile it.I checked the makefile and sa...
[2 replies] Last: thanks for reply firedraco i created a global_function.h just as you s... (by mew)
How to play sound with c++?
 
I'm curious about how to play sound in c++. The IDE I'm using are code::blocks and dev c++. Pleas...
[2 replies] Last: As xismn pointed out, you could use OS specific function calls to do s... (by BHX)
endif ifndef - what for ?
 
I know they're processor commands and I read through the definitions but I still don't really unders...
[5 replies] Last: :O ! holy moly, thank you all so much! I really appreciate all of this... (by NookLines)
Pages: 1... 5859606162... 90
  Archived months: [may2014]

Cannot post in this page. To post a new message, go to the first page.