General C++ Programming - June 2012 (Page 18)

2-D Array and Pointers
 
We have a 2-D array a . we want to return it from a function. we have three ways of returning. 1. int *a; int *fun1(); //fun prototype int *fun1...
[1 reply] : When a name of an array is used in expressions it is converted to the ... (by vlad from moscow)
by macs
about graphics.h
 
no ideas about it ....could any1 help it out....initialisations ,graphic drivers,etc
[10 replies] Last: I think you have not described the path of graphics.h header file corr... (by usersint)
Quicksort issues
 
I didn't look at the actual code, just general algorithm of variables to use from a C book, but when I try to write my quicksort using the idea of pivot, lo and...
[11 replies] Last: I finally solved it myself...thanks me (by closed account 4ET0pfjN)
by Screed
Execution pausing
 
How do I pause my program before it ends it? Here is my code so you can see what I tried: #include <iostream> #include <cmath> using namespace std; int main...
[10 replies] Last: i kind of like the idea of looping it, but i dont know, thanks everyon... (by Screed)
by Screed
Looping Program
 
How do I make my program restart from the beginning after it the user presses enter after the program is done?
[4 replies] Last: oh ok (by Screed)
by S G H
FILE * Limitations
 
What are the FILE (FILE *) limitations? What's the Maximum Size allowed for Reading or Writing file? Should I use FILE* or OS Depending Handles?
[no replies]
Strange Problem
 
I've never run into this problem before. The routine stops in the middle of execution @ the number 113383. If you inspect the code you'll see that the stopping ...
[4 replies] Last: The routine works perfectly after I changed long HOTPO to unsigned lon... (by ariesthechamp)
EXPECTING HELP WITH THE SEGMENTATION FAULT
 
Hi, I have been dealing with the segmentation fault of this programme for a very long time. And, I can't seem to find what exactly is the problem. I was wonderi...
[9 replies] Last: Magnitude = atof(Line.substr(0, Line.find(" ")).c_str() ); It stil... (by drogbatorres)
by J03
Removing unwanted characters
 
Hello, I've got data in a string, and I'd like to remove all spaces and newlines in the simplest way possible. I was wondering if there is a list of STL Pre...
[1 reply] : std::remove and std:;remove_if do not remove elements from a sequence.... (by vlad from moscow)
passing a function reference outside a class
 
Hi, I'm trying to link a molecular dynamics code (LAMMPS) with an optimization library (NLopt, http://ab-initio.mit.edu/wiki/index.php/NLopt_C-plus-plus_Refe...
[7 replies] Last: Ok, thanks a lot! It works fine like this, I am now 30 algorithms ric... (by jaapkroe)
Cycling through specific class names
 
Here's an example: #include <cstdlib> #include <iostream> #include <string> using namespace std; enum ItemEnum { ITEM_ROCK, ITEM_STONE,...
[1 reply] : You need an array or a container class that contains a bunch of these ... (by doug4)
2D game designing books
 
Recently i've been researching some books that i can read that will help me create some cool games, and im trying to learn the basics and backbone of games befo...
[6 replies] Last: That's super, cheers. I'll take a glance when I get a moment. (by MrHutch)
by iantac
Buffer Overflow
 
I'm not new to C++ programming. Just trying to review my programing skills so I tried to create a program that will compute for the BMI (Body Mass Index) and pr...
[8 replies] Last: give examples of Java I/O allowing arbitrary user-defined filtering,... (by rapidcoder)
3-D Array
 
3-D array a 0th 2-D array elements address 2 104 4 106 7 108 8 110 3 112 4 114 1st 2-D array 2 116 2 118 2...
[4 replies] Last: gud explain....i got it thanks a lot :) (by usersint)
by Screed
Switch Statement Accomplishment
 
I Finally learned how to use switch statements and for some reason I felt the need to post a topic about it. Feel free to spam me about how this is a stupid top...
[10 replies] Last: The enter character is still in the input buffer after you entered a v... (by vlad from moscow)
about name lookup of friend function template
 
namespace NS { class A { public: A(){} A(int){} }; template<typename T> void foo(T); }; using NS::A; class B { public: B(int ii):i(ii){} friend...
[7 replies] Last: If I am not wrong it will not lead to instantiation until it will not ... (by vlad from moscow)
by iantac
integer in strcat()
 
I have a int a=10; //or let's say int=9; //and combine it to a ".txt" using strcat strcat(a,".txt"); I already tried using int a=10; string h; h=a; s...
[4 replies] Last: Okay, so I misinterpreted what you said. Then use stringstream: http... (by coder777)
Optimizing Values to Equalize Data Sets in C++
 
I have an interesting problem for you guys, it involves using C++ to optimize a few constants in a function. I have 4 sets of pertinent data. I have stored t...
[4 replies] Last: Don't think it's possible to solve analytically. The objective functio... (by Gaminic)
how to auto call button functions
 
hi, i have code as below. I will show message if i click the button. how to make it auto call so that after 1sec,the message will appear without clicking the...
[5 replies] Last: any1 can guide me ? thanks (by crazydude80)
what is the use of exceptional handing in c++
 
1. what are the exception can occur while writing a application programme in C++? 2. if we throw exception our self by error checking with if and else statemen...
[3 replies] Last: thank u Cubbi and Bartoli (by techbikash)
June 2012 Pages: 1... 1617181920... 33
  Archived months: [may2012] [jul2012]

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