Beginners - March 2011 (Page 28)

File I/O Looping Issue
 
I am having trouble getting my program to run correctly. Right now, when run as shown below, all I get is a never ending loop. Does anyone see issues that I may...
[7 replies] Last: Ahhhh I see what you mean. Thanks again. I really do appreciate the he... (by compsciman90)
by jyo76
Issues w/ function call "larger" WOW WAS IT SOMTHING I SAID?
 
What I'm trying to do here is figure out the greatest of 3 numbers (using the value returning function "larger". Then assign that value to the variable "s...
[16 replies] Last: Ahhhh, very nice! I like your "mini bubble sort" SO much more than m... (by jyo76)
Qt Creator project problem about Matrix operator overloading.
 
I am trying to overload Multiplication Matrix operator with the following but I can't: This is the .cpp CFMatrix::CFMatrix(int m,int n) { _rowCount =...
[no replies]
String equality
 
How do I test if two strings are equal?
[19 replies] Last: why bother with strcmp? there's a reason the string class was created ... (by prophetjohn)
My simple program isn't working right....
 
When I make a string to hold a set of characters in and prompt the user with an extraction operator, A.K.A. cin >> whatever the program freaks out when I ente...
[11 replies] Last: That's what I meant. Any tips on how to program better for error handl... (by spoon licker)
From C to C++
 
Hi guys here I have two codes from C and C++ Code of C: #include <stdio.h> long n; int main() { long i,j,num,art; scanf("%ld",&n); num = n; ...
[2 replies] Last: I am very thankful for that Thank you hanst99 you helped me a lot :) (by Uzumaki)
Finding numerical values in Strings
 
Hello, I'm trying to read in a large file of data. Sadly, the people who released this data did a terrible job at formatting it, making it very hard to read....
[9 replies] Last: My thanks to everyone who responded. Mathes' solution was sufficient... (by Gaminic)
Help with Classes and OOP
 
Hi,myname is Martin and this is my first post here.I'm not the kind of person that asks for help but i am really stuck since 1 week on this. I'm fallowing the b...
[8 replies] Last: yes it worked!!!!!!!!!!!!! i'm so happy I'll link to you what i've do... (by isenhart)
Loop
 
So i'm back How can i make a loop in my program? http://pastebin.com/ZMmTP6Lz anyone willing to help me? i want like int main() { start { body } cout << "ag...
[5 replies] Last: A for loop is also executed while some condition is true. (by filipe)
Problems with my imput
 
My program is working fine, but it is not giving me the out put that i need. [ #include <iostream> #include <cmath> int main() { using namespace std; int...
[10 replies] Last: If that's frowned upon on this forum, please say so It is. It just m... (by hanst99)
Generics/Templates
 
Hello, I find myself with a situation that has Generics written all over it, but I've never (successfully) implemented them. I understand the theory, but the...
[9 replies] Last: Ah of course, I've used that before, but just with a default numerical... (by Gaminic)
linked queue
 
Hey everyone I have been stuck at a question I am new to linked queues.I just wanna know how can i write a method to make it empty,copy constructor and a destru...
[no replies]
array of class pointers issue
 
Why my compiler rejecting this? I though this is how class pointers were defined CLetter* qPointers ; qPointers = &qCB; qPointers = &q1; qPoint...
[1 reply] : Depends on how qCB and all the others are defined. PS: Putting the ad... (by hanst99)
How to convert from C to C++
 
Hi guys I came across one question How can I write scanf("%ld" &n) which is in C into C++ language.
[7 replies] Last: modoran, then your compiler sucks or you are simply to incompetent to ... (by hanst99)
Rotating a ship about an offset point
 
Hey guys this is rather tricky to explain but I will try my best. Basically I am making an asteroids game and I have built the basic structure of the game. Now...
[9 replies] Last: In all honesty, I used the rotation maths you gave which navderm gave ... (by Chazzmundo)
this pointer
 
what does "this" pointer do? when it is used? why it is used in return type in a function if this function is receiving an object?
[2 replies] Last: this is a pointer to the object you are working with (by Bazzy)
by sikac
Problems while printing List elements
 
Hello! I got that "you got to be kidding me" type of problem :) I'm trying to put in a list digits of a number which has more than 50 digits. I input the ...
[2 replies] Last: that solved the problem :) thanx ;) (by sikac)
doubt regarding new operator and memory allocation
 
Hi friends, I know this is such a freak code, but out of curiosity I did it to see memory usage increase using new operator. int main() { char* a; ...
[6 replies] Last: Nah, that would be totally random. Your compiler also doesn't optimize... (by hanst99)
problem with custom operators
 
Hi, I wanted to create a maths library with basic vector, matrix etc. operations. I ran into this problem when I tried to use it: myvec3f a = myvec3f(0....
[3 replies] Last: Thank you very much sadavied, it solved the problem!!! Best regards,... (by Yours3lf)
Help on dynamic memory function in my account class
 
ok so basically i am trying to implement an account class which uses dynamic array but i am having trouble with a function. the class specification is this ...
[2 replies] Last: Bazzy is right, this is incredibly difficult to read as plain text. Sa... (by joh024)
March 2011 Pages: 1... 2627282930... 52
  Archived months: [feb2011] [apr2011]

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