Beginners - October 2014 (Page 20)

Pointer issue in custom string class
 
I'm working through Accelerated C++ and one of the chapters involves making our own string class 'Str'. One of the end of chapter questions asks us to have the ...
[2 replies] Last: Brilliant, thanks for the reply! (by jamesa917)
by GaryDT
Changing Pitch/Frequency of .wav Files
 
Hello There, Is there a way to load a .wav file into C++, run through a for-loop or while-loop, and within each cycle of the loop, change the frequency/pitch...
[11 replies] Last: Thank you once again. That's something else for me to consider. (by GaryDT)
Unresolved external symbol
 
Hello everyone ! :) I have a little problem, which i can't figure out. I am making a function which detects rectangle vs. rectangle collision. I get an error "u...
[2 replies] Last: Thank you, Peter. I didn't knew that. (by Dainiusss)
Need help with fixing a warning, warning listed below
 
Hey, I Have a problem with my code. Whenever I compile & run it I get a warning message saying: extended initializer lists only available with -std=c++11 or -...
[5 replies] Last: Line 9 can make the c an empty string Only with some non-standard ac... (by MiiNiPaa)
c++ memory amount
 
Hello guys, I'm very newbie in C++ and I would like to confirm something. Am I right if I say this as a conclusion?: The amount of needed memory for globa...
[3 replies] Last: thanks for the data. I thought that I could get a conclusion about th... (by srpomol)
by KMagic
Static union
 
Why do we have to put the word "static" before "union" when declaring a global anynomous union? What does the word "static" mean? Thank you.
[2 replies] Last: I got that, thank you very much. (by KMagic)
Standard way to create and hold lots of similar objects?
 
I'm working on creating a maze using SFML, and I was wondering what the best way to go about creating the walls would be? If I have a Board class and Wall class...
[11 replies] Last: It is a vector which contains strings std::vector<std::string> Amd t... (by MiiNiPaa)
by msrt92
want to create dynamic arrya in classes
 
I want to create daynamic array in classes. then add and delete element from that array i tried it but m still confuse please help... :) #include<iostr...
[1 reply] : #include<iostream> /// using namespace std; class set { private: ... (by anup30)
Please help me ...
 
make 10 simple questions with C++, every correct answers, will get 10 score and wrong answers will get -5. example : 1) Fungsi apa yang harus dimiliki oleh s...
[1 reply] : can we see your code youve made so far? (by xenovia12)
Where to get X Windows Source Code
 
Hi Would anyone know where to get X Windows Source code. I can find links which provide individual files but I can't find anything which lets me download a ...
[2 replies] Last: is this X11? It leads me to this. http://cgit.freedesktop.org/xorg/x... (by dominover)
Loops within loops
 
Hi, so in my Uni course I've been given this code that will be below and they have asked me to "understand" it and change it twice so the outputs looks like the...
[6 replies] Last: @Jezze Yeah thanks mate, after just tinkering around deleting and chan... (by Collwyr)
Function to read data types, help!
 
I have to create a program which asks the user (through a function) to enter data depending on the data type of the following arrays: int a ; char c ; floa...
[3 replies] Last: As you expect for your program to work with human and not a script, da... (by MiiNiPaa)
Calculator help
 
Hi, I wrote this calculator code, but when I run it, as soon as I input the operation, it prints the two questions of whichever operation I chose (asking you to...
[8 replies] Last: Enum behaves as a glorified int. enum Operation { OPERATION_SUBTRACTI... (by MiiNiPaa)
Copying text file to struct array (1,2)
 
The textfile looks liket his: Martin Smith/ 22 2.2 Austin Clinton/ 18 3.1 Johnson/ 19 2.9 Maggie Jones/ 23 2.3 Tyler W Brown/16 3.4 I have to copy the...
[29 replies] Last: it sets the position from where you read. f.seekg(0) is starting posit... (by anup30)
by Seag
Deleting nodes in a queue with linked lists
 
Hi, I can't for the life of me figure out this memory access error! I have highlighted what I think is causing the error, but it could also be the while loop th...
[1 reply] : Line 6: rounds is independant from the amount of elements in your li... (by coder777)
Ignoring whitespace?
 
I have to create a function which reads 6 characters from the user and stores it into an array: char c ; void ReadData(char x , int size) //for cha...
[3 replies] Last: Depending. Should you read space delimeded characters? Should you thre... (by MiiNiPaa)
Elevator Program - Newbie to C++
 
Hey everyone. Im just starting out in C++ and need a little bit of help on a project I am doing. I have the output / test cpp done already and most of the 'h' f...
[1 reply] : Looks fine so far. Might be a little strange to call your object by th... (by soranz)
Comparing two arrays
 
Ok, I highlighted my problem area at the end of my code in bold (line 103 on). What I'm trying to do with that function is to compare my two arrays. If the ...
[6 replies] Last: Good to know for future reference. Thank you. I actually figured out... (by Ascendant78)
to find the minimum
 
Hi!! anyone can give me hint how to start this. here the function that im using , but I dont know how to start int findMin(int A , int i, int j); and im look...
[9 replies] Last: The other way using the index is: #include<iostream> int findMin(int... (by closed account 48T7M4Gy)
Pointer issues
 
I am not sure why it keeps telling me invalid converstion from 'int' to int*' three of them for line 14 and one for line 16. I've tried messing with it and just...
[4 replies] Last: ah I see. Alright I guess i'm going to have to take a breather and fig... (by MRangel)
October 2014 Pages: 1... 1819202122... 70
  Archived months: [sep2014] [nov2014]

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