Beginners - July 2010 (Page 28)

how to deal between txt files
 
first,I want to open an eixst file 1.txt. this file contain hexadecimals.such as "03451b435e...". I want to get the 20th 21th 22th 23th number in every line i...
[1 reply] : This is a topic I had trouble with for a while. I found the following ... (by Zero One)
build problems in simple program
 
Hello, I’m quite new to c++ and until now I’ve only created one .cpp file that contains a class definition and the code that using it. I’ve now tried to...
[8 replies] Last: When you include a standard library with #include <string> you need to... (by Galik)
some simple questions (1,2)
 
hello every one i have some questions here :) 1- see this pic http://img571.imageshack.us/img571/3935/70196195.jpg can anybody explain to me how to do ...
[36 replies] Last: Regarding this: http://img571.imageshack.us/img571/3935/70196195.jpg ... (by Galik)
Difficulty understanding classes
 
I am wanting to make a simple blackjack game in c++ using classes. I can do this without classes, but to fully understand the language I would like to use them....
[3 replies] Last: Like I said, the same rules apply as if it were an int. A variable de... (by Athar)
Searching from an input file, writing to another.
 
I'm trying to make a program to "copy and paste" the rest of the lines starting with " Frequencies --" from a data file to a new file. I have the .exe in the fo...
[3 replies] Last: I believe the error may lie in the do-while loop, but I'm not sure. Wh... (by lnwlfx44)
objects declared on the heap causing crash in windows but not linux
 
Ok, I've recently started learning C++ based on the "Teach yourself C++ in 21 Days" book, which btw I highly recommend for anyone starting C++ from scratch. An...
[5 replies] Last: Actually, the things I had trouble with I didn't learn in this book. ... (by jovispater)
do loop not working properly
 
My loop isnt working properly.At the end of the program, it dosen't ask whether i want to continue.PLEASE HELP #include<stdio.h> #include<math.h> void ma...
[6 replies] Last: Now i understood even better.lols. (by strike402me)
Why wont this compile?
 
I am making a simple program to demonstrate classes with triangles, and for some reason, what I have so far wont compile. #include <iostream> #include <cma...
[1 reply] : You forgot the semicolon after the class definition (line 34). Noti... (by filipe)
Visual Express
 
This is my first day learning C++ using Accelerated C++ by Koenig. I have a "Hello World" script saved as a .cpp file. I've just installed Visual Express and ...
[3 replies] Last: Let me clear up a few things first. What you call a DOS window is a... (by filipe)
Error Message
 
I'm using allegro and I kee getting this when I try opening a image file. First-chance exception at 0x10005ae9 in Dogfight.exe: 0xC0000005: Access violation ...
[2 replies] Last: I changed it to load_tga but I still got theses 2 errors. Unhandled... (by Callum5042)
Parsing a string to period sign into another string
 
I've been searching for quite some time and I can't find any way that's enough simple for me to understand. Let's say I have string Text1 = "qwer.tzui" and str...
[4 replies] Last: Ok, that worked. I just forgot to add necessary headers, should probab... (by Fresh Grass)
by uj2n
faulty tutorial?
 
Hello! I used this turoial http://www.functionx.com/cpp/articles/serialization.htm to learn binary serialization, but it does not seem to be working! Creatin...
[2 replies] Last: Ok, boost it is then! BTW you are not returning anything from read... (by uj2n)
by indie1
Currency Symbol
 
how can i display yen symbol and pound symbol using stdio.h only? i tried using ASCII codes but instead of ¥ this ñ comes out.
[1 reply] : Depends on where you're putting your output. (by helios)
by uj2n
equivalent to the Java class Object
 
Hello! I am translating one of my Java classes into C++. This class is a FileHandler that writes and reads objects to files. In Java it is possible to manage...
[6 replies] Last: Boost provides a serialization library: http://www.boost.org/doc/libs/... (by Bazzy)
by uj2n
fstream: try catch and string input
 
Hello! I have just converted from Java and am trying to start learning by translating some of my old code. I want to write a FileHandler class that can read...
[3 replies] Last: Why? because you can't know everything that may be thrown by the fun... (by Bazzy)
Can't open a image
 
I'm using this code here BITMAP*myplane=NULL; myplane=load_bitmap("myplane_all-around_100hp.tga", NULL); draw_sprite(screen,myplane,320,240); destroy_bit...
[no replies]
counting and deleting array elements
 
Okay first let me say that I an new to c++ programing so keep that in mind. Okay I am working on some code, for school class = intro to c++ (I'll be honest) tha...
[9 replies] Last: Woot kk thanks to all who helped I solved the problem. Who ever mods ... (by lukecovack)
by nous
Pseudocode, wondering about a certain concept.
 
Okay, first of all, I am *not* a programmer. Sure, I grasp the basics, variables and equations and such. I really feel like I get what programming is about ...
[3 replies] Last: Thank you so very much r0shi :D that'll give me a good base to work fr... (by nous)
Open a image
 
How do I open a .png image for a game?
[8 replies] Last: Quick question, why is it better to use tga? (by Callum5042)
Segfault reading member string
 
Hello everyone! I have an error in my class. I'm suspect it's something simple, maybe me failing to understand how strings are created and passed to my construc...
[2 replies] Last: Line 71 will never execute because the function will return first. ;o)... (by Galik)
July 2010 Pages: 1... 262728293031
  Archived months: [jun2010] [aug2010]

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