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:\users\vitali\desktop\studium\informatik\classtut\classtut\main.c...
[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 quick sorts a list of integers so that it only sorts the high...
[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 a DNA strand and from there, the three functions are respons...
[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. (https://bpaste.net/raw/cb4cbf7070d0 ) of the queue example. Sam...
[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 private member of another class. I've tried fiddling around w...
[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. Why does this code use *pbuffer only some of the time? Thank...
[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 display each outcome and a histogram of the outcome. Keep a ...
[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? when trying to compile it gives off ||=== Build: Debu...
[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 when it comes to c strings because we barely covered them and ...
[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 seems to start with my function prototypes. I just can't seem ...
[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 little trouble using the if statements to set limits. So my profe...
[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 running fine except this portion. The issue is when I run the pro...
[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 over the topic in class and it's an extra credit assignment...
[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.. #include <stdio.h> #include <fstream> #include <string.h> #...
[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 : Defines the entry point for the console application. // #incl...
[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 open, but it keeps telling me file closed. And just as a side...
[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 arrays. It then needs to calculate the average monthly rainfal...
[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 trying to make a function that randomizes the chance of a baby b...
[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 you guys help. Thanks!! :) #include <iostream> using namespa...
[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, reads data into 3 parallel arrays (name, id#, balance), and...
[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.