Beginners - November 2015 (Page 36)

glDrawElement error
 
I have a minor, but annoying problem. Whenever I exit my program, I get a Unhandled exception at 0x52f3be60. The command prompt does not spit out any error mess...
[7 replies] Last: That'll work! Just make sure you don't make any draw calls after the ... (by JayhawkZombie)
Reading a txt file to create 2D and 1D arrays
 
I am asked to read a txt file that looks like Tom 50 60 70.5 Jerry 80.3 65 91 Mark 75.2 77 92.7 Lucy 100 87.6 93 and then create a 1D array to store the names...
[14 replies] Last: Can any one plz just write me some codes??? I really want to do this m... (by lawgarra318)
Another question
 
Can I pass a member function of a class as a parameter to another function? #include <string> #include <vector> class Window { vector<string> scr...
[5 replies] Last: Can you show your latest code? (by koothkeeper)
by guru23
Recursion example
 
Hello, I know the returned value will be 9 in this code, but how? I've been staring at this for like an hour while trying to do the math on paper but I can'...
[5 replies] Last: This is perfect!! Thanks a ton! (by guru23)
Knight's Tour
 
I have to make code for knight's tour. Knight chess can visit only one box only once. Starting position is 0,0. This loop doesnt make any jump. I know I must ma...
[4 replies] Last: You need some way to backtrack when you can no longer continue along a... (by cire)
Static questions
 
Hi, I was trying some class features such as static members(data members or member functions), and found that static member can have incomplete type. I wonder: ...
[6 replies] Last: Does make sense, thanks. I'll try some examples. (by duke2015)
Swap Function For Array
 
Hi, I need some help with swapping elements within the Array. I already have the construct array code etc, so I am giving an example of what I am trying to d...
[4 replies] Last: Thanks a lot Jay, the explanation cleared my doubts. I actually knew... (by OmfgWdf)
Array problem
 
So, the problem is the following: There is an array of buildings, with various heights, in a position. You have to find the ones that have view to the sea, b...
[17 replies] Last: Stop arguing the point grub. You didn't follow the thread and tried to... (by closed account 48T7M4Gy)
Fail But No Fail
 
I used the following code. I can read the files successfully but the In.fail(); gives true value after read function(Line 24). So please help me to decode why...
[5 replies] Last: If you're treating a file as a binary stream, open it in binary mode. ... (by cire)
C++ Assignment
 
Write your question here. Hi all, Hope everyone is doing great, i just need to confirm that i've been given assignment from my college, and i've made that spec...
[2 replies] Last: Hi Jgg2002, Can you rebuilt the syntax if possible? (by Salman4th)
How to divide array?
 
Hey guys, it's me again! I just want you to help me getting done with this code. My program is about getting General Weighted Average by dividing the subject_gr...
[3 replies] Last: [quote=warshock10]Can you please write down the code for me dude? :) ... (by Hirokachi)
Functions u
 
I am trying to get the number of times the function validegrades is used to be printed. #include <iostream> #include <iomanip> #include <cmath> #include ...
[1 reply] : If you want to know how many time that function "validgrades" has been... (by Hirokachi)
Swap Function For Array
 
Hi, I need some help with swapping elements within the Array. I already have the construct array code etc, so I am giving an example of what I am trying to d...
[1 reply] : What do you need exactly? To swap elements like the 3rd to be put in t... (by jgg2002)
Swap Array Function
 
Can someone guide me on swapping the array within the element? Please. #include <iostream> #include <ctime> #include <cstdlib> using namespace std; ...
[no replies]
Multithreading:binary semaphore vs mutex
 
Hi All, I have researeched a lot on binary semaphore and mutex and still confused about whats the fundamental difference between them.They say mutex is locking...
[5 replies] Last: Here is another article about mutex vs semaphores. http://www.geeksfo... (by coder777)
Functions part 2
 
Hello I keep on getting errors with my code.. Here is the scenario: , there will be 3 functions: calcMarkUp calcSalesTax calcRetailPrice Each of the functi...
[12 replies] Last: Not really, did you read the documentation for that error? It's reall... (by Thomas1965)
How much time do i need to invest z(amount) : from compound interest
 
Hello everyone; I am struggling with a simple calculation here. Question: Write a program that calculates how long it will take Mr Jones to get y amount of mon...
[8 replies] Last: #include <iostream> using namespace std; int main() { //Variabl... (by closed account 48T7M4Gy)
What's the suggested way of reading from/writing to a file?
 
I have a simple program that manages collections of items by doing a few CRUD operations. For now, it only stores into memory, in 3 vectors of structs. I'm maki...
[4 replies] Last: Im not so sure you can just copy paste the serialize code, it will mos... (by Jaybob66)
by bastri
Doubt about const in constructor char*
 
1) Cadena(char* c) : cad(c){} 2) Cadena(const char* c) : cad(c){} 2) isn't possible, but why? in 1) you haven't "warranty" of not to mod...
[1 reply] : You can't assign a const char* to a char*. It you could the char* coul... (by Thomas1965)
Array Help Needed
 
How to put array digits into this? now its randoming any digits in my array, I want it so that it will display, 1 4 6 7 1 20 etc.. In a radomized manner f...
[2 replies] Last: Thanks usaandfriends, should have seen that! Fixed :D (by OmfgWdf)
November 2015 Pages: 1... 3435363738... 53
  Archived months: [oct2015] [dec2015]

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