General C++ Programming - October 2011 (Page 35)

by Thanz
what is the function of return ();
 
Dear fellows I tested the following example with return (r); n without return (r); the answer is same..then why return (r); has been used here??? // fun...
[1 reply] : If you remove the return (r); , that code shouldn't compile. Returni... (by Disch)
another problem with sdl
 
i had some problems with an sdl code earlier today and made a post about it. the problem i was having kind of got solved (by me). it turns out i just kind of ha...
[4 replies] Last: it sais it cant find or cant open the pdb file. it sais it like 20 tim... (by even821)
Can I store a set iterator in another set for later use?
 
I have 3 sets. I am comparing values in 2 sets and storing iterators from the first 2 sets in the 3rd set. But when I try to use the iterators in the 3rd set ...
[5 replies] Last: True statement. I have no main. This is a class with a single functi... (by goodwinsvml)
resizing dinamic array
 
hi i saw this topic(http://www.cplusplus.com/forum/general/11111/)(I can't respond) i do the thing of malloc and realloc but if i did int * arr =...
[5 replies] Last: That doesn't matter. You're accessing memory that is no longer allo... (by marowark)
by juvan
Pointers and array processing
 
Greetings and salutations in the following code the first function zeroOutArray1 was suppose to be faster, no?? Well I can't understand why it runs slower ...
[5 replies] Last: please any one can tell what is going wrong with it .... after taking ... (by gaurav90271)
sdl problem.
 
i started reading some tutorials on sdl and c++ and decided to give it a go. i ran into a problem within the first hour or so, that i cannot seem to figure o...
[5 replies] Last: tried running it again and two error messages popped up: warning C455... (by even821)
Any better 'logic' to implement a contiguous queue circularly ?
 
Here is my implementation, of a queue with a circular array. Cookies for anyone finding faults in it or suggesting better ways to do something. (I know that t...
[no replies]
waitpid not waiting long enough
 
For this assignment, I'm taking list of files, compiling each file as separate threads, then linking them. The simplified code looks like: while(!filelist.eo...
[2 replies] Last: (Assuming everything else is correct.) Hypothesis: waitpid() is waitin... (by helios)
Amateur C++ programmer needs serious help with a killer task
 
Task "Sewing Fabric": Create a class "Skirt" which has variables for model name, material name, lenght and width of the material and percentage of the remnant....
[2 replies] Last: Have you attempted to sit down with a pen + paper and work out how you... (by Bench82)
can you open a second window?
 
so here's what i want to do. I have a window using winapi showing up and I want a basic command prompt window to also show up that i can write too. it's for a g...
[3 replies] Last: nevermind. i got it! (by Gdschaf)
why no seg fault due to shallow copy?
 
#include <iostream> using namespace std; template <class x> class Array{ public: Array(int len); ~Array(); Array(const Array...
[4 replies] Last: thanks for proper response. i will stop doing this exercise...:) (by anandnilkal)
Having issues with the getting the string to read the location path ... please help im a bit new
 
#include <fstream> #include <sstream> #include <iostream> #include <conio.h> using namespace std; int main() { char ch, word=' '; int ch_cnt=0, spac...
[3 replies] Last: well you need to access the contents of the string of path, and "path"... (by Azagaros)
Hi, everyone,can someone help me..??
 
warning C4551: function call missing argument list error C2447: '{' : missing function header (old-style formal list?) error C2059: syntax error : '}' error ...
[2 replies] Last: bool getEmployeeData(int* id, char* status, float* xxx); { Semicol... (by Disch)
by Thanz
What are functions in C++??
 
Just tell me what're functions?? Here're codes of some functions: void getInput(double sal , int numEmps); void findUnluckies(double sal , int numEmps, int ...
[10 replies] Last: [quote=Thanz] int lucky = {0}; (sic) Initializes all elements of th... (by closed account zb0S216C)
Queue
 
I can't get the program to dequeue properly. I can't get front to store next after the current front is deleted. Can anyone help me figure out what I am doing w...
[4 replies] Last: What should the if condition be because I get an exception violation w... (by karatekid)
Best "Curses" Library?
 
First off, I know there won't be a "best" library, each one will have it's pro's and con's, but I'm wondering which one is the easiest to use, and has good docu...
[6 replies] Last: Thank you! (by closed account 967L1hU5)
by ase19
Newbie needs help with basic program: Ambiguous Overload for "operator>>' in 'std::cin>>"variable"
 
Here is my program which will not compile: --------------------------------------------------- //9/29/2011 //Assignment 3 //Program for computing the total cost...
[1 reply] : remove the quotes in cin lines //enter input items cout << "Length of... (by Chriscpp)
c++ window height larger than 25
 
I'm using this code to change the size of both the programs console window and internal buffer size. // Set up the required window size: SMALL_RECT w...
[3 replies] Last: Sorry I've been gone for a few days, been busy doing schoolwork, but ... (by creatorofchaos)
How can i sent this message in my e-mail?
 
#include <iostream> #incldue <windows.h> using namespace std; int main(){ char exam ="This is a test message"; char email ="exam@exam.com"; send(exam,email);...
[no replies]
Reading a string,int,and amother string from a txt file
 
Hello I want to write a program in c++ that computes the average for a university student , but my proplem is that i dont know how to read a line -from a txt f...
[no replies]
October 2011 Pages: 1... 33343536
  Archived months: [sep2011] [nov2011]

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