Beginners - July 2008 (Page 5)

by tek
cplusplus printable version
 
Hi, anybody has a printable version of the tutorial? even the tutorial in one txt file is fine for printing. thx
[2 replies] Last: Thx, I see now that using Windows and Internet Explorer I can have a p... (by tek)
strpbrk problem
 
Could somebody please help me locate what went wrong with this program? It's supposed to get a sentence from the user and display the number in that sentence...
[2 replies] Last: Oh! I get it. Thank you very much!!! Oops, sorry... I'm just new... (by anonymousrascal)
array
 
i have a program that says input 10 letters and it will be outputed and right after that the letters should appear in reverse form..i have made a program but it...
[2 replies] Last: int main() { int chararray ; cout<<"Enter 10 letters"; int a... (by Nandor)
Problems with methods and arrays
 
I am using Dev-C++ and MS Visual C++. I get a bunch of errors when I try to compile. Most I think are with the method calling\display. //AS-31 #include <io...
[5 replies] Last: From ISO/IEC 14882 (Second edition 2003-10-15) 3.6.1 Main functio... (by closed account z05DSL3A)
cin.get() glitch[solved...sort of]
 
#include <iostream> using namespace std; int main(){ char waldo ; cin.get(waldo, 2000).get(); for(int i = 0; i < 2000; i++) cout << wal...
[14 replies] Last: Even now, it refuses to work, but now I have learned much about the su... (by QWERTYman)
HOW TO DISPLAY THE HIGHEST LOWEST AND MIDDLE VALUE?
 
im really new with c++...please help me with this problem.. "write a program that need 3 input numbers and after accepting the 3 numbers the program will displ...
[5 replies] Last: Also if(num != H || num != L) Will return true if it is n... (by mikeb570)
problem in pgm
 
i have written a program to input two no from the keyboard and display the larger value on screen...the pgm code is... #include<iostream.h> #include<con...
[5 replies] Last: getch(); and return 0; are two completly different things... g... (by Mitsakos)
Importing header?
 
Let say I have a template class: template<typename T> class MemoryPool The source files are: MemoryPool.h : http://audinue.navhost.com/MemoryPool.cpp an...
[2 replies] Last: Thanks anilpanicker :) (by audinue)
Problem with Multi-Dimensional Arrays
 
Hi Guys, I am having a little problem with using multidimensional arrays. I am trying to create a matrix program here which does the following: 1) Get the...
[7 replies] Last: int m is causing the problems yeah, it is really a problem... i... (by unattached)
Dev-C++ can't compile program multiple definitions
 
Dear fellows, here's what i have. //Stack.h #ifndef STACK_H #define STACK_H class Stack { Stack(); Stack(int sz); ...
[3 replies] Last: You should include it in the list of input files for the compiler. The... (by helios)
simpson method
 
#include <stdio.h> #include <conio.h> //********************************** { int main(); double a,f; int n; //Duomenys---------------- printf("a=0");...
[3 replies] Last: simpson rule on the web: http://en.wikipedia.org/wiki/Simpson's_rule ... (by anilpanicker)
inherit class template?
 
Btw, is there any tips to inherit class template? I''m a little confusing on it. template<typename T>class clsTemplate { public: clsTemplate(T i) ...
[4 replies] Last: Thanks Duoas ^_^ ...! Thank you. (by audinue)
by cva
How to convert const char * to BSTR
 
Hi guys..i facing a problem here.i cant convert const char * to BSTR . let say for e.g: x - const char * y - BSTR i pass the variable x to another fu...
[2 replies] Last: Thanks for ur kind information guestgulkan...can u suggest me any docu... (by cva)
Logic Error
 
I think i've encounter a logic error. I'm unable to count the number of recurring word. Whatever word i type out, it counts, 766. Can someone help me up? #in...
[1 reply] : Is there something wrong with your previous thread? http://www.cplusp... (by Duthomhas)
Delete operation
 
Hi all I came across a piece of code. Myclass *x; //Creating an object of a class while(condition) { x=getanother(); this function returns a po...
[1 reply] : That code actually looks scary to me. You should never try to de... (by Duthomhas)
random number
 
I was trying to produce random numbers to input as coordinates, but the random number keeps returning the same value for both x and y. #include <iostream....
[3 replies] Last: yay it works. thanks for your help =D the problem was the position o... (by anthony830121)
by idono
switch statment problem and default logic error
 
i keep getting the same problem with the switch statement and the default, the problem should work like this: the user enters one of the abbreviated states Al,N...
[5 replies] Last: Yea sorry I should've clarified that a switch also won't work for stri... (by Zaita)
reading from a file
 
whenever i try to read in from a file, i get the following message in the command window: "Input opening file failed" I put the following code in my progra...
[1 reply] : try ifstream ballot; int v=0; if(ballot.is_open()); ... (by Nandor)
by Nandor
reading lines from files
 
I have a text file with two lines-one begins with dbinfo and the other with dbdef.how can i put the first line into the dbinfo string and the second line in the...
[2 replies] Last: Thanks for your help (by Nandor)
table
 
I have a ASCII codes code: #include <cstdlib> #include <iostream> using namespace std; int main() { for(int x=0;x<=255;x++) printf("%4d %c...
[3 replies] Last: ok , thank you , that helped me. (by m4k4v3l1)
July 2008 Pages: 1... 34567... 15
  Archived months: [jun2008] [aug2008]

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