Beginners - October 2014 (Page 13)

Implementing your own sort.
 
Hello comrades, I am having trouble trying to output only the names and gpa that are inputted. For example, If I were to input two student info, Johnny Chan 87...
[5 replies] Last: The code to implement the selection sort is right on the wiki page. a... (by Esslercuffi)
question on inheritance
 
Hey Guys, I'm learning about inheritance this week in class and I have a question on how to call a derived function to do some work then the abstract functio...
[1 reply] : So I figured it out. I hadn't filled in the parameterized constructor ... (by patrickweiss52)
Learning both C# and C++?
 
Hi, i have some experience in C#, like basics and some advanced. And i want to be a programmer, because i'm really into computers, and i really want to create ...
[2 replies] Last: Most professionals are proficient in several languages. C++ is great f... (by Esslercuffi)
by csharp
Need help with pointers
 
Hello, I am kind of new to pointers variables and dynamic memory allocation so please can someone explain when the following code is outputting the followi...
[4 replies] Last: ohhh, I didn't notice that there is factorial involved in this so I ... (by csharp)
Creating a menu using vectors, strings and arrays while reading from 2 text files
 
Alright, I been trying to do this for a couple of hours but I'm not getting anywhere. First of all, I have 2 text files that I need to read from a different fun...
[1 reply] : #include <iostream> #include <vector> using namespace std; int main (... (by anup30)
How can I count the number of times a specific letter appears in a c-string?
 
...
[2 replies] Last: .... (by SomeAmazingGuy)
Please help! 2-d arrays!
 
Hello. I'm a bit stuck on a code for class. The assignment asks for you to create an int array of random numbers between 50 and 100 using 10 rows and 3 columns....
[1 reply] : Moving some lines of code and adding an array to hold the sums of ever... (by kevinkjt2000)
by iluv41
adding elements to an array
 
each entry of my array has 4 elements, a title, author, category, and size. I am adding an entry to my array entrylist and I have to do it through parameter...
[1 reply] : If I understand your question correctly, the problem here is that pure... (by Ganado)
Some type of function Error
 
Hi, I wrote a function to find the sum of an equation, but the output I keep getting is 0, when it should be 784 when x = 7. Can anyone tell me what is wrong? ...
[3 replies] Last: double i; while(i < someNum) You need to initialize your loop cont... (by mobotus)
by iluv41
error C2679 binary '<<' no operator found
 
I have a function that searches an array for matching titles and outputs that title, but I am getting the error C2679: binary '<<': no operator found which take...
[8 replies] Last: and what about the input? (by iluv41)
Expression must have constant value
 
Hello, as the title says, I keep getting this error starting in line 14 and beyond. Int n gives me the error "expression must have constant value". I've resea...
[1 reply] : The compiler wants the n variable to be a constant (e.g. const int n ... (by wildblue)
Find out the smallest integer whose factorial is greater than 3000.
 
Hi guys, I'm just working on an assignment and I have no idea where to start. I'm just starting to learn for loops and while loops, can this program be accompli...
[7 replies] Last: Excellent :) (by closed account 48T7M4Gy)
Pointers and Memory Allocation
 
Hello everyone, I'm working on a linked list implementation. However, in implementing the AddAt method (in the file List.cpp), i allocate memory for pointers...
[5 replies] Last: For the exact code that you posted above, the memory is leaked. But fo... (by dhayden)
Simplifying constructors
 
Hello everyone, In an internet class I am following, we had to make a "fraction" class, that is, a class to handle rational numbers. To do this, I created th...
[2 replies] Last: Thanks a lot ne555, works well!! (by BobMorane)
by mstru
Makes sense to me; Where's my logic error? (Arithmetic Generator)
 
So I'm very new to coding in general, and my assignment is to make a program that generates a random addition problem and the user needs to guess the answer. If...
[1 reply] : = is assignment == is comparison (by ne555)
sigma algorithm for programming
 
Your program must allow the user to input values for n, a, x and c. Your program will then perform the calculation, output the result and ask the user if ...
[1 reply] : See http://www.cplusplus.com/forum/general/146022/ (by closed account 48T7M4Gy)
by CDavis
Classes with Structs
 
So I have a problem that I have to work on which I'm having issue finding info on the internet or I'm just not putting in the right key words. Anyways I did ...
[no replies]
normalization to files. hints needed
 
I am stuck at this normalization part. I am using a string and reading data one by one. I keep getting blank. The program compiles. Any hints to what to do next...
[no replies]
C++ advertising survey.
 
I have an assignment like this: Your assignment is to prompt the user to enter the full pathname to the data file on disk. If the file does not exist in the ...
[no replies]
vectors
 
So I decided to take a challenge and make an 'infinite' calculator using vectors The goal of my calculator is to get user input and add/sub/mult/div all the var...
[1 reply] : First I'd try it with an exit loop and then see whether I could do w... (by closed account 48T7M4Gy)
October 2014 Pages: 1... 1112131415... 70
  Archived months: [sep2014] [nov2014]

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