Beginners - May 2015 (Page 29)

Class
 
Hey Guys. I have a problem here. I cant compil this code. Every time I get the massage: 1>c:\user...
[2 replies] Last: Nice, thank you. Yes, the problem is now gone (by Vitalik2)
Partial Sort
 
I am looking up some variations of quick sort. Right now, I want to write a program that partially q...
[3 replies] Last: Okay, well for partial quicksort just do a normal quicksort until you ... (by Semoirethe)
terminating with uncaught exception of type std::out_of_range: basic_string
 
Hello, I'm having an issue with this dummy program that I'm trying to use. I want the user to input ...
[3 replies] Last: > Your variables strand1, strand2, strand3 are not initialised to anyt... (by ne555)
by Immo
Creating a stack with Inventory class objects, having some problems
 
Hi, so I've accomplished the program as a queue but I am having trouble turning into a stack. (htt...
[1 reply] : In line 67 you have: for (int i = 0; i < invStack.size(); ++i) { . ... (by Semoirethe)
by Immo
Sorting a linked list
 
After looking around for some solutions, I haven't encountered any problems with a Node class as a p...
[2 replies] Last: It just needs to be sorted, really. I saw one example using a bubble ... (by Immo)
help with understanding pointers
 
Iam trying to understand pointer in c++. I understand that a pointer points to a memory address. W...
[3 replies] Last: The character string will usually be ended by a null char, which would... (by Texan40)
by nruiz8
How can I fix my histogram code?
 
My assignment was to do the following: Write a program to simulate rolling a die 100 times and to ...
[3 replies] Last: you're welcome. (by Ganado)
fatal error with #include "stdafx.h"
 
Hi I wrote some code but it's giving me error and I have no idea how to fix it. Can you guys help me...
[4 replies] Last: Use C++11 (or better, C++14) if you want the i/ofstream construction o... (by Ganado)
Lexicographical Order - C strings
 
Hello! I am studying for a final and I was given a pool of "questions" for studying. I am stumped wh...
[2 replies] Last: I understand the terminology, I just can't find anything in my book fo... (by Hydra88)
Compiling my Program problems.
 
When I tried to compile this, I seem to have alot of issues, but the issue I want to take care of se...
[4 replies] Last: Thank you very much for your post. I will go through it and I will giv... (by garra113)
Help with "if" statements
 
So my professor assigned me this homework yesterday and i'm nearly finished but I am having a littl...
[3 replies] Last: Since d-i is the last range, you could either do this with an else sta... (by closed account 2LzbRXSz)
Is there something wrong with my function arguments?
 
I wrote a helper function is_vowel for my function countSyllables. All parts of my program are runni...
[4 replies] Last: Thank you guys, I've figured it out! As a beginner I forget, though I ... (by GiveMeAName)
by Immo
Comparing strings with a queue
 
Hello, just started working with queues and need a push in the right direction. We only briefly went...
[2 replies] Last: Last point noted. I'm still not getting the desired output though. I'v... (by Immo)
by new1
open file with full path and delete a line in big file
 
Here i m removing the line from a big file i wrote the code which is working fine as below but.. ...
[no replies]
How do I reverse the following Array using Class/Void structure?
 
How do I reverse the following Array using Class/Void structure? // Array Class Will L.cpp : Def...
[2 replies] Last: reverse_array(A, size): if size is less than or equal to 1 then ... (by Smac89)
by ahhvb
Trouble with opening file in code
 
I am having trouble opening a file after I close it. It is at the point where I verify the file is o...
[1 reply] : [quote=std_ifstream_open]If the stream is already associated with a fi... (by Smac89)
Weather Statistics Program Using Structs
 
The program needs to accept for different pieces of data which it then stores into four different ar...
[3 replies] Last: No you should probably be starting out with something like: int main... (by jlb)
Too many arguments to function rand
 
I really am in the dark on this one. This is a function from my "zombie rabbits " program. I am tryi...
[3 replies] Last: Thank you for the quick response. It works now. :) (by lukecplusplus)
Rock Paper Scissors game
 
Guys im new to programming and its really fun tbh but i'm having a hard time with my program could y...
[1 reply] : Please use code tags: http://www.cplusplus.com/articles/z13hAqkS/ Ple... (by firedraco)
by InVain
Reading a file into multiple arrays
 
For my assignment i have to build a program that prompts the user for an input and output .txt file,...
[3 replies] Last: It's more common practice to use istream::ignore() to skip the rest of... (by andywestken)
May 2015 Pages: 1... 2728293031... 40
  Archived months: [apr2015] [jun2015]

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