General C++ Programming - November 2012 (Page 34)

OpenGL / GLUT Questions
 
windows 7 64-bit MinGW 4.6.2 Code::Blocks 10.05 according to 'GPU cap viewer' my OpenGL version is 4.2.0 and im not sure if this matters im not realy sure...
[3 replies] Last: ok thank you, i have found some tutorials, havent followed any yet, i ... (by Naughtyusername)
by peep
i'm stuck
 
can anybody help me with this source code. seems like something is not right with the function... /*Write a program that reads in a two-dimensional array repr...
[7 replies] Last: try using cout and cin instead of printf and scanf its better (by SirSen)
looping masters please help me
 
looping) hi guys pls help me on this using this formula: θ=〖sin〗^(-1) γ/a √(h^2+k^2+l^2 )the range of h,k,l is -6 to +6
[no replies]
Scripting languages
 
I been curious on how a scripting language is made. Generally I understand the grammer and text editor, but how is it all compiled? Would it run through a .l...
[no replies]
by BandK
How to sort char array Z-A...
 
This is my code for sort char array...how to sort Z-A I use 2d char array named nazivi... for (int i=0;i<br_unesenih_el;i++) for(int j=i;j<=br_unesenih_el;j...
[8 replies] Last: Do you know simply example code for this? I need all all perfectly....... (by BandK)
How can I make this more efficient?
 
ifstream ptext ("ptext.txt",ios::binary); ofstream enc ("encrypted.txt",ios::binary); string result(15, '\0'); ptext.read(&result , 15); result.resi...
[no replies]
why use istream& as parameter
 
I see a code use istream& as parameter in a class member function. some like this: bool read(std::istream& in, int num) why use the istream ? I think whe...
[2 replies] Last: thanks a lot (by ylxin1993)
stl Sets and Quartet Puzzling
 
Hi, I am in bioinformatics and I need to make phylogenetic trees by the quartet puzzling method. A quartet is a set of 4 taxons. I am given the list of taxons a...
[1 reply] : I don't understand what you must achieve. An std::set is a data con... (by Catfish2)
simple program but compile and other errors
 
hello everyone,
[2 replies] Last: thanks for telling me to put it in <> format, makes it so much clear. ... (by joker932)
Globals and dupications
 
Eww i know, globals... I need a global to be accessible to multiple files Right now i have this //class.h #include "Globals.h" class foo { public...
[1 reply] : Duplicate of http://cplusplus.com/forum/beginner/84604/ (by Stewbond)
Pointer w Array
 
How do you call a pointer in a class TO the main ?
[6 replies] Last: I'm not going to read 340 lines of code, but to answer your original q... (by Stewbond)
so close one error left!!!!!!!
 
when i compile it say "store.cpp: In function `void sellProducts(std::vector<Product, std::allocator<Product> >&)': store.cpp:185: error: expected primary-exp...
[3 replies] Last: Be specific for a newbie, Nexius What is format tag? It's "<>" Your... (by Imadatobanisa)
by noo1
error '<' : signed/unsigned mismatch
 
I almost had it, my first code without errors...:-( Can anyone help me to understand why I am getting this warning when I compile? line 13: warning C4018: '...
[10 replies] Last: xerzi, I actually thought about testing just half the word, that would... (by noo1)
While loop
 
I got some code in a while loop that is in a simple console program while(TRUE) { //CODE HERE } every time I exit the program it gives me a error. I ran ...
[2 replies] Last: Use true not TRUE. But don't use infinite loops - there are valid sit... (by TheIdeasMan)
DFS using stacks error!
 
#include<iostream> using namespace std; class dfs { int v,i,k,matrix ,j,color ,stack ,top; public: ...
[no replies]
Depth First Search Logical Error
 
#include<iostream> using namespace std; class dfs { int v,i,matrix ,j,color ; public: ...
[6 replies] Last: Help please.. (by Rishav Paul)
by paetim
Almost done, Please help me finish!!!
 
I feel like I almost have this one, Please help me fix whatever is wrong with this!! My output: Do you want to convert another set of values?(Y/N): y Enter...
[2 replies] Last: You may round down or up the value then store it into an int. Use roun... (by Imadatobanisa)
Stuck still
 
I'm still so stuck on this problem. I keep getting the same error. I have looked at it for a long time now and no progress. error C2664: 'freqHelp' : cannot ...
[13 replies] Last: Try this: //A function to determine frequency of letters void fill... (by TheIdeasMan)
Reading doubles into an Array
 
Okay here's the situation I have 70 years worth of data separated by year which are integer data values, that match up with 12 double values that represent weat...
[6 replies] Last: You'll need to: 0- Create a variable which stores your specific year i... (by Imadatobanisa)
string printing issues
 
I loaded a string using the format str = "string" for(int i = 0; i<str.end(); i++) new_str = str ; however when I go to print, the new string only prints the...
[1 reply] : http://www.cplusplus.com/reference/string/string/end/ http://www.cplus... (by Darkmaster)
November 2012 Pages: 1... 3233343536... 51
  Archived months: [oct2012] [dec2012]

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