Beginners - May 2009 (Page 18)

data seems unpredictable
 
My code will compile and run, but I'm unusual data in my return for rotated data. It seems to effect larger data input of 10 or so. If I use 0,1,2,3 my outpu...
[no replies]
by Lorena
Fstream doesnt receive input(?)
 
fstream Gated(nameToCheck,ios::in); if (Gated.fail()) //File is created { cout << "blahblahblah, " << ask4Id.geFileName() << "?\n"; Gated.open (nam...
[2 replies] Last: Actually, you solved my problem =p it seems i had forgotten to clear ... (by Lorena)
by lvpk
Menu program error
 
Hi everyone,I was working on a program that is a food menu, using functions and the error that I keep receiving is that variables are undeclared. Here's the par...
[2 replies] Last: here's the code, i tried doing it before but i think with my whole exp... (by lvpk)
simple class
 
Im having problems making a simple class. I made classes before but with the class I am working on now I cant seem to figure out the problem. When I compile it ...
[8 replies] Last: lol well this is my first time ever taking a computer programming clas... (by pimster987)
String wrap
 
Sorry for my English, and code. I'm just studying both. Problem is with text wraping by words. I mean single word in single line. We have file with text (fo...
[3 replies] Last: Thanx a lot :) That was more easy then I thought :) There is a body: ... (by DownFree)
extern comand and cpp files
 
what i am missing; main.cpp #include <iostream> #include <string> using namespace std; string name; void main () { s(); cout<<name; } a...
[11 replies] Last: iostream includes string. (by helios)
Needs assistants
 
I am writing 2 functions for a group project program. They are very simple but I was sick during class when we talked about arrays so i'm looking for someone wh...
[9 replies] Last: But is the "if/else if" stuff right? Because thats what we have learne... (by Poeticsoul44)
Read file header information
 
I have followed the tutorial and thought I would attempt to modify the Input/Output with files example to read some information about a file. For instance byte...
[3 replies] Last: Thanks guys, yes 128-132 is 5 bytes sorry my mistake. Big endiannes... (by simplesimon08)
by Nuclei
Mastery - Give me a hurdle?
 
Hello, I am relatively new to C++ (Been reading the documentation for maybe 3 days now?) but not coding in general. (Bit of Basic, but most of my syntax and rel...
[18 replies] Last: 0xFF is hexidecimal format, FF is equal to an 8 bit-value with ALL bit... (by jRaskell)
by jeysel
AlpHaNumeric sOrtinG
 
hey guys, i need help about this problem.... i am sorting a number of names, but if i inputted a lower case and a upper case value, it will not be equal. e...
[5 replies] Last: jeysel, just write your own strcmp that is case-insensitive. No reason... (by Hammurabi)
ilink32 error-Unresolved external '_printf' referenced
 
i have download a source code file and occur error when compile, how to amend it C:\Borland\BCC55\Bin>ilink32 /Tpd Sample.obj Turbo Incremental Link 5...
[11 replies] Last: helios: :o great.. companies should take your advice and start u... (by writetonsharma)
Moving on from console
 
Hello everyone! This is my first post on these forums, and I'm guessing it won't be my last. Unfortunately though, at the moment I'm frustrated beyond belief...
[8 replies] Last: Curiously enough, only the English version says "9000". All the other ... (by helios)
by Lorena
A program that receives input without being on top of the screen...
 
I've been wondering... How would you go about making a program that receives keystrokes without being on the screen? I know, i know it sounds fishy, but t...
[3 replies] Last: It detects keystrokes regardless of focus. It can be used to set up gl... (by helios)
Reading NPC location from .txt file???
 
So I have my SDL project to read tiles from a tile sheet via a .txt file. I have a separate tile sheet that consists of random 32 x 32 characters. My level gets...
[no replies]
by Adyst
How to implement overloaded operator
 
So here's my question. I have written this chunk of code, and written an overloaded operator for >> I need to write the information provided by Room.cpp into...
[1 reply] : If you need to write info into a file you can use the fstream library ... (by closed account S6k9GNh0)
returning a value
 
I can't figure how to arrange my for loop to return the index value. As is now, after user date input, ex: 0 11 1 14 2 33 4 9 5 27 my minIndex returns...
[2 replies] Last: I'm not sure how to compare the index to mylist . if (min > mylist... (by static33)
Determining path for ambiguos include
 
I have code which I compile with no problems with gcc/g++ and has a local string.h file. So if I have a source file that has #include <string.h> there is sc...
[4 replies] Last: You're right. I forgot to mention that I was passing the local directo... (by messenjah)
what is the matter with this program
 
# include <iostream> using namespace std; void readmatrix(int row) {int column; cout<<"The Number of Rows="; cin>>row; cout<<"The Number of Colums="; c...
[2 replies] Last: You can also use vectors, read http://www.cplusplus.com/forum/articles... (by Bazzy)
Sorting vector via recursive function
 
OK, so here is a basic for loop sorting function that I have coded prior to my current program: float max; int temp; for (int i = array_size...
[11 replies] Last: Ok, I have myself a new and improved (kinda) program that is working m... (by satchmo05)
by soyuz
periodic boundary conditions in a lattice using arrays
 
Hi I need to implement a laticce of, say lxl. I whant to do that using arrays. But I need that lattice have periodic boundary conditions along all code. ...
[no replies]
May 2009 Pages: 1... 161718192021
  Archived months: [apr2009] [jun2009]

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