Beginners (Page 6)

My code works as is, but how do I use the constructor?
 
Here is my code so far: megatron.h - In namespace megatron::utility template <class T> cla...
[11 replies] Last: > My next thought would be including a static vector to the megaptr cl... (by JLBorges)
Search name(String Manipulation)
 
Desired Output: Enter n: 2 Please input 2 names: Ana Ina Ana Ina Enter name to search: Ana An...
[16 replies] Last: I'm a total newbie so thank you for helping me ^^ (by Vandalism)
by msrt92
Stack in array
 
i want to create s.top public variable .. #include<iostream.h> //#define maxSize 5; str...
[2 replies] Last: sorry I'm not creating function for top... I m creating global variab... (by msrt92)
Back to diamond problem
 
I want to keep the outside stars only and remove the inside diamond shape to be like * ...
[7 replies] Last: Thank you, Sir. (by Eslam Elmishtawy)
Using ofstream with structs
 
Hello all, thank you for taking your time to view this issue. I am currently reading in a .csv file ...
[no replies]
Array of Structs with Functions inside Struct Def
 
I am getting the vast majority of the errors in the piece of code below. They are pertaining the var...
[1 reply] : Well I solved that by adding constructors but now I am getting the err... (by JoJodoggy1)
i have no clue what to do here. please help.
 
Create a CharConverter class that performs various operations on strings. It should have the follow...
[no replies]
can someone explain why (char - 'A' + key) % 26 + 'A' works for the caesar cipher?
 
i had to make a program using a caesar cipher and i did that but the only thing i had to google caus...
[2 replies] Last: thank you, i understand what the formula does now (by idknuttin)
Having trouble outputting correctly.
 
I have to write a program that takes an input file formatted like this. FR3D,jones,123456-7891,12...
[2 replies] Last: As for outputting it to a file, I would suggest creating a string vect... (by FSM Worshipper)
Help required
 
I keep getting errors while trying to write this program, the code is below. Help on what I am doing...
[4 replies] Last: #include <iostream> using namespace std; int food() {double meat, fru... (by jasonwynn10)
by myName
Get ip and Check in the database (MySQL)
 
Hello everybody, I'm trying to make a system to check that the user ip exists in the database, but ...
[5 replies] Last: That particular error comes from trying to use + to concatenate to C-s... (by Zhuge)
by clodi
random_shuffle not working?
 
This line of code is giving problems.. random_shuffle( buffer[ 0 ],buffer[ NSITES - 1 ] ); in ...
[2 replies] Last: thanks a lot!! it worked! (by clodi)
by njas1
Need Help
 
I am a beginner and need help with this program. i dont know where to start, if you all can help me ...
[2 replies] Last: ok here it is i have tried... i dont know what to do next // main.c... (by njas1)
Splitting a character array into strings to a certain character.
 
Is there a way to split a character array filled like this. Hello,how,are,you and split it int...
[1 reply] : http://stackoverflow.com/a/236803/1959975 (by LB)
fstream / ios::binary mode questions
 
I am unsure about what the purpose of ios::binary is. Can someone please explain this to me. I ask b...
[4 replies] Last: All files are 'binary files'. There's nothing different from one file ... (by LB)
by r0bot
very basic: scanf()
 
Dear Forum, it is very basic calculation of adding two numbers. when I enter 1 2 I get the result ...
[4 replies] Last: Hi, Also, one should make use of the return value from scanf so one... (by TheIdeasMan)
Flat 3D array
 
I have been stuck on this task for quite a while. I need to extend my 2d flat array to 3d. I know th...
[5 replies] Last: Use your 2D allocator inside the 3D allocator: double *** aloc3df(int... (by dhayden)
by Alahrs
Initialization of variables
 
Hey, is there any difference between these three options? In java I only used the '=' one. int x...
[4 replies] Last: Thank you for your time explaining it to me. Really appreciate it! (by Alahrs)
How to save information in program and user can use it when he exit the program and Run again. . .
 
My question is how can i save the information & use again after exiting the program and Run it again...
[3 replies] Last: Untested: #include <iostream> #include <fstream> #include <string> in... (by LB)
Fishing Game
 
Good Afternoon everyone. I have been working on a fishing game that bases your caught fish off of a ...
[4 replies] Last: You would want a while loop around lines 34 and 35. Your do loop a... (by AbstractionAnon)
Pages: 1... 45678... 132
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.