General C++ Programming - November 2011 (Page 7)

No instance of overload function?
 
Hey, I kepp getting this error when trying to create a new object object and push it onto a vector container. Heres the code: std::vector<Bullet> n_bullets;...
[7 replies] Last: Woo! Thanks so much guys :) (by Calender Man)
Problem adding time limit expiration using time.h problem
 
Hello I am trying to learn how to add time limit expiration using this code but the problem is that is gives me an error saying " error C2065: 'timer' : undecl...
[5 replies] Last: Well I guess that assumption threw me off I should've noticed that but... (by TheBest)
I'm a Noob and cant' find what the error would be
 
I'm just starting out and need help. I'm playing with this rough atm code and i can't figure out the error. could someone please help? I would really appreciate...
[4 replies] Last: is it working? and your welcome im not that far ahead of you and becau... (by Aramil of Elixia)
please help! vigenere and ceaser cypher, encryption and decryption, linked lists
 
This is the assignment given to me by my instructor, i dont undetstand pointers and linked lists. Please help! i am working with putty The user shou...
[3 replies] Last: this is what i have so far, i dont know what to do next or if im even ... (by cef0001)
Classes & arrays
 
Create a PlotNumbers class that has five data members to store five integer values from the user. It should have a 5-parameter constructor that can set the data...
[no replies]
User-defined compile-time warnings
 
I was wondering if there is a way to check if a function is called in main(), and if it is, have the compiler spit out a warning. This prints a warning, but ...
[9 replies] Last: Oh, I understand now :-) Thank you (by Wildebai)
find the rightmost and leftmost number in a point cloud of text file
 
Hi,everyone. I am trying to do a program about convex hull. But i am stuck in the first step. That is find the rightmost and leftmost point in the point cloud. ...
[5 replies] Last: ok. Thanks guys. I am using this code to read my file. How can i compa... (by des6043)
by Graar
Dynamic array of structs
 
I need to made a dynamic array of structs node, and joy of joys, I'm NOT allowed to use vectors or any STL container. I want to make a vector of linked lists, a...
[2 replies] Last: Looks like it worked! Thanks. (by Graar)
by Deluge
Getting Correct Hex Format
 
I'm trying to get the hex values from file data that I imported into a character buffer. I use a stringstream to convert each char to a hex string but it is not...
[no replies]
pleaseee Help.. C++ code on a project..
 
Design a CharArray class that contains a dynamically allocated array of characters. The class should have the following private member variables: pArr...
[no replies]
Help! Seeking Guidance!
 
I have been learning C++ for the past two months using C++ Primer Plus (Edition 5) by Stephen Prata. If anyone is familiar with the book I am on chapter 11 star...
[no replies]
write in file
 
hey I have an executive program I want to call it up And pass values ​​to it directly without the need to write down every time i use the program E...
[8 replies] Last: while(!ins.eof()) { for (int j=0 ;j<64;j++) ins>>Fkey ; ... (by ahmadaziz)
expectation maximization
 
hi I've been trying to implement an EM algorithm, but there seems to be something wrong... I know it's lengthy (and probably pretty bad style, sorry, I'm rather...
[2 replies] Last: it compiles, but the numbers are wrong. in the gammas vector every e... (by bibiana)
Confusing for loop
 
So I'm trying to write a function that converts binary code to decimal. This is what I have so far: int binaryToDecimal( bool vect , int size ) { int result = ...
[4 replies] Last: Show your updated code. Also show how you are filling the vector and ... (by webJose)
by focit
program exe has stopped working
 
I am coming across an error I cannot figure out. originally in my compute_averages function I had this code int i, j; float avg, count; for (i...
[2 replies] Last: sum += data[i + width -1]; was the problem. Even though it was within... (by focit)
by dalawh
Need help with timer
 
I been searching all over Google and nothing seems to be consistent/useful about timers. Does anyone know how to get the current time? I want to be able to g...
[14 replies] Last: Okay, explain how you would do it if you wrote a time routine? Remembe... (by Mathhead200)
by cad946
Program to calculate storage used for true colour photo
 
Hello..........can anyone help.............i know of course how to calculate the storage used for a true colour photo of 2 x 3" with 200dpi BUT my problem is re...
[4 replies] Last: sorry - poor terminology on my part - v v rusty - wanted to use cin an... (by cad946)
by rafmed
error:non-lvalue in assignment
 
mach[i-1].time_ol(m)=mach .time_ol(m); mach .time_ol(m)=temp; Ιn both orders I had the same error...
[6 replies] Last: yeah thanks! i hadn't think like that. (by rafmed)
by Deluge
Creating a Self-Extracting Executable
 
I want to be able to extract a resource file from my executable. I think that I've figured out how to access the data, but I don't know how to extract it. Here ...
[2 replies] Last: You're awesome! Thank you so much, that is exactly what I needed. Than... (by Deluge)
Converting
 
Edit: Thanks. Figured it out. :)
[4 replies] Last: if (strcmp(str, "1") == 0) { return 1; } (by Peter87)
November 2011 Pages: 1... 56789... 47
  Archived months: [oct2011] [dec2011]

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