General C++ Programming - March 2010 (Page 18)

Undefined Reference errors...can't seem to find the source
 
I've been attempting to compile my program to test a few functions out (mind you, it's incomplete) and I've been getting a TON of errors like: "undefined refer...
[9 replies] Last: I'm dumb. I thought I linked those, but I guess not. I definitely owe ... (by Renascent)
i need to edit the size of the data subchunk in a wav file
 
im using file handling in c++ to edit wav files . this is possible because wav files are uncompressed. so i added some value to the subchunksize in the header f...
[no replies]
Defining class of rational numbers
 
I wrote the program but I cant get it to work.. any help would be appreciated #include <iostream> using namespace std; class rationalNumbers { pub...
[2 replies] Last: the program runs fine but when i enter a fraction it ends the program (by themaster88)
Quick Question, Assignment due soon (1,2)
 
Hey guys, When I compile this code, it says it compiles successfully yet when I run with debugging, it says 1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unres...
[22 replies] Last: yah ryt... its not allowed here dude as they say... i have learned ahe... (by god)
How to output to a file
 
Hi: Thanks to all who read and help :) I have an algorithm that is churning out a bunch of factors that I need to manage. Currently it is a simple cout t...
[6 replies] Last: Microsoft's console has been incrementally improved over the decades a... (by kbw)
by Darqam
C4305 error (__int64 and size_t)
 
Hello, I have recently come across a problem in my program, the worst part is that it is my last error and I have no idea what it takes to fix it. I was g...
[5 replies] Last: Disch, sorry I had not seen the response (posted same time). I was ... (by Darqam)
by Lyven
Random function does not work random
 
Hi guys For an implementation of the travelling tournament problem I'm in bad need for a random function. Now I'm testing with the standard randomizer in ...
[1 reply] : Ok, found the solution, because I use the function alot with large fre... (by Lyven)
by AJalex
Error when using iostream and fstream
 
Hello, i have a problem when compiling my C++ solution. The problem starts when i include iostream and fstream into a DarkGDK project. The errors i am ge...
[no replies]
Pointers of template class in another class
 
Hey everybody. I am currently facing a problem with pointer of template class, and i cannot see any easy solution. Here is the code : // Agent.h class S...
[6 replies] Last: Thank you so much for your answer Disch!! Very interesting and worthwh... (by lorenzo17)
by Bobbyk
Area under a curve
 
Hey all............. i need to find the area under a curve for an engineering problem i have, using a)rectangular and b)trapezoid methods.... for example: ...
[3 replies] Last: You might find a for loop to be useful for such an application. Give ... (by moorecm)
c++ organization question
 
Hi, I have already designed two classes with templates for "Vectors" and "Matrices" as follows (just the outline is shown below): //vector class declaratio...
[3 replies] Last: The shape you see on a grid has just been rendered there, the shape (c... (by kbw)
putting more than 2 results into one <vector>
 
Hi: Thanks for looking and responding! Question: Is it possible to put more than one result into the same vector? Example: Xmatch = (array1 * Line...
[1 reply] : Vectors can store arbitrary numbers of elements. Just call push_back ... (by jsmith)
by hdinn
reading from text file and fill into array
 
hello everybody, well..i have a text file as an array 4*4 like this 0 0 1 0 1 0 1 1 1 1 0 1 0 1 1 0 and i want to read this file and fill an array lik...
[4 replies] Last: thank you tummychow but when i want to verify the array is that was fi... (by hdinn)
multithreading problem
 
Hi all, I have's an example of what I have: vector<int> global_vector; int Thread(void*){ cin.get(); global_vector.push_back(15);//lets say, tha...
[5 replies] Last: If you're locking within a process, use Critical Sections instead of M... (by kbw)
by Lauke
Glut + Pthread
 
Hi guys, i'm a beginner about open gl, but during this week i learned the basic about it... So hmmmmm i would like to program with two distinct windows, which s...
[1 reply] : IIRC, OpenGL is not thread-safe. (by helios)
by ZaZu
Using arrays in a loop
 
Hi there, this is my first time here, so hello to you all :) I read some tutorials from this site and was interested to visit the forums, I am hoping that I wi...
[5 replies] Last: An array is a set of elements. The distinction is critical if you plan... (by tummychow)
STL List
 
Hi all, I need help manipulating an STL List, I need to be able to populate the list with values that I read in from a .txt file. I need to do this with a F...
[2 replies] Last: thanks for your help...but now I'm stuck again...I need for the output... (by vthokie11)
i dun understand.. what's happenin in my code?? :((
 
ok, here's the code: --------------------------------------------------- #include <iostream> #include <string.h> #include <conio.h> using namespace std; ...
[4 replies] Last: `hey guys, thanks, i got the code w your help ! ! ^_^ (by codemunkee)
Using bool type in arithmetic operations
 
Is it bad practice to use the bool type in arithmetic operations, in particular with non bool types? e.g. if I want to set a value to 0 based on a comparison op...
[4 replies] Last: how it's implemented depends on the situation and the compiler. The... (by Disch)
by Daenyc
Console Character Manipulation (1,2)
 
I've been trying to create a basic console progress bar for a program I have (it calculates PI but can take a really long time), what I wanted to know is if the...
[20 replies] Last: *rubs eyes* How did I miss that? Okay, well, aside from me putting in ... (by Daenyc)
March 2010 Pages: 1... 1617181920... 23
  Archived months: [feb2010] [apr2010]

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