General C++ Programming - October 2014 (Page 34)

Help with linking files
 
I need help trying to figure out how to link my c++ files to organize my code but everything i do doesnt work. Can anyone help? This is my code: main.cpp: ...
[9 replies] Last: Ok thank you that makes much more sense. Thanks a lot. (by Masterassassin1398)
bad_alloc() problem
 
Hi all, I was trying to solve one of the google code jam problems. I encountered with an error and need some help.The following code that i wrote for a parti...
[15 replies] Last: thank you again...@MiiNiPaa. Changed the type of Y and num.And the sol... (by reach devi)
by Kubani
A private base
 
Hello all, In page 508 of this book (http://books.google.com/books?id=We21AwAAQBAJ&lpg=PP1&dq=programming%20principle%20and%20practice&pg=PA508#v=onepage&q&f=t...
[5 replies] Last: Thank you very much. That table clarified all the thing. Thanks again ... (by Kubani)
implementation of wavefront algorithm
 
I am trying to implement the wavefront algorithm, but my solution keep getting more complex with if statements and so.. Anyone who could have somekind of p...
[no replies]
Problem with dynamic massive using indexes (C++)
 
Hello, everybody! I have a problem with dynamic massive. My task was to find the multiplication of positive matrix elements with using indexes and seperated com...
[5 replies] Last: Now line 14 calls your functin and throws out the result. Line 15 stil... (by MiiNiPaa)
Itoa for Base-10 to base-36
 
I am using itoa to convert base-10 to base-36 but it seems to be only be able to produce base-36 string of up to 6 characters. For my project I need at least 12...
[5 replies] Last: http://www.strudel.org.uk/itoa/ You might need to expand string litera... (by MiiNiPaa)
C++ tshirt program
 
I've go this code that I need to use a Named Constant for the price of a t-shirt. I've already done the code from a previous lab for college and I'm not sure...
[2 replies] Last: thanks that works just fine poteto :-) (by nichan79)
How to compile with Eclipse
 
I have 2 c++ source files to put into my eclipse project and also a header file. How do I compile all of it to make an .exe file?
[18 replies] Last: It would be better to start a new thread for a new topic. (by cire)
Ideas for a design to handle a crazy set of rules
 
A Wizard follows a certain school of magic. The school he follows gives attributes to him in no particular pattern or category. For example: -A Wizard gets b...
[1 reply] : > Any better idea than the one above? Maintainability is important for... (by JLBorges)
Rounding and converting to integer.. gahh
 
Ok so I'm in a programming 1 class working with c++. I have the following assignment: Write a C++ program that: asks for and accepts the Percentage ear...
[3 replies] Last: Figured it out. So simple lol... Thanks for the input int perc = rou... (by justinc978)
Randomizing an array without repetition..
 
Hello? Can I ask a little help with this?.. I just want to make a WORD GUESSING GAME which when you play it and got the correct word will ask you to play again ...
[2 replies] Last: okay.. i'll try it :D thanks ^_^ I'll reply back for the outcome, Than... (by asunyan12344)
by Mike92
Display Calculator
 
Hi guys I am having trouble as I need to display a simple calculator using cout however I have no idea how to start it. Can someone please help me with certain ...
[1 reply] : Are you just trying to print certain characters and newlines to the sc... (by Ganado)
Dynamically Allocated Array Parameters
 
I have changed my const global int NUMLABS to a non constant variable so that the user can decide how many labs to input. I adjusted the parameters of each func...
[1 reply] : IntPtr labs ; is illegal. NUMLABS should be a compile time constant... (by MiiNiPaa)
Exception Throwing
 
Consider the following code : #include <iostream> #include <ctime> #include <cstdlib> #include <stdexcept> using namespace std; class Speaker { private: ...
[3 replies] Last: How can I pass objects without being copied ? Pss by reference or pas... (by MiiNiPaa)
text-based rpg game
 
Hey guys I have this text-based game that I want to make incredibly in depth. Close to the Xbox 360 game Skyrim. But being an Indy game and my experience leve...
[3 replies] Last: Ok thank you. Ya its a work in progress. Not as in depth as Skyrim b... (by Masterassassin1398)
Deleting Dynamically Allocated Arrays
 
I am editing this code provided by my teacher. I have gotten it to work except that there is a runtime error because I cannot deallocate the memory for the poin...
[2 replies] Last: a) labs werent created with new , so attempt to delete them is an erro... (by MiiNiPaa)
by tec23
static variable declaration
 
Hi all. Just a simple question. If i declare 2 variables like this static int first, second; will both of them be declared static or will only first b...
[5 replies] Last: Thanks for the correction, but to be clear, I said that to enthusiasti... (by AceDawg45)
How does a computer store a floating point number?
 
Hello, for my college homework I have been asked to research how a floating point number is stored inside the memory. We have learned how a single whole number ...
[4 replies] Last: Thanks for the input, all of you really helped. From what you have all... (by SoftMOUNT)
Hex Format a little confused
 
Is my understanding correct? Ascii 'a' = 61 (Hex) Ascii '0' = 30 (Hex) So this is how we convert characters to hex. Integer 0 = 0 (Hex), because i...
[8 replies] Last: In C++ char is integral type. That means it only differs from int in s... (by MiiNiPaa)
in place merge sort for linked list
 
Hi, this is in-place merge sort, for merge function. Can you tell me, there is something wrong. thanks LinkedListNode::LinkedListNode(int value) { this...
[3 replies] Last: Sure. Have you tried it to see if it works? (by Duthomhas)
October 2014 Pages: 1... 3233343536... 38
  Archived months: [sep2014] [nov2014]

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