Beginners - November 2011 (Page 59)

by davex
Problem Reading Data From A File!
 
I'm getting stuck reading the input on a file. The ifstream is getting stuck at a specific location (29) and never reads more data. This is an assignment on a...
[no replies]
unresolved external symbol?
 
i'm having a rough time with this. This is actually a program I was trying to help someone else out on and in the process i've run into this unresolved externa...
[6 replies] Last: sweet, I played around with this w/o the above info till my head explo... (by markyrocks)
Having errors codes with my program- non-lvalue in assignment , etc.
 
Hello Im having a hard time trying to figure out what i'm doing wrong in my code the error code is as follows: In function `void bmath(int, int, int, int, int,...
[5 replies] Last: Okay, so I'm assuming that this was a homework assignment, or you were... (by ascii)
read strings from array --help
 
char* arr ; int i = 0; while (i++ < 5) { cout << "type " << i << ". string: "; cin >> input; arr = input; } for(int i = 0; i < 5; ++i) co...
[4 replies] Last: delete arr ; Oh thanks! I've forgot that lol . You're using a fo... (by codekiddy)
Putting Strings into Parallel Arrays
 
i have an input file that is in the format: <model><tab><Manufacturer><tab><price> and looks like this: Professional AP500 Compaq 2337 Dimension 4100 ...
[no replies]
Template Dispatcher question
 
FIXED!! Now It's not unsafe (see 1st comment). The code below completely avoid rtti but it is a little bit difficult to maintain. Is there a template way to el...
[1 reply] : static_cast<const T*>(this) I'm fairly sure this is unsafe. What pre... (by helios)
Question on Vectors
 
Hello, I just got into the topic on Vectors and now I have to modify a program I did with arrays into vectors instead. So it would be like: const int SI...
[5 replies] Last: Thanks for the help, I was able to finish my program using fafner's ... (by illlojik)
perplexed by this use of the conditional operator
 
Hello all. I am trying to learn C++ and have been lurking here for a month or so, and finally decided to join and sign up. I have been reading Ivor Horton...
[4 replies] Last: Moschops Thanks that was an excellent answer. And solved my question... (by justcolorado)
Can't get the programme to work!! someone help please???
 
include <stdio.h> #include <math.h> # include <conio.h> # include <dos.h> #define PI 3.14159265 void goodbye(); float areaTriangle(float,float)...
[2 replies] Last: I've been doing this like 2 weeks so at the moment it all looks weird ... (by Dean Henson)
Multiple shader files in direct x
 
hi Is it possible to have multiple shader files in direct X?
[1 reply] : Would the world coordinate system remain the same across the different... (by Blessman11)
Reading from a data file to an array
 
I almost have a project done where I have to create a data file, write to it, read from it, then find things like the sum, average, and standard deviation. Howe...
[no replies]
Project ideas
 
Hey all, I'm back. Haven't been on much lately, been busy with school. I have a class right now, contemporary programming methods, which stresses OOP very stron...
[4 replies] Last: Hmm that sounds like it may be beyond me. Not sure how i would do that... (by ResidentBiscuit)
Algorithm for decoding SHA1 hashes
 
Here's a small algorithm I made to decode SHA1 hashes. Unfortunately it's performance is very poor. How can I drastically speed it up? Help would be really ap...
[1 reply] : You could use threads on a multi-core CPU but generally speaking Bru... (by Computergeek01)
Functions & references.
 
Like what I did with the title there? I did. Anyway, I'm having trouble with modifiable lvalues mixing with my structures: void setgolf(golf & g, const char...
[5 replies] Last: Thank you, binary, it's a real help! (by Ben Duncan)
similar input diff. output
 
void f(int * & a) { int * temp; temp = new int ; temp = 2; a = temp; } int main () { int * v = NULL; v = new int ; v = 1; f(v); ...
[2 replies] Last: I downloaded the free Borland compiler for windows. What does "non con... (by targt123)
Segmentation Fault?
 
Why I am getting a segmentation fault in my program? I think its a problem with my push function being stuck in the decision statement. How can I fix this? ...
[6 replies] Last: Yeah this seems to work: template <class T> std::ostream& operator<... (by saverman12)
Return back to main function (Need help)
 
Hi. i tried to write a program like this. #include <stdio.h> #include <conio.h> int fFileMenu(){ printf("This is file menu"); } int fEditMenu(){ ...
[no replies]
by m4wk
Traversing a Binary Tree!
 
hey fellas. i am working on an assignment that wants me to traverse through a binary tree using inOrder, postOrder, preOrder, and levelOrder traversing. Here is...
[1 reply] : After searching and looking at some examples, I came up with this for ... (by m4wk)
by shaunh
error: Requested include file not found
 
Hello, I am very new to C++ and am trying the first code in a tutorial but can't seem to get it to run. The code is: // my first program in C++ #include <...
[no replies]
by Baso
How can I make function like this?
 
Hello I want to make a function like the one that have a comment beside it in this code, to put the cursor in chosen position -----> here is the code: #inc...
[2 replies] Last: Krofna ! thank you very much, it works with these coordinates Goto... (by Baso)
November 2011 Pages: 1... 5758596061... 65
  Archived months: [oct2011] [dec2011]

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