Beginners - July 2014 (Page 25)

Need help with vector
 
Write your question here. class CollegeStudent { public: string get_name(); virtual void take_test() = 0; virtual string play_sports() = 0; ...
[3 replies] Last: Vector holds elements of some type. Vector allocates memory for stori... (by keskiverto)
by wharp2
Static Arrays... program issues (1,2)
 
Hello, I am having a problem with a program I am tying to wright. It tells me that I have to: Create a 1-D Array to hold a set of exam scores: 55 74 9...
[37 replies] Last: Very pleased to hear that! (by Chervil)
why?
 
this is something simple, ijust dont know why happen this? Im still learning and try this: #include <iostream> using namespace std; #define PI 3.1416 ...
[5 replies] Last: > It will actually end eventually. > Once the numbers get too big and... (by JLBorges)
Need help with my code!
 
I am very new to C++ and i know my code is badly formatted, but dont hate on me because of that. I am coding in Visual C++ 2010 and I keep getting an error on t...
[2 replies] Last: Yes, Thanks you Ispil! (by trentonjeffro)
Can you explain this line by line
 
im not good in c++ so please leave a comment in every line of this code thanks in advance. // strings and c-strings #include <iostream> #include <cstring> #...
[1 reply] : I added a few comments. ;) // I added this line in. Some of the funct... (by Yay295)
by CDavis
Structs
 
So in class we just started Structs and for the most part they are not bad and I'm understanding it. However, my instructor throws me a curveball and want me t...
[1 reply] : This smells like C. Do you know about bool eans? (by xismn)
2d Array Reverse Error (1,2)
 
Write your question here. Hey everyone, my program is supposed to take 9 numbers as an input then reverse it into a 2d array. I can't do that because it's tell...
[21 replies] Last: Cool! Glad you got it working :) (by wildblue)
Resetting variable used within switch, inside while loop and referenced by function
 
The user input for "minutes used" will generate a random number rather than the actual user input when outputted by the void printBill() function. I have tried ...
[6 replies] Last: I found the issue was actually with poor references. After I pointed T... (by darmok40)
by Nell34
Meaning of "->"
 
What it the meaning of ->. I the code I have to analyze I find a line variable->function(other variable);
[4 replies] Last: Its partly because it allows for sometimes having both. The -> opera... (by TwilightSpectre)
Help with a matching program.
 
Okay, so the prompt has us writing a program to read in a text file full of "wanted" and "for sale" text lines. We are to treat this as a somewhat realtime crai...
[4 replies] Last: this code compiles fine for me would you please tell me which compi... (by giblit)
My program has calculating problem
 
My calculating problem, It is about the sinh x, cosh x and tanh x function, the formula given is : sinh x = (e^x - e^(-x))/2 cosh x = (e^x + e^(-x))/2 The progr...
[7 replies] Last: Problem solved, thank you! (by wangshengwei95)
Can you explain this to me, please. I'm really confused!
 
I have been following various tutorials around the internet, getting a basic grasp of c++ and how it works. I have written this code, which is me practicing ...
[6 replies] Last: You would just need to have a loop iterate through each character in t... (by Yay295)
Program got error
 
My program got problem while calculating, it is about ordering drink, but each time when I want to calculate, it will show error as follows: C:\Users\Acer\Docum...
[5 replies] Last: nan means not a number. The ordering function takes two parameters, ... (by wildblue)
The melancholy of a noob
 
First of all, i would like to clarify that i am not trolling, bashing and advertising. I would like someone to give me his best advice for my course of action ...
[6 replies] Last: I'm using the 7th edition, however the teacher said we could use the 6... (by madelinelise)
memset() for two dimensional arrays
 
How to use memset() for two dimensional arrays? I tried using memset(arr,1,sizeof(arr)*m*n); (m and n are the length and breadth of the array arr res...
[5 replies] Last: memset() is used to initialize raw memory. If you want to initialize a... (by helios)
Appending to RichTextBox each char different font&background color
 
Ok, i have tried finding an answer for this but i either only find c# stuff or items not helping me. I have already got printing and so on and i have set up so...
[no replies]
by Nanyo
Change in the code
 
Hello I've made simple calculator but it has got a small bug. everything is fine until I enter (s) (c) or (t) sin cos or tan it shows me to enter the first n...
[2 replies] Last: Thank you! That solved my problem :) (by Nanyo)
Generic Binary Search
 
I want to implement a generic binary search algorithm . Generic : The type can be strings , integers , characters etc . So , i went through the websit...
[4 replies] Last: I mean , that comparing strings require str.compare() , but intege... (by giblit)
I have no idea where's my code wrong~~
 
Please help me check T.T~~ My code keep in never end loop condition T.T int x = 0; int y = 0; while (y >= 0 || y <=5) { ...
[3 replies] Last: You seem to have solved it, but I would suggest you look into switch s... (by Yay295)
Linked List returning NULL
 
My program works correctly except for the fact when i call this function to display whats in the linked list my linked list is returning back as NULL. From wha...
[2 replies] Last: count is so it only displays 10 items per line. What you provided sol... (by mattm86)
July 2014 Pages: 1... 2324252627... 43
  Archived months: [jun2014] [aug2014]

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