General C++ Programming - April 2012 (Page 33)

Memcpy Seg Fault
 
I haven't included all my code because memcpy is the cause of my seg fault. I thought I was doing this right because both arrays are the same size. What am I do...
[3 replies] Last: Thanks forgot to do that. (by phillyman1025)
Help with C++ functions please help!
 
I am tying to display how many numbers the user entered and my program is like this: #include <iostream> using namespace std; void getInput(double); //***...
[7 replies] Last: yes, now it displays this: //***************** count function *****... (by Chapin247)
OpenGL release build closes immediately
 
I have been learning OpenGL 2.1 for a bit and I'm currently satisfied with my rotating textured cube :P. However it only works in the Debug build (I'm using ...
[8 replies] Last: That is why you should: - always check (and correct) warnings. - never... (by bbgst)
pointers?
 
so i have been trying to grasp the concept of pointers and reference for some time, and so i thought i should check if i have understood the main stuff about t...
[3 replies] Last: This might help. http://www.cplusplus.com/forum/beginner/67449 (by kbw)
How can a group of values calculated in a function be retrieved via a Dynamic Array Class in C++?
 
How can a group of values calculated in a function be retrieved via a Dynamic Array Class in C++? Below is an example emulating the basic idea of what I'm tr...
[3 replies] Last: We are the professionalelevator parts manufacturer in china. We can pr... (by elevator parts)
online shopping situation
 
Overview of the problem You are to develop software for a simple online shopping situation. The entities in this scenario include the web shop, customers, pro...
[4 replies] Last: Firstly, put [ code ] [ /code ] tags around the code. (by wasd2)
Need some help with my double-time method
 
I've got a bunch of stuff working in my mixer program. More specifically though, I have a wav file that I need to double time. What I mean by double time is thi...
[2 replies] Last: That did the trick. My only concern now is getting it to work like my ... (by closed account 365X92yv)
SegFault
 
I have compiled and run all of the menu options, however only number 5 and 6 work. 1 and 2 give me a message that says Segmentation Fault when I run them. He...
[1 reply] : In the switch... location = FindHighest(scores, size); location =... (by vin)
pointer not pointing
 
hi I have this projct for school and its kind of a long code so I'll just put the code here to what i think its pertinent. So i create an instance of todoui a...
[6 replies] Last: Did you fix the second similar mistake in todoui.cpp line 10 (also poi... (by KRAkatau)
by Hankit
C++ retarded
 
Hey all, For you C++ guru's out there, I'm very new to the C++ world and with little help, we have our first project (dont go to UMSL for Comp Sci): DUE D...
[7 replies] Last: That is why I said what I did. He is waiting to even start it til it i... (by BHX)
by htown
byte question
 
I have a program loaded into a memory array. It starts at location memory . Each index is 4 bytes long. How would I get the first byte? 1B? int main() { ...
[2 replies] Last: yay thanks!! (by htown)
delete[] operator
 
Hello, I'm having an issue with delete . I have class LinkedList, and I'm trying to work with an array of Linked Lists here. When I call delete on my array, I ...
[16 replies] Last: In your remove function: for (Node* spot = head; spot->next != N... (by cire)
by Opcode
Passing a Pointer for a 2D Array to a Function
 
I regret having to ask this, as I know this subject has been discussed many times previously. I've spent several hours getting nowhere, though. I have a 2 d...
[7 replies] Last: Thanks for your advice and assistance. I quickly tried implementing th... (by Opcode)
by taita
Can't Figure out the PROBLEM!!
 
// The program actually runs, but stops after statInfo() function is called in main. #include <iostream> using namespace std; const int INDEX=12...
[2 replies] Last: wow, that was a very silly mistake. Thanks a lot!! (by taita)
by taita
Can't Firgure out the error!!
 
// The program actually runs, but stops after statInfo() function is called in main. #include <iostream> using namespace std; const int INDEX=12; struct...
[2 replies] Last: Yeah, [ code] tags make everything so much easier to read.... But a... (by long double main)
not finding the file on the second loop
 
It is running as it should for a loop and is terminated at line 59 on the second loop. When I enter the file name to go into char in_file for the second time ...
[no replies]
(VS2010) Inverse Matrix
 
Hello, I am a novice/newcomer to C++ and am taking classes for game programming. One of our problems is to find the inverse of a 3x3 matrix. The problem spec...
[no replies]
finding path of binary tree from root to leaf.
 
hello, I am given a binary tree and I have to print the path from root to leaf nodes . eg: 5 / \ 4 8 / / \ 11 13...
[3 replies] Last: what it does essentially is it takes MyRoot sends the basic parameter... (by oonej)
How to use arrays in class
 
Hey, I wanted to know if there was a way to use arrays in a class. I have a program that will calculate a students score, however I wanted to have an array wher...
[1 reply] : Please use the [ /code] wrapper and indents so that we can understand... (by TheDestroyer)
by rucafe
Question about using references
 
I am wondering if someone can tell me if I am using references properly to pass around a large data structure to different functions within my program. Please k...
[5 replies] Last: Passing by reference passes a pointer to the object rather than the v... (by clanmjc)
April 2012 Pages: 1... 3132333435... 49
  Archived months: [mar2012] [may2012]

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