Beginners - August 2013 (Page 30)

by Abdo2
Ask about error
 
error >> cannot open output file bin\debug\ss.exe permission denied How i slove this problem ? ld.exe||cannot open output file bin\Debug\ss.exe Permission de...
[1 reply] : on *nix: dont compile with root or run as root, or if your an unprivle... (by closed account Dy7SLyTq)
Writing to multiple text files
 
Hi all, I'm a C++ student needing help with writing a program to capture product details in a text file and store the same details in 500 external files. I'm...
[3 replies] Last: Thanks @andywestken, yes, the text files are small, so using an fstrea... (by bkkinyua)
operator overloadings!
 
errrors;-no matches found for (vec)(int ) in lines v1(x); v2(y); what may be the possible reasons! #include <iostream> using namespace std; class vec{ ...
[12 replies] Last: These calls v1(x); v2(y); are calls of the function call operator. Y... (by vlad from moscow)
Pointer problems
 
hi, i am writing a small network game just to learn how things work. now i have a problem, i will try to explain what it is. i have a struct called packet...
[no replies]
an error I don't understand
 
Hi guys, I'm trying to understand an error that I get while trying overload '==' operator. The error I get is: error C2662: 'Check::getName' : cannot conve...
[11 replies] Last: You're welcome :) (by MikeyBoy)
Will it compile?
 
Hi guys, I'm an exercise(as a code) I got few days ago and I'm doing it right now; The question is in the file. Thank you guys! template <class type, int n...
[8 replies] Last: Thanks guys, specially MikeyBoy. the code was edited the code and a ... (by LaLaLaBaBaBaRaRaRa)
class "SomeClass" hasn't been declared , but I included it's header !
 
HI Everyone , this is a piece of my code (in StudentBinary.h) : #ifndef STUDENTBINARY_H_INCLUDED #define STUDENTBINARY_H_INCLUDED #include "Student.h" class...
[6 replies] Last: But aren't those "#ifndef"s and "#define"s and "endif"s used top prev... (by coder777)
Problem trying to install SDL.
 
I've followed all of the steps on this tutorial http://twinklebeardev.blogspot.com/2012/07/setting-up-sdl-in-visual-studio.html but when I run the test c...
[5 replies] Last: The lazyfoo tutorial worked. Thanks for your help and replies :D! btw,... (by fluffycrater)
OOP Classes And Pointers.
 
I really struggle with grasping the concept of pointers. I am trying to compile this code... //Implementation file #include "Card.h" Card:: Card(string n...
[17 replies] Last: No, he's not. Insulting people who disagree with him, and even insult... (by ResidentBiscuit)
Floating point imprecisions.
 
Hey all, I'm working with floating points and I'm worried about equalities not triggering due to precision. This time around, I think I'm safe, but I don't k...
[2 replies] Last: Hm, good thing I checked then. Thanks for the response! (by Gaminic)
Still cant understand dynamic memory
 
please someone can give me visual example of whats the different between dynamic memory and regular arrays? i mean whats the different between this code either...
[5 replies] Last: thanx for the explanation Catfish4 you helped me alot! apparently i ... (by Rakanoth)
How to inline x64 extern "C" assembly functions.
 
This is more of a Visual Studio (2012) question. Basically I've got a few functions written in x64 assembly. They are defined as extern "C" in the c++ source fi...
[no replies]
Taking a file's content (each character) and putting them into a 2D array.
 
Basically, I want to be able to take the content of a file and put them into a 2D array. Each line would correspond with each row. Problem is, I have no idea ho...
[3 replies] Last: That sample I posted works on that input file. for(auto& line: maze) ... (by Cubbi)
We use clog or cout for general information?
 
I know that Cerr is for errors But which one do i use for general information, clog or cout? What are the differences? Why is cout more popular? Is it faster?
[1 reply] : read this: http://www.cplusplus.com/reference/iostream/clog/ http://s... (by coder777)
While loop reads extra line
 
So I searched the forum and it didn't have what I needed exactly. while(Customer.good()) { Customer.getline(Name,25,'~'); Customer>>StartS...
[14 replies] Last: also one more question for clarity I had the need to authenticate tha... (by iamk2)
by jkevin
Programming practices
 
Can someone give me a website where I can find good programming problems/projects to improve my skills I am a newbie in programming???
[1 reply] : 1. http://codingmadeeasy.ca/tutorialLayout/cpp 2. http://www.learncpp.... (by The illusionist mirage)
left of '.i' must have class/struct/union?
 
Why does the following code not work? I know its a problem with scope i just dont know how to fix it. This complication arose in a much more complected progra...
[6 replies] Last: wow thanks stewbond thats neat instantiating your classes like that. i... (by MarketAnarchist)
by azad90
do while.. switch case (Taylor Series)
 
I'll be having problem when answering like "znciwi" or any number when 'Is the angle in degree or radian?' is asked. It will work fine if I key in just one lett...
[4 replies] Last: Thanks for ur help again.. Have u ever tried the change you made?. Wh... (by azad90)
What does Padding mean?
 
Really simple question but sometimes I've seen the word Padding used and always wondered what it really meant. For example if I had a string and what ever the i...
[1 reply] : Edit: and padding of output strings (which is prob what you were askin... (by andywestken)
Class constructor question about non-class type requests error
 
Ive been programming for sometime now so Im not a complete beginner but I just encountered a problem I don't understand. I was getting the following error: I...
[4 replies] Last: Thanks, that explained a lot. I should have known that was the copy co... (by nurrByte)
August 2013 Pages: 1... 2829303132... 51
  Archived months: [jul2013] [sep2013]

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