Beginners - October 2013 (Page 79)

Wrong amount of elements in my array?
 
Hi, I decided to made an account for some c++ help. I have made a vector array of objects which represents a deck of 52 playing cards. Every new card I decla...
[11 replies] Last: You do have its own instance of cardDeck in each card. And it is a mir... (by MiiNiPaa)
Aborted (core dump)
 
Alright, so I got some help earlier, that seemed to work, and now I'm experiencing problems running the code. I'm running an SSH with UNIX, and the code compile...
[3 replies] Last: Thanks a ton for the help! (by catalanor0220)
Nested For Loop
 
I have a piece of code that I need to analyze to determine its output just by looking at it. I ran it and know what it looks like. I'm just having trouble with ...
[15 replies] Last: Oops, yes, you're right. It does NOT happen before the first iteratio... (by MikeyBoy)
by aggsyb
checking If a vector contains x integers?
 
If I have a vector that contains 5 integers 2,6,9,19,20 , how can I write an if statement to say if the vector 'contains' 3,6,7,10,21 then do x (the vector ch...
[7 replies] Last: > The "simplest" way I guess would be a long statement to say if myvec... (by JLBorges)
by hah49
strcpy and strcpy_s
 
Hey guys .. every time i use strcpy in my program i get a warning .. not an error but just a warning .. and i have to get rid of these warning .. I have a no...
[2 replies] Last: [quote=hah49]i have to get rid of these warning .. There should be op... (by MiiNiPaa)
Help with changing a program
 
Hello, i would like to change this program that someone on this forum helped me make, the program works fine, but i dont know how to make it only show the 4th r...
[4 replies] Last: Thanks guys. i got it, thanky ou for the help once again, i love this ... (by ashmedai)
by Aibsr
friend classes and list<ClassSomething*>
 
Hey So i have class X with a list of <ClassY*> (There are classes inheriting from Y) and i want to write a function that returns the list (A member function of...
[8 replies] Last: Thank you for your help:) (by Aibsr)
Creating own strcmp and strcmpi
 
We are asked to make our own function for strcmp and strcmpi. This is probably wrong, I'm quite clueless about this. All I know is that if the two strings are e...
[1 reply] : #include<iostream> using namespace std; int ownstrcmp (char str1 , ... (by karlsanada13)
String replacement help
 
in the code below.....I'm getting 4 errors (2 for the same line) 1.) expected constructor, destructor, or type conversion before '.' token 2.) expected ...
[2 replies] Last: this is a homework assignment using replacement strings. When the code... (by doctab18)
Help w/ code error (1,2)
 
I keep getting the error "expected declaration before '}' token" and I don't know what to do to fix it. #include "webcount.h" void WebCounter::di...
[20 replies] Last: [quote=tryui23]I never did define it..... how do i define? You don't, ... (by LB)
by wolfv
How to instantiate static array of interlaced objects?
 
The following code instantiates a static array of interlaced objects. The objects alternate between type AClass and type Bclass. #include <iostream> usi...
[3 replies] Last: Don't forget to delete them afterwords! (by LB)
Need help with a clock related code
 
Hello there good people of the cpluspluss forums. I am currently writing code for a program that is supposed to take two different digital clock timestamps (hh...
[6 replies] Last: After line 12, you need to use cin to ask the user, otherwise how will... (by LB)
Right-justifying, user-input numbers
 
I am prompted to input three integer numbers, one at a time. Is there a way to right-justify those numbers? I am just beginner in C. Please lend me a helping...
[9 replies] Last: Not quite right-justifying input, but perhaps this may suffice: #inc... (by JLBorges)
IDE or not?
 
So I'm getting mixed opinions from people all over. In some instances people tell me IDE's are like crutches and make you weak. Others tell me that coding ...
[6 replies] Last: - i don't get what you mean by that, it's just a compiler ... - Here... (by keskiverto)
Convert Strings To Numbers
 
I have to have a menu page (as a string menu, as below, which returns a string data type) if the user enters 1, 2, 3, 4 i should be returning that but as a stri...
[11 replies] Last: @NwN No need for apologies, I always have respect for what you have t... (by TheIdeasMan)
by aspic
Login
 
excuse me ! help me please! how can i make the program say that if i created an account ex. name:aspic pass:plusplus and create another with the same name ...
[5 replies] Last: Another idea is to use C++11's unordered_map . It allows for a key (b... (by TwilightSpectre)
signed hex to dec converter
 
When I run this program for converting Dec to Hex works perfect, but in Hex to Dec, I get a debug error in VC++ runtime library but still get the right answer. ...
[1 reply] : First problem that this is not a conversion to signed Hex. It looks li... (by MiiNiPaa)
error pinpoint problem
 
Regardless of what i input, even if its the correct answer. i don't know why it goes directly to incorrect #include <iostream> #include <iomanip> #inclu...
[7 replies] Last: dev c++ (which is what my school is forcing me to use) is out dated. :... (by themandrius)
by SSEKA
How can i Extract Data from a txt file
 
How can i extract data from a text file and implement the answers to the code and give the results with the loop ending when it runs out of data extracted from ...
[1 reply] : Didn't actually read code thorough, but there is some advice: 1) Check... (by MiiNiPaa)
More help
 
Write your question here. . turns out the error is actually in my webcount.h file 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20...
[7 replies] Last: Also delete lines 3 and 4 in your code - they aren't necessary for tha... (by TheIdeasMan)
October 2013 Pages: 1... 7778798081... 86
  Archived months: [sep2013] [nov2013]

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