Beginners - February 2015 (Page 26)

by Nillen
"const type" can't be an int
Just started with C++, no programming experience apart from working with mSL. My idea is to have user input select a file which will read the questions in their...
Feb 16, 2015 at 7:47am
[1 reply] : http://www.cplusplus.com/reference/string/string/ (by keskiverto)
String does not name a type
Hello, I think this is a fairly easy solution but I'm just missing something. I'm getting an error in my header file that says: 12:3 error: 'string' does n...
Feb 16, 2015 at 7:21am
[4 replies] Last: Thanks guys! This helped fixed the errors. (by androidguy1)
Deconstructor issue!
I don't think my deconstructor is working properly the message in the deconstructor, to let the user know it worked properly, is not showing on my output, an...
Feb 16, 2015 at 5:25am
[11 replies] Last: Actually the stack takes care of itself. You only ever need to delete... (by Texan40)
Magic Square help!
I have to write a program which checks the conditions of this specific 2D array: const int Size = 3; int a = { { 4, 9, 2 }, { 3, 5, 7 }, { 8, 1, 6 } }; ...
Feb 16, 2015 at 5:08am
[5 replies] Last: Hasn't that been answered already? for( int x = 0; x != Size; ++... (by OxBADC0DE)
Doing Do-while loop
So I'm supposed to write a code that prompts a user to enter a number less than 100, until the user finally puts a number that is less than 100. Here is my c...
Feb 16, 2015 at 4:28am
[3 replies] Last: But thank you though. (by calisabeth)
Can't figure out how to add space.
So the problem wants me to write code that gives me output like this: 0 *1 **2 ***3 There is a Blank Space Here. I keep getting the same output of: 0 ...
Feb 16, 2015 at 4:15am
[3 replies] Last: Sorry guys. When I put my example in, I thought it would show the spa... (by calisabeth)
Deck was not declared in this scope problem
Hello, I'm trying to get my player1Hand function to work with my deck function so cards can be drawn from the deck and used in each player function. I'm not sur...
Feb 16, 2015 at 4:05am
[3 replies] Last: You could declare the deck in main() and pass it by reference to deckF... (by closed account D80DSL3A)
Recursion problem.
I've written the following recursive function. But when I give large value in it, it crushes. Why? How to fix it? #include <iostream> using namespace s...
Feb 16, 2015 at 3:33am
[3 replies] Last: you can try following non-recursive function. #include <iostream> in... (by anup30)
Issues with Newton's Method
Hey Guys I have to write a Newton's Method program for a class I am in and I am running into some issues here. The program has to iterate through until x1 and ...
Feb 16, 2015 at 2:36am
[1 reply] : What is the value of x1 on line 15 the first time through the loop? (by cire)
parameter packs not expanded with '...' ???
I tried to define this template function and the compiler generated a error saying "parameter packs not expanded with '...'." template<typename T, typena...
Feb 16, 2015 at 2:24am
[4 replies] Last: Okay, I see. Thanks for your reply! (by glenjoker)
Starting out with C++ 7th edition- chapter 8 programming challenges #1
Hi, I'm trying to do challenge #1 from the programming challenges in chapter 8 the code complies but it's giving me some weird thing like this: Thread 1: EXC_...
Feb 16, 2015 at 1:39am
[2 replies] Last: That worked thanks!. (by overlord49)
Yes/No by If/Else Char Response in C on Visual Studio 2013 Compiler
Hello this is my first post. I am taking an introduction to C class in my college and the assignment this week is to write a program to a classmate's yes/no sce...
Feb 16, 2015 at 1:34am
[6 replies] Last: Magnificent! This cleared it up and it works perfectly now. Thank you ... (by airfire29)
by kiri
oo
..,.
Feb 16, 2015 at 1:12am
[no replies]
Need Help using txt file.
i am trying to make a program that reads a username and password from a txt file then makes you log in and checks to see if the username && password are correc...
Feb 15, 2015 at 11:29pm
[no replies]
doubly linked list help!
HI,I doing the program for my college and I don't Know why show "segmentation fault , please if you could help me I would greatly appreciate it . this acti...
Feb 15, 2015 at 10:38pm
[no replies]
MenuBuilder: wont show the menu selection
Not understanding why the choice entered in the testMenus1 will not run through the switch statement in the choseMenu() function located in menuBuilder1.cpp. I ...
Feb 15, 2015 at 10:14pm
[no replies]
Bubble Sort C-String
Hey guys I'm encountering an error when trying to sort char * (C-strings). I'm not really sure what it is. Hoping someone can guide me. void bubbleSo...
Feb 15, 2015 at 7:26pm
[1 reply] : void bSort(char *arr, int n) { for (int i = 0; i<n; i++) { for (i... (by anup30)
Bug at the end of my program
I have no idea why this isn't working. I've tried so many things. It runs all the way through but says that the "program stopped working" error right as it exit...
Feb 15, 2015 at 6:49pm
[2 replies] Last: That shouldn't be an issue. That's just saying if cin is not the right... (by bigzigzag)
by HelenI
String to int
hey, i want to convert a string into an int. how do id do that?
Feb 15, 2015 at 6:42pm
[2 replies] Last: thank you :) (by HelenI)
Polymorphism
Hı guys.I have problem with a example which is in Big C ++.I don^t execute this example.When I uses virtual keyword,the program don^t execute.When i don't use ...
Feb 15, 2015 at 5:55pm
[5 replies] Last: thanks you for helping keskiverto.I solved the problem.I reoved cpp an... (by earthquake)
February 2015 Pages: 1... 2425262728... 52
  Archived months: [jan2015] [mar2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.