Beginners - August 2014 (Page 3)

Help with errors for multiple inheritance
Hi, I have got following errors and do not know where to fix the error. //lab4.cpp// Error 1-2 error C2661: 'BillingTN::BillingTN' : no overloaded functi...
Aug 30, 2014 at 12:03pm
[1 reply] : You are trying to construct a BillingTN object by passing 4 string arg... (by Peter87)
by zakkor
Pointer problems: program randomly hangs.
I'm trying to write a generic doubly-linked tree (or some variation of that, i guess) This is the code for adding a node to another already present node. ...
Aug 30, 2014 at 11:19am
[6 replies] Last: Thank you very much! (by zakkor)
2D array Help
So i have two 2d arrays and i need to add subtract and multiply them then display them. i have everything pretty much good but im not getting the correct answer...
Aug 30, 2014 at 9:34am
[4 replies] Last: I went and replaced all the col with cols that I mistakingly threw in ... (by Inthemountainair)
Palindrome
Alright so I'm working on a code to check whether a given word is a palindrome #include <iostream> #include <string> #include <vector> #include <algorithm> us...
Aug 30, 2014 at 9:31am
[3 replies] Last: // Iterator for the first and last character string::const_iterator... (by giblit)
While loop
Good Morning Coders, I need a quick help with my while loop, I have a dynamically allocated array that increases with each input of an integer value, I wish to ...
Aug 30, 2014 at 9:22am
[10 replies] Last: ok im going to have go back over pointers (by MrBeavis)
c# XNA game studio 4.0
First things first, I want to devise game about PINBALL game. However I have no idea cope with making "blocks" in the game. "the blocks" itself's function to ma...
Aug 30, 2014 at 8:41am
[1 reply] : This is a C++ forum. (by helios)
Do I need to write a destructor for a normal pointer?
As stated in the question, if I have a class with a member that is a normal pointer( not dynamically allocated), do I need to write a destructor that delete the...
Aug 30, 2014 at 6:35am
[4 replies] Last: To giblit: Get it. Thanks a lot! (by glenjoker)
by Jcrew5
Queue segmentation fault
Hello, I'm not exactly sure if this should be going in the beginner section or not, but I still feel like I beginner so I put it here. Anyways, I'm writing a fi...
Aug 30, 2014 at 5:45am
[2 replies] Last: Wow, I feel really dumb for not even trying that, I've been sitting he... (by Jcrew5)
by vxk
object initialisation
I wanted to initialise an object of one class(say class A) in another class (say class B). I was successful using : A a1{1,1} but the following gave me error ...
Aug 30, 2014 at 5:18am
[6 replies] Last: MVP (C++): Most Vexing Parse (origin: Effective STL, Item 6) class C... (by JLBorges)
Expanding an array
My problem is to take an array, expand it to double the size using a function, use that same function to return a pointer. Here is the code I have so far ...
Aug 30, 2014 at 1:56am
[2 replies] Last: Thank you for the reply. Yes I was trying to get them all 0's. Your e... (by adam0421)
by Ch1156
How to link to libraries?
I need to link to GLEW and SFGUI libraries. SFGUI is a graphics library for SFML. I built SFGUI with Cmake and then now I dont know what to do, the documentatio...
Aug 30, 2014 at 1:54am
[4 replies] Last: Yeah i'm using code blocks, the problem is i dont know what files i sh... (by Ch1156)
by Geriel
Getting the value of a variable from a file
I want to get the value of a variable from a file. How do I do that? ofstream file1; ifstream file2; int with; int newstock; time_t t; time(&t); cout <...
Aug 29, 2014 at 10:57pm
[2 replies] Last: I initialized it in my program. This actually just a part of the whole... (by Geriel)
Understanding key comparisons and item assignments for insertion sort algorithm
Where in this algorithm are key comparisons and item assignments made? void insertionSort(int list3 , int listLength) { int temp; int loc; ...
Aug 29, 2014 at 10:45pm
[6 replies] Last: Thanks a lot. This extremely helps me. (by nileshjdarji)
by h4ever
CODE::BLOCKS IDE help - configuration
Hi, I statted to use code::blocks IDE but I cannot find out what I do wrong that compiler cannot find a library. System Windows XP, CODE::BLOCKS 13.12 installe...
Aug 29, 2014 at 8:43pm
[6 replies] Last: I sent the link already. This tutorial http://blog.refu.co/?p=663 It i... (by h4ever)
Count repetitions of a substring in a string
I have written the following code. I have to count repetitions of the substring in the string. What will be the code to count repetitions of the substring? ...
Aug 29, 2014 at 8:02pm
[1 reply] : You've defined count as an int. And no, you can't use an int as a f... (by cire)
Understanding sorting algorithms
For the bubble sort algorithm listed below, I don't understand at which step does a key comparison occurs and at which step an item assignment occurs. I do unde...
Aug 29, 2014 at 7:20pm
[3 replies] Last: How about the same question for an insertion sort void insertionSort(... (by nileshjdarji)
Issue with removing the last character of a string
Hello all, I am currently writing a text box class for me to use with the library SFML. However currently I am having an issue with deleting characters. Here...
Aug 29, 2014 at 6:59pm
[4 replies] Last: Adding character with no previous chars: before: 0 after: 1 Adding ... (by URSvAir14)
by wka
map of classes
I am currently trying to learn some c++ coding. For my purposes I would like to employ maps, which have strings as keys and classes as members. So I declared...
Aug 29, 2014 at 6:47pm
[4 replies] Last: thx. The quotation marks solved the issue (by wka)
What is this?
Can some one please tell me what does this code fragment mean? while (khi - klo > 1) { k = (khi + klo) >> 1; if (xa > x) khi = k; else klo = k; ...
Aug 29, 2014 at 6:38pm
[8 replies] Last: > you changed the condition, originally it was a range [) Yes. Thank ... (by JLBorges)
Problem in solving even-odd number
You are given a nonnegative integer number. The number contains not more than 100 digits. Then you have to check if the number is even or odd. I wrote the fo...
Aug 29, 2014 at 5:49pm
[1 reply] : You only ever need to examine the last digit in a number to see if it ... (by LB)
August 2014 Pages: 12345... 40
  Archived months: [jul2014] [sep2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.