Beginners - January 2011 (Page 23)

appending arrays (1,2)
 
I have to say that arrays are somewhat of a pain in my behind! I am doing a phase of my homework, and when I am doing this, I like to search the internet for he...
[34 replies] Last: I am not sure how to do this with 1 instance of the array but I did it... (by Battousai)
Need assistance with a simple program
 
Hey forum, I just started a class in C++ and have no idea how to do an assignment. Here it is: Calculating Basic Statistical Information In this as...
[19 replies] Last: Visual C++ 2008 Express (by I Need Help)
Issue When Executing my Program (And other questions)
 
Hey C++, I'm a bit new to programming. And as in new, I mean I've only been programming for a couple of weeks. Now for my issue. I wrote a very rudimentary p...
[2 replies] Last: That seems to work perfectly! The professor didn't tell us how to keep... (by ParseError)
order of how c++ program
 
Hi, i was just wondering, what is the first file which is read when you launch an executable program, obviously it is the .cpp file (i think), but what if you h...
[6 replies] Last: Thanks (by TpOreilly)
Trying to construct a match function
 
I am trying to construct a match function that can take a char* and see if the contents of the char pointer is equal to a string. This is what I have so far an ...
[1 reply] : use .c_str() void match(string matchCriteria) { if (strcmp(res... (by wolfgang)
Hacker cup
 
Does anybody have the solutions for facebook hacker cup three problems.
[2 replies] Last: is his question even relevant to c++? haha (by cstorm)
namespaces
 
i just read the article on namespaces http://www.cplusplus.com/doc/tutorial/namespaces/ And i've heard/read that "using namespace std;" can screw things up, a...
[5 replies] Last: you dont necessarily need to blow the namespace out of the water sorta... (by acorn)
by Isuna
The Classical "Unresolved External Symbol"
 
Hello there! I am currently having some C++ lessons and some of us keep getting the "unresolved external symbol" error. Our teacher never cannot even guess why...
[6 replies] Last: the professor was unable to resolve your question because you forgot t... (by cran)
by aLemon
Pointer problems.
 
Hello. Need some somewhat urgent help, so me love you loong time if you can .. umm help. So i have this bit of code here: struct contbancar { char *n...
[10 replies] Last: yeah, I should have figured it was a node array... I'm lacking sleep m... (by cran)
strcpy() question
 
Hallo, some things seem easy but they aren't so. In C++ an array is equivalent to a pointer to the first element of the array. But if I use the strcpy() funct...
[8 replies] Last: Actually you can treat ia as a pointer to the first item of the array ... (by closed account N85iE3v7)
Conditional operator
 
This way of using the conditional operator isn't working. What is the appropriate way of doing it? I guess I am not using the right boolean condition since i...
[5 replies] Last: In every scenario where goto is used, you can alternatively use a cont... (by Kyon)
sorting
 
Please clear my doubt. I used the following logic to sort the numbers in ascending order... The logic seems to be right(correct me if i'm wrong). for(j=0;j<...
[6 replies] Last: Thank you guys... :) (by learner21)
looping
 
there is an if statement i have, where i want it, if it is met, to loop to the beginning of the program without using a for or while loop (as they are really in...
[10 replies] Last: you know i didn't think about using a do while specifically around the... (by closed account 4Gb4jE8b)
User defined problem
 
//program to convert stone to lbs #include<iostream> int stonetolb(int); int main() { using namespace std; int stone; cout<<"Enter the weight in ston...
[5 replies] Last: int stoneolb(int stoneolb) { int pounds=14 * stoneolb; return (pou... (by wolfgang)
My outside loop not using the sentinel value
 
I am in an indefinate loop and I am unable to see why. Can anyone help? #include <iostream> #include <iomanip> #include <string> using namespace std...
[2 replies] Last: Thanks. My thought process was backwards. I was thinking that the lo... (by twentfiveu)
by Kryon
C++ Primer plus
 
What do you guys think of C++ Primer plus 5th edition as a good first book to learn from?? What other good books might be of interest for a beginner?? Thank...
[3 replies] Last: C++ Primer is more advanced than C++ Primer Plus Maybe I have pro... (by sohguanh)
Difficulty with classes and changing variables
 
Hi all, I'm trying to set this up so that you can put a number in, positive or negative, and it will add or subtract form the array index so the correct day wi...
[9 replies] Last: roshi's code is much simplier .. thanks for the help (by darkpriest)
by lmwamh
If-else Statements
 
...
[10 replies] Last: oh, albatross beat me to it :P (by closed account 4Gb4jE8b)
How do you convert a string into a char array?
 
Hello, I know there has got to be a simple way to do this, but I am trying to convert a string that was recieved using getline (cin, string) to a char ar...
[3 replies] Last: Thanks, those are both helpful Ideas! I figured out a way arround it t... (by Ztokarczyk)
typing effect
 
I was able to figure out a simple typing effect on the console without too much trouble, but then i went complex (mostly because i was bored), and now i'm stuck...
[5 replies] Last: fun. is there anyway to find if the previous character on the console ... (by closed account 4Gb4jE8b)
January 2011 Pages: 1... 2122232425... 42
  Archived months: [dec2010] [feb2011]

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