Beginners - July 2013 (Page 28)

fstream opening binary file
 
I'm trying to open a binary file (about 700mb) with fstream and flag ios::binary but it always fails. // RandomProject.cpp : Defines the entry point for th...
[7 replies] Last: Ok i've read up the file section again (I guess I missed out key info.... (by Nubcake95)
Question: Why isn't this sufficient?
 
This is just part of a code I am working on. Using Dev_C++. Why is my compiler saying that 'm' and 'f' are not declared in the scope, and how would I fix this...
[4 replies] Last: I just figured it out! You are absolutely right. Thanks for the help a... (by InclinedToFall)
Looking for help on how to write a code...
 
Hello, I am fairly new to programming and need help with a code. I need to create a code that can add a suffix to a number. Example: Enter a value: 1 ...
[6 replies] Last: Thank you so much for replying! MheonYaE: Yes, what you have provides... (by sinha2366)
I am having trouble setting up SFML.
 
I tink I did everything correctly I linked audio, system, network, graphics, windows but they all had .a at the end is that supposed to happen? Did I miss a...
[5 replies] Last: http://www.cplusplus.com/forum/articles/40071/#msg216270 (by ne555)
by zagzag
storing input value in an array
 
I want the user to make 5 accounts with 5 different passwords and for them to get stored in an array and then prints out all the accounts and passwords register...
[3 replies] Last: Thanks a lot I tried that and it worked. (by zagzag)
How to compile?
 
How do you 'compile' the program, so that I can give an .exe file of it to someone and they can run it?
[3 replies] Last: At the top you see a green triangle and "Local Windows Debugger". Afte... (by Duthomhas)
buckysFile.is_open()
 
What does buckysFile.is_open() does? #include <iostream> #include <fstream> using namespace std; int main(){ ofstream buckysFile("beefjerky....
[2 replies] Last: http://www.cplusplus.com/forum/beginner/102253/#msg549876 (by kbw)
by leo255
Problem with get/set methods (can access some methods, and not others).
 
Hello, I'm following along with the Live Lessons C++ video tutorial. I did the entire chapter/all the exercises correctly yesterday, and now today, I tried to ...
[5 replies] Last: Thanks guys, I checked everything on my computer at work, and everythi... (by leo255)
by nomnum
SFML not registering?
 
So I am just getting started with SFML, and as soon as I set up SFML with code:blocks and try to create a simple window, I get errors, as if it doesn't know abo...
[3 replies] Last: Thanks Cire and Disch, I thought if you added the base you didnt have ... (by nomnum)
Structure and char array question
 
So i was experimenting with structure arrays today just to kind of review a little. ( i'm fairly new to c++ ) Anyway, I made an array of structures and initiali...
[3 replies] Last: It is simply a warning. You can disable it. Function strcpy_s is not a... (by vlad from moscow)
Bitset equals another bitset
 
How do I set a bitset to be equal to another bitset? Say I have a bitset<3> mybits1(string "010"), how do I set bitset<3> mybits2 to be equal to mybits1 without...
[4 replies] Last: Thank you. My problem was I have two bitsets of different sizes. (by jrfrago)
how does stringstream work
 
I do not understand the concept of stringstream #include <iostream> #include <sstream> using namespace std; int main(){ string stringer = "234";...
[1 reply] : It's operator<< that performs the conversion, the same way it does it ... (by Cubbi)
Voice Chat - Low Latency Peer to Peer
 
I am trying to make a voice chat application. As i donĀ“t know much of programming, i use a sample code i found. The sample code though has 2 problems. 1...
[8 replies] Last: Okay, i changed my approach, i will try to use NAudio, it seems alot e... (by zerowalker)
Why am I getting these errors in this banking file?
 
I am working on a project for my class. Sadly, I have to take this programming class online and it has not been even close to easy. This is what I have and I c...
[4 replies] Last: Is that the entirety of your error message? Are you sure there's not ... (by MikeyBoy)
pointers and strings
 
So I'm writing a program that asks for a string, then assigns pointers to the head and tail, then reverses them and goes through the line until your string is r...
[12 replies] Last: Thanks a million, vlad! (by philbertfour)
How to define an array in a structure?
 
How to define an array in a structure? STRUCT A { B data ; }; why is this wrong?
[7 replies] Last: Because you're trying to use the type B before you've declared it. ... (by MikeyBoy)
OpenGL help.
 
I was wondering how to make a window in OpenGL/GLUT, and making my objects render in it. My tutorials do not explain, or it is later on, but I am a type of guy ...
[6 replies] Last: This is just for some quick tests, eventually I plan to go back over t... (by Johnny111111111)
by zagzag
Store a value in an array
 
Hi I am working on a program that asks the user to create an account and verifies if the account is already registered. I figured out that I can do this by stor...
[3 replies] Last: I am not saving an account but I am comparing the value in account ... (by kingkong200)
by nomnum
SFML: GCC or VISUAL C++
 
Super quick question, title says it all. I wanna download SFML but i dont know wether to get GCC or Vis. C++, what the diff? **EDIT** I am using code:blocks, i...
[5 replies] Last: Thanks for all the advice guys! Especially MatthewRock, I realized I n... (by nomnum)
by nmn
empty array declaration
 
Hello, How else can I init this array pls ? class Ray { public: int myArray ; // since this is NOT legal ! Ray(int); }; Ray::Ray(int i){ f...
[3 replies] Last: thanks so much.... Vlad (by nmn)
July 2013 Pages: 1... 2627282930... 53
  Archived months: [jun2013] [aug2013]

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