Beginners - May 2011 (Page 33)

I'm new on C++
 
Hi everyone! I'm new here, and I wanna learn how to program using C++. I'm trying to get to where you can type your programs to run.
[5 replies] Last: This will help settle that learning curve: http://wxdsgn.sourceforge.n... (by Computergeek01)
Array values internally or on heap?
 
Does the below array store values internally or on heap? I am assuming it as heap as its dealing with pointers. Please clarify.
[2 replies] Last: yes I meant it to be local stack (by coolswathi)
by WayneC
Is this variable essential in a function?
 
This bit of code comes from the function1 tutorial (excellent btw). My question is- What is the purpose of this variable? Can the function NOT have its output...
[1 reply] : int addition (int a, int b) { return (a+b); } is perfectly valid... (by Zeillinger)
Not complete Output
 
hello guys im having a problem.. i have a text file name employee.txt and it is the construction of the text file.. Juan Dela cruz,A02-0001,1 C plusplus,A02...
[11 replies] Last: You have two breaks there, so no matter whether the first line contain... (by hamsterman)
Fastest way to find index of elements in an array`
 
Ok, so i have a float array, containing say 100 elements (*please note, i'm not using vectors). Now, to the best of my limited knowledge, i haven't found a way...
[1 reply] : I think I would make array2 an array of a struct containing the origin... (by webJose)
What is the size in bytes of these? str[]="hey"; str2[]={'h','e','y'} and str3[]="h";?
 
What is the size in bytes of these? str ="hey"; str2 ={'h','e','y'} and str3 ="h";? Thanks :)
[4 replies] Last: http://ideone.com/qO9HQ (by Zeillinger)
friend function: member function of another class giving error if defined before
 
#include<iostream> using namespace std; class test; class sampletest { public: void getainb(test & x); }; void samp...
[1 reply] : I think it's because the compiler needs to know more about class test ... (by kooth)
getting started
 
hi, Im totally new to the programming scene and am in need of some help. What do i need to get started in c++ programming like programs and such. Also are the...
[3 replies] Last: Yes, that's a text editor. If you're using windows 7, you'll probably... (by Moschops)
How to define such objects?
 
I need a way to represent Adjacency List with C++ containers, such as vector , list, i know the c implementation, but c++ implementation should be different and...
[2 replies] Last: Is that a good idea? Is it better than the pointer-based structure? (by akilguo)
by Beju
type cast rules
 
Hello, I would like to ask where can I find the implicit type casting rules for primitive types in C++? Is this defined in the standard or maybe it's specifi...
[no replies]
Deleting dynamic arrays properly
 
In previous postings, i was made aware that i was probably not deleting my dynamically allocated arrays properly. I'm purposely not using vectors here, for good...
[1 reply] : All these can be checked using memory debugging tools (there are vari... (by writetonsharma)
Is this Correct?
 
im using a subprogram is this the correct usage of void.. #include <conio.h> #include <stdio.h> #include <string.h> void getEmpDetails(char *empID){ ...
[5 replies] Last: The function is not returning the emp id/details. Your function is jus... (by ankitsingh12)
Is C++0x(11?) support default template argument?
 
compiler : g++ of gcc4.5.2(minGW) os : windows xp sp3(32bits) template<typename T, template<typename> class CONT = AccumulationTraits > class Accum { ...
[no replies]
problem with token
 
hi guys im having a problem with token that delimits "," .. i have a program that accept a user input for example "ma,mb,mc" it successfully put the string ...
[no replies]
by jls36
Common usage of the Bitwise OR (|)
 
I have been trying to find common uses for the Bitwise OR (|) and complement/NOT (~). I know how it works, I was just wondering how it's used and why in a p...
[2 replies] Last: Ok, so you can set permissions to files with them. One question is the... (by jls36)
using list arrays
 
SO im writing a program that will ask the user for how many scores they would like to enter then using list arrays i need to input those sort them output the ma...
[no replies]
Markov Chain
 
Hello I have an assignment for school in which i must implement the Markov Chain algorithm to generate random text without "advanced" class libraries in c++. Un...
[no replies]
by ascii
understanding bitwise operators
 
could someone please help explain to me the use/purpose of bitwise operators. what is really the point of them, and what is it exactly that they do?
[7 replies] Last: Look at my second example above http://cplusplus.com/forum/beginner/40... (by Mathhead200)
How could I fix my crap code?
 
I found some curious phenomenons from vc2010 os : windows xp sp3 compilers : vs2010(express edition) and gcc4.5.2 template<typename unaryOP> double timeCount...
[8 replies] Last: Isreturn base in CFind4 a typo? sorry, that was my mistake.I forgot... (by stereoMatching)
Please help, C++ Swap function not working.
 
Hey guys, I'm stuck on a homework program I'm supposed to type up. Basically, the user should input a value that stores in the "first" variable. Then the use...
[6 replies] Last: bitwise operators are more efficient so you might want to use them in... (by Disch)
May 2011 Pages: 1... 3132333435... 48
  Archived months: [apr2011] [jun2011]

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