Beginners - April 2016 (Page 13)

by ShaLee
Counting items in a vector
 
I'm a beginner, so this is complicated to me. For a C++ class project I'm writing a program that reads a data file of all the Powerball numbers drawn from 02/2...
[11 replies] Last: I believe I have it working, but it's basically displaying (I think) t... (by ShaLee)
Gaussian elimination [repost]
 
(Note: this is a repost from a post I posted 3 days ago but it got no replies, so I am reposting it. I hope I don't get banned) Hello there. So, for the last 2...
[6 replies] Last: Never mind I solved it finally. Phew, this one was hard. #include<i... (by jgg2002)
by salty
Test program
 
Need to to test the program (stu.txt) with this: Jon Doe 123 Salisbury MD 3.54 Sue Carr 133 Pittsville MD 3.67 Ed Bahr ...
[no replies]
Main differences between an array and a linked list
 
What are the main differences between an array and a linked list. In regards to Structure and Efficiency of Operations?
[1 reply] : The descriptions on the reference pages are pretty good: array (std::... (by Norm Gunderson)
by illvm1
Got errors in my second ever made program
 
Whats wrong? #include <iostream> #include <Windows.h> #include <time.h> #include <cstdlib> using namespace std; int Throw(int powerused, int userinput); voi...
[3 replies] Last: Whats wrong? With what? Line 78: flying is an unintialized variabl... (by AbstractionAnon)
Infinite loop help
 
I am creating a linked list from the keyboard and when executing its giving me a endless loop and i'm not sure why, some help would be greatly appreciated. ...
[2 replies] Last: Oh i see, the book my class is using is written in C but i prefer C++,... (by tututboom)
I need help understanding a Push/Pop Data Structure
 
I've been learning push/pop data structures. So far I understand that the last item in is the first item out. The last item in will be at the bottom of the list...
[9 replies] Last: hello friends, Before answer your question let me tell you one thing... (by khawa)
C++: Taking numbers from 2 functions and taking the average of them in another function
 
How would you make a function where the function takes the average of two numbers from 2 other different functions. double averageWords(Counts& counts) { ...
[2 replies] Last: My program is taking a text file and reading how many words, sentences... (by Hedgehog Ninja)
cannot convert parameter 2 from 'int' to 'std::ios_base::iostate &
 
I am writing and exploring a Data Structure (Quicksort) from my school text book and copied down the source (almost verbatim) for all the functions. All I am do...
[3 replies] Last: My parameters for the swap function were off when i called it for the ... (by Maxi Samson)
HELP!!!
 
I am new to c++ and i want to be able to move a single char across the screen using the arrow keys on the keyboard. Please make your response as simple as possi...
[2 replies] Last: Please don't post multiple threads in the same topic. It fragments di... (by MikeyBoy)
Sum of positive numbers
 
Hey, I'm trying to make a code where the user inputs a series of positive numbers and when they input a negative number, the series stops and adds all the posit...
[2 replies] Last: I think I might have read about that at some point, I'll go look that ... (by anthonyn25)
Really need help with the main function of this Class program
 
Write a class name StudentRecord with the following specifications – • Data members: name, marks , major, term (use appropriate data type) • Member f...
[9 replies] Last: Ahh thank you soo muchhh you're awesomeee!! (by kphoang)
Error code returned 1 exit status question
 
When I compile this code, I get a message: Id returned 1 exit status I ran the program to get the pick just fine. As soon as I add the comparison function,...
[1 reply] : Your compareNumbers() function implementation doesn't match the protot... (by jlb)
Trouble with using arrays in Functions
 
Hello, I haven't spent a lot of time debugging this program but I wanted to preemptively post this in case it took awhile for a response. I keep getting error...
[3 replies] Last: Thanks to both of you for replying!!! I can't use pointers yet because... (by jjkrynock)
Detect first letter problem
 
Hi forum! I was writeing a encryption program, i make it all to convert car something like: 01010 10101 01111 The program is encrypting something like: 10101 0...
[1 reply] : You haven't shown the type of a. Is it a std::string or a char arra... (by AbstractionAnon)
My KeepWindowOpen() isn't working as expected
 
I felt that my understanding of C++ wasn't thorough enough, so I decided to read Programming: Principles and Practice Using C++ by Bjarne Stroustrup. Anyway, my...
[10 replies] Last: @integralfx There are two issues here, and they are only accidentaly r... (by tipaye)
Return type errors for double templated function
 
Quick run-down. Here is the assignment: https://drive.google.com/file/d/0B-t5ghDb_TCqRDVJekFrX3M5bGM/view?pref=2&pli=1 Here is the main for testing: https://d...
[14 replies] Last: Never mind, got my program to work fine now. (by Arslan7041)
How to store a string into a vector?
 
Given a string such as this: These,Are,The,Words,To,Store How could I make a vector that stores each word as a string, separating them into elements determi...
[1 reply] : There are several ways to do that. You can use the function find() an... (by coder777)
Operating Systems Critical Section c++ code help require
 
the algorithm is for two processes lock variable initially 0 when a process wants to enter its critical region, it first test the lock if lock is 0 the pr...
[3 replies] Last: You cannot do it like that. Either you have really two processes (i.e... (by coder777)
[2 problems] getline - do while loop condition ?
 
Because the problems had been solved, I decide to add the answer to top post: The solution: http://www.cplusplus.com/forum/beginner/189400/#msg917755 Explain:...
[6 replies] Last: Regarding 'undefined behaviour'. A programming language like C++ can ... (by Chervil)
April 2016 Pages: 1... 1112131415... 43
  Archived months: [mar2016] [may2016]

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