Beginners - July 2011 (Page 10)

EXC BAD ACCESS error on Deck Class
 
Good Evening, I am having a problem with a section of code giving me the above error. I created a destructor, which I didn't have before, and still the prob...
[5 replies] Last: Thanks again, the problem was in another .cpp file where the card clas... (by Johndoe1134)
by codrgi
increase date?
 
using the [url="http://msdn.microsoft.com/en-us/library/dd757629%28v=vs.85%29.aspx"]TimeGetTime function, how can i add days or even months to the current time...
[3 replies] Last: how would i increase the time by a day/month using any of those funct... (by shacktar)
basic program need help understanding!
 
#include <iostream> using namespace std; template <class T> int search (T *data, int size, T value) { for (int i =0; i < size; i++) if (da...
[13 replies] Last: I believe Exception is the parent and MemException, IOException are su... (by sohguanh)
What could be wrong with this?
 
I've used this same line elsewhere in my program, but here it says that 'Deck' has no member named 'begin' #include <list> void Player::get_car...
[7 replies] Last: //in the Deck class Card Draw { my_deck.pop_front(); } Th... (by Disch)
Never mind....
 
.....
[6 replies] Last: Need to not do his homework for him... Particularly like the example s... (by Intrexa)
by Adrio
C++ Fibonacci sequence help!
 
Hey there! The assignment is the the Fibonacci sequence except the user has to input how many elements they'd like to run for. We have to dynmically allocate me...
[2 replies] Last: which variable should I change to long long? which is the one the code... (by Adrio)
Make an array of char arrays
 
So I am trying to make a char** that is named Final with x pieces and y chars in each piece... char** Final = new char* ; is my creation line but it will give...
[3 replies] Last: The problem with 1D idea is while it is "easier" for C/C++ developers,... (by sohguanh)
Function Call to a Class
 
I need a little help with the syntax of a function call. int main() { Deck d1; Player p1; p1.get_card(d1); ... } class Player { ... void Pla...
[2 replies] Last: Thank you. Good call on the list of Decks. I was making this too com... (by joatmon)
by Brad1
Need help creating a table.
 
I need help making this code below print 10 ascii characters per line. Any help is appreciated. #include <iostream> using namespace std; int main() { ...
[2 replies] Last: every repost is repost repost posted and answered already here: http... (by Intrexa)
Efficiency
 
Hi I am trying to make my code more efficient. Is it more efficient to write a function for factorial or to call it from math? Thanks
[2 replies] Last: thank you (by pbajaj5)
by Audie
The Destructor, and declaring . . . returning an object of same type to calling object
 
I hope this won't be too vague but I don't want to be verbose. . . . I don't always seem to have this problem. I have this class, Text, whose objects consist of...
[6 replies] Last: Aha. I have a copy constructor and an assignment operator for the Stri... (by Audie)
recursive
 
include <iostream> using namespace std; int sumarray(int ,int); int sumarray(int a ,int n) { if (n==1)return a ; else return(a,(n-1)+sumarray(a,n-1)); } int ...
[1 reply] : line 7 is wrong, which might be why you're not understanding it. Th... (by Disch)
Random Shuffling if List Items
 
I'm working with an STL list. Say that I have a list of 25 items, and I want to switch the value in the 10th element with the value in the 18th element. Anyon...
[2 replies] Last: Thanks a lot. This worked really well. As for the tip about the cont... (by joatmon)
error LNK2001: unresolved external symbol
 
I am unable to figure out why exactly this error keeps occuring, I have tried adding libraries with no prevail. error LNK2001: unresolved external symbol "p...
[1 reply] : The linker error is nothing to do with libraries. It's because you hav... (by andywestken)
For Loop and square root
 
Ok this is what i have: #include <iostream> using namespace std; long int a; //number long int b; //power long int c; //square int main () { ...
[5 replies] Last: That is what it says in his original post. I thought it was his homew... (by kooth)
by larxi
"For loop" continues without prompting.
 
Dear C++ users, I am reading DEITEL's book about C++ and experimenting with the examples. (For those who may own the book I am talking about fig06_11.cpp) S...
[9 replies] Last: It is because cin loses its integrity when it handles the wrong input ... (by kooth)
by Adrio
Fibonacci sequence using dynamic allocation
 
Hey there! The assignment is the the Fibonacci sequence except the user has to input how many elements they'd like to run for. We have to dynmically allocate m...
[4 replies] Last: But which variable would you change to long? cuz there are some that d... (by Adrio)
by Alx101
Vector, iterators and char int's (1,2)
 
Hello! I'm quite new to programming but not a complete beginner, however i'm trying to make a program that let's you store game titles using vectors and iterato...
[23 replies] Last: Dude i did not get any of that code, you will have to explain it to me... (by Alx101)
HELP
 
I want to make a program that records how meny times my internet turns of a day, but i dont know how to start of. i know basic c++. can sumone help
[2 replies] Last: i will look into that thanks (by JBbigwilly)
Compiler erros make no sense?
 
Hello, me again :p. Im was following [url=http://www.aaroncox.net/tutorials/arcade/FallingBlocks.html] this tutorial and when i finished i went to compile, a...
[2 replies] Last: thanks that fixed it! (by nano511)
July 2011 Pages: 1... 89101112... 54
  Archived months: [jun2011] [aug2011]

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