Beginners - May 2011 (Page 45)

by Sibuns
Need explanation of some reserved words
 
Hey! Can somebody explain what is reserved word: inline(in c++; objective-oriented programming) And can you write an example? Ty for your help
[3 replies] Last: Read about prolog and epilog. And you will understand how inlining he... (by writetonsharma)
2D Array
 
#include<iostream> using namespace std; void main() { int a; int arr ={{5,2,7,9,10},{4,7,10,11,13},{5,8,3,2,9},{83,57,3,7,14},{1,8,17,34,60}}; c...
[18 replies] Last: yes i m satisfy.thank you all (by omeraslam)
Question-function/array
 
I've been self teaching myself c++ and came across a question about arrays.Here's the function i wrote: scramble(int a , int n, int b ){ int num_in_a=n; fo...
[1 reply] : How about random_shuffle? http://www.cplusplus.com/reference/algorith... (by webJose)
Find Polyphase Merge Sort algorithm ?
 
Hi, Somebody can help me, i try to find source code Polyphase Merge Sort algorithm in 2 file, 3 file, 4 file, use C/C++ language, i need it to for my project, ...
[1 reply] : http://www.cplusplus.com/forum/general/42174/ Please don't duplica... (by writetonsharma)
BitSet - Large N Crashes Program...
 
Hi! I have a text file which has N numbers, each of which is represented by 2 bits; as an example, the text file looks as follows: 01 10 00 11 10 10... ...
[5 replies] Last: Well it is a pointer so it should be : a->set(0,1); (by GodPyro)
modifying cin
 
I was wondering if it possible to have a default value displayed at a user information prompt? For example: if the prompt was something like... Enter c...
[1 reply] : There is no way to pre-populate std::cin. You will have to find some o... (by GodPyro)
double vs. float
 
I have one other topic I have been stumped on for a couple days, and I could not find a decent answer in my book or on the Internet. I had to create a progra...
[9 replies] Last: Thank you everyone! You are all truly awesome! (by theberkeleyboss)
How to randomly pick a variable (1,2)
 
Hi, I'm new to C++ and cplusplus.com. I have come across a problem that I do not know how to perform. What I am trying to do is that I want to enter in some ...
[30 replies] Last: Ahh I get it now! So what I need to do is to flush/reset the cin buffe... (by ItsTheFruitsYeah)
by drewos
Command Line Arguments
 
Hi I am really struggling to use command line arguments. I have finished the rest of my program but I have to do this to enter the file path to a txt file a...
[10 replies] Last: Also argv will always be the full path and file name of your applica... (by Disch)
by AARGH
confused with functions and passing by pointer, references, and value.
 
in my attempt to self-learn c++ with a technical book (sams teach yourself c++) i have gotten stumped on a particular code in a lesson. i have learned how to p...
[5 replies] Last: your function definition should always be under the main function and... (by Disch)
Finding a linked file in xtools
 
I'm having trouble with linking a file in xtools. I've tried using the file directory from the prompt and putting it with the built exe but that doesn't work. I...
[4 replies] Last: yes. I've tried there and where the exe is located neither produced po... (by avivafae)
Am i suitable for Programming
 
Hi guys, thanks for helping me out for my previous posts and it seems i am at the end of my semester as a sophomore in Penn State. My question is, am i...
[3 replies] Last: I don't agree. Life is too short to do something you don't enjoy even ... (by GodPyro)
My function as right?
 
Hello! I make a simple function for compare two strings, the function is like a strcmp() , of string.h . My function is: int CompareStr(char* str1, char*...
[4 replies] Last: That function keeps calling itself, without any conditions as to when ... (by Albatross)
by candme
Objective C
 
I know this site is about C++. But I have decided to post this question anyway. Having a strong foundation in computer programming and data structure in gen...
[3 replies] Last: Thank you for information. I am learning Objective-C. Yes, memory ma... (by candme)
2D array
 
So I don't know for sure if the crash I'm getting is because of this, but is this 2d array declared properly? double **tPFMap; tPFMap = new double* ; ...
[1 reply] : Yes that is being allocated correctly (although typically they're done... (by Disch)
I need help with this C++ program
 
Override the operator -= for the Date class given at the end of Unit 16. To support this method, also create a private method called decrement() that works simi...
[1 reply] : Please edit you post and enclose your code with [ code ] [ /code ]. ... (by GodPyro)
by Jake94
Playing Video Files
 
I am trying to make a GUI that plays video files. I've done quite a bit of research on the topic, and I've found some help, but not much. I was wondering: what ...
[2 replies] Last: Thank you, but I'm looking around and it seems to be a good resource, ... (by Jake94)
Problem with Output Alignment and Function
 
This program is a Payroll Report, here's a link to the Data File, http://www.cerritos.edu/jwilson/cis_180/SHP_Assignments/paydata.txt Basically my proble...
[8 replies] Last: So I changed the function to how you explained.. However, it still doe... (by TrevorD)
by chris4
2D array of chars prints differntly each time
 
int main (void) { //Local Declarations int size; int students_friends = { {0 } }; int number_friends ; char names = { {0} }; //Statements siz...
[2 replies] Last: What does frequency_friends(students_friends, number_friends, size) do... (by GodPyro)
by firix
substring for both reading and writing
 
Hi, I want to define a substring that can be used for both reading and writing but I am not complete code. template<class Ch> class Basic_Substring{ ...
[no replies]
May 2011 Pages: 1... 434445464748
  Archived months: [apr2011] [jun2011]

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