Beginners - August 2010 (Page 21)

Error while using delete
 
I allocated ane char pointer dynamically and then i m trying to delete it using delete operator... But strangely its giving error.... i tried following cod...
[12 replies] Last: What's in RequestQueue.removeFirst()? RequestQueue is a queue--- ... (by rohandreamworld)
Flow chart
 
how to do flow chart for this program #include <iostream> #include <cmath> using namespace std; double checkScore_exam(double); // function p...
[2 replies] Last: i understand a bit.you can do a part for me as reference.i 'll appreci... (by closed account 1RLTURfi)
wrong output
 
hi Im making a program that will answer the equation F = 1/(n+1)! + 2/(n+2)! + 3/(n+3)!...... n/(n+n)! #include<iostream> using namespace std; int main(...
[1 reply] : a>c (because a=(c+i)!), so c/a<1, but since a and c are integers, inte... (by helios)
char array pointer & functions
 
Hello All, I have following issue with pointer: char *menu_pages = { "Add", "Edit", ...
[3 replies] Last: Pass the size to the function. (by firedraco)
a question on understanding pointer and array
 
Assume int a ={5,6,7,8,9,10}; I would like to know what does this specific line do? int (*ptr) = a; Furthermore, if we have ++ptr; printf("%d %...
[no replies]
by yawa66
nid sum guide
 
can u please help me in my codes.. if i choose a col and row it wont add the surrounding mines of it..wats d wrong of my code?..and also can u please change th...
[15 replies] Last: [quote=yawa66]caywood is ur codes working now? Hmm? What do you mean?... (by RyanCaywood)
numbers and fstream
 
With my map editor, it uses wierd symbols that cant be saved to a text file, so instead I have to save the symbol numbers one by one. But I want a way to make i...
[15 replies] Last: Give me a few seconds Im going to try and fix this... (by b1gb0y2013)
by Wander
Classes Lesson (1,2,3)
 
I've been looking at the tutorials and documentation on this forum. I understand most everything until I got to classes. Whoever wrote the lesson on classes wro...
[44 replies] Last: Not quite :P For non local jumps you need this -> http://cplusplus.com... (by m4ster r0shi)
ASCII Table to C++ Problems
 
Hey guys, I've been watching this video on how to create a Key Logger. Yes, I know this is frowned upon, but this is basically my first program and I am obviou...
[5 replies] Last: MSDN exists for a reason. http://msdn.microsoft.com/en-us/library/ms6... (by helios)
how to understand this program
 
There is a code snippet: #include <stdio.h> char* fun() { return "awake"; } int main() { printf("%s",fun()+ printf("I see you")); getchar(); ...
[3 replies] Last: Let's assume this is a fragment of your program memory: some random ... (by Bazzy)
by tirwit
Put stream pointer in chosen line
 
Hi! I need to concatenate several data files into one file, but in each source file the data only begins at the 6th line, so I want to start reading from tha...
[2 replies] Last: Strange... I thought it would be logical to exist one function to put ... (by tirwit)
by n8c
2D array shifting within the bounds of a larger 2D array
 
im trying to write a code that allows a 3x3 array shift within the bounds of a 9x9 array. the 3x3 is actually a char* cpaa and the 9x9 is a char caArray . bu...
[7 replies] Last: thanx a lot Galik i got it working thanks to your useful tool. (by n8c)
Problem with std and cout
 
Hello,I'm new in C++ so dont be harsh on me. I started with the "Hello world!" program,and it doesnt work,it gives me these erors : error C2871: 'std' : a n...
[4 replies] Last: Also, IIRC, the <stdafx.h> should be the first file #included. (by Duthomhas)
Function overloading - declare a default function?
 
I'm trying to overload a function in a way that it would accept a reference - if possible, otherwise it would copy the value. I wrote a simple test: void te...
[6 replies] Last: @Disch: Thanks, that answers my question perfectly! I'm new to program... (by Fresh Grass)
array size of int and empty array
 
How do you find array size? int array = {1,2,3,4}; size_t x = sizeof(array)/sizeof(int); cout<<x; 2 why? int array ; array = 1; array = ...
[3 replies] Last: [quote=jackel7777]how to know if only 2 of the 3 array has been used o... (by Galik)
String Length.
 
I was wondering how long a string variable is? Thanks In Advance!!
[3 replies] Last: max_size() ; function returns maximum size of string http://www.cplu... (by Dufresne)
Problem with writing/reading to file
 
Hello, I am having some trouble with reading and writing to files. I create an array of pointers to the object Distance. I write these to a file with the sta...
[6 replies] Last: Thanks Duoas, some interesting stuff to read. (by pagefan)
vector doesn't initialize
 
Hi all, having a little trouble figuring out why I'm getting a seg fault. I'll post the relevant snippets of code preceded by a quick description. First, the...
[3 replies] Last: Matrix uses the custom destructor. Your advice about Matrix* mat worke... (by canonseer)
by Ahauth
Pancake Glutton- Glitchy coding?
 
Hey. I'm trying to write a practice program that takes 10 numbers of the number of pancakes a person eats. The program works up until the output of the min and ...
[1 reply] : You've got a logic error. MAX is either the maxim value, or the index ... (by ne555)
Where are static variables stored?
 
As such are they stored in the Stack(probably not).. The heap ? or some other Storage area? Also is there any other storage area in C where data can be sto...
[1 reply] : They are stored where the global variables are stored - in the data se... (by xorebxebx)
August 2010 Pages: 1... 1920212223... 28
  Archived months: [jul2010] [sep2010]

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