General C++ Programming - April 2012 (Page 23)

Heap support structure.
 
Hello, I'm using a Heap to keep a best-of list of items in a Matrix. In short, there are n² items in a matrix, of which a (small) part is "good" (value > 0)...
[4 replies] Last: @JLBorges: a) I found a Fib Heap to be slower for any number of N (tha... (by Gaminic)
Please help. Im stuck :(
 
I am new to C++ and working on an assignment. Below is what I have come up with so far and seems to be working. I am at the last part and have spent many hours ...
[7 replies] Last: Dhiyakutty, I found that moving these calculations outside of the loo... (by kinison)
SNAKE GAME
 
#include<iostream.h> #include<conio.h> #include<graphics.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> #include<time.h> #include<string.h> cla...
[1 reply] : The messages are as straightforward as they can be. Where is it writte... (by hamsterman)
Arithmetic word number conversion
 
Need help, trying to perform arithmetic operations using words, so far i've got to the stage where if the user enters a number in words with the operation type ...
[3 replies] Last: Now that you've decided to compress the array of names, which is reaso... (by kbw)
by Jp P
Arrays, Binary Seaching and Selection sorting.
 
Hi i'm up at 4am trying to figure out why my code won't work right. It compiles with no errors, but i'm not getting what i want. It's just a program that reads ...
[5 replies] Last: You're very welcome. (Also, it's around noon here, so don't worry abou... (by Gaminic)
by jSko91
C++ Program that *changes words* with STRINGS
 
I'm a rookie and I need help with this program!! The details are as follows, I appreciate it! Develop a C++ program that changes words in a string: Inputs...
[3 replies] Last: If you're completely stumped... int main() { // your code here.... (by cire)
Problem with reading and writing text files
 
I'm probably doing it wrong, but I am trying to make a program for my mum, she is a swim coach, it needed to make a textfile, put whatever my mums sessions wher...
[2 replies] Last: dude, thank you so much :), fixed ios::app, so simple :)) (by DysFunqTional)
Converting String to Double
 
I am dealing with an input file with comma separated values. Each value is either an integer, a double or a string. There are six values per line with the first...
[1 reply] : atof() takes a const char*, not a string. This is exactly what the com... (by Zhuge)
compile error
 
I get the following error when I compile: All outputs are up-to-date. 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced i...
[1 reply] : you code? you possable modify link options form "Windows (/SUBSYSTE... (by nlqlove)
SFML - C++, sprite not displaying
 
Im trying to practice with sfml, but it's not working out to well. I created a class to handle the image and sprite for my "Tank" which i am trying to display. ...
[2 replies] Last: Thanks for the input, i feel i need to immerse myself further into c++... (by Need4Sleep)
google maps in C++
 
hello buddy, here i want to ask you all if there google maps can be put inside the c++ pgramming..?? in my pragram,i want to calculate the distnce by put only...
[1 reply] : Yes, you need to use the Google Maps API to get the information you ... (by Duthomhas)
Any way to avoid write "template <class T>" every line?
 
If function definitions are implemented outside of the class, then "template <class T>" is needed before the function declaration... for example, template <cl...
[2 replies] Last: [devil's advocate] Just use a macro: #define TTV template <class T... (by Duthomhas)
by jianc
what's the __declspec(novtable) meaning
 
Title Like.
[2 replies] Last: thanks for your help. (by jianc)
C++ HELP!!!
 
I am very lost with this problem I am trying to complete and I can't find anyone to help me. Problem: intialize counter to 10, counter<100, display counter by 2...
[3 replies] Last: Not a problem. Hit me how to make the output match with just the 100. ... (by BHX)
I am confused with my palindrome code.
 
#include <iostream> #include <string> using namespace std; bool isPalindrome(string s); int main() { string test = "A man, a plan, a canal - Panama...
[2 replies] Last: I'm not sure what you mean by a debugger. I was given the code: [ /*... (by jose2529)
class compiling issue, 2 classes 1 is client of other
 
my prof is forcing me to use Two classes from the book we use. Unsorted and Itemtype, i cant alter unsorted functions but i can alter item type. i have copied t...
[3 replies] Last: Itemtype.h:15: error: redefinition of `class Itemtype' Itemtype.h:15... (by LB)
C++ programming
 
I have a input file (.txt). It has a list of books in the format: catalogue_number, author_last_name,author_first_name, book_title, genre, availabilty * The c...
[19 replies] Last: Okay, now you're just trolling. Yep. Think it is safe to say that, ... (by BHX)
Mastermind---How to show numbers in certain areas?
 
When the user uses the program the numbers need to be stored into a temp array to show in certain spots of the board. The code is at the bottom. Any help will b...
[no replies]
Object Deallocated before it can be used.
 
Hello. I am currently working on a matrix class for my CIS class. I have however run into a bit of a snag with an object being deallocated before it can be used...
[6 replies] Last: Yep, that's about right. But rather than pointing to nothing, the ref... (by andywestken)
Help with vectors, please
 
So the program that I've recently been working on is a random password generator in which the user can specify the rules the password must follow. I've got th...
[2 replies] Last: rollie, Thank you for your help :) I finally figured it out, and I mad... (by drawingkid1313)
April 2012 Pages: 1... 2122232425... 49
  Archived months: [mar2012] [may2012]

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