Beginners - November 2012 (Page 31)

C++ code
 
I already start university and learning C++ programming code. however it is difficult for me to understand the code and what those mean. I watch many programmin...
[1 reply] : I would not recommend a video. Instead, you should read this tutorial:... (by Catfish2)
Define a type
 
Hi, I want to create a struct and use it in my program.In this case I want create this struct as a type. In my code I did create a "config.h" file. And my st...
[4 replies] Last: Hi, wow amazing.... Thank you very much Its work.Thank you to all. (by dushantha12)
A program Which test your mental level
 
I wrote the following code: #include<iostream> #include<fstream> using namespace std; int main(){ char str ,decision; int num=0,i=0; ifstream ifil...
[1 reply] : http://www.cplusplus.com/reference/string/getline/ Just stick that in... (by BlackSheep)
need help fast
 
hey people i need help in this programming thanks for the help in advance....here is wad i have so far i got no idea whats wrong with my program i have 6 errors...
[5 replies] Last: i really appreciate the help thank you people....with the help i was a... (by sri ganesh)
by paetim
Output-Changing variables
 
Here is my assignment: Create a program that would read the content of an input file and write it back to an output file with all the letters "C" changed int...
[1 reply] : ifstream myFile; // Here you have an ifstream object myFile.open(... (by jaded7)
wxWidgets - Frame maximize is deactivated
 
Hello Guys, this is my first time that i work with wxwidgets and i work with an existing project. i read right now the source code and try to understand what m...
[no replies]
Storing tricky data from text file into array
 
I am trying to store data of the following format from a text file into different arrays for each component: Last name, First name ID Year For example: ...
[no replies]
Help with pointers!
 
Hi, I am altering a vector class to take in custom index ranges, like [-5, 5] and [10, 20]. My teacher wants us to have a "myZero" variable that points to where...
[9 replies] Last: That code helped me understand more than my teacher...Thank you so muc... (by WesleySnipes)
issue opening txt file?
 
Im having an issue with some HW of mine, I can't get the program to access the employee.txt files and hours.txt Problem Assume there are two input files fo...
[2 replies] Last: jeckel, would you mind describing your data tables to me? It seems ... (by Incis B)
String Finding
 
Having my string inputted by the user. How would I find the position of the word the user entered? For example, user entered "How now cow" and they want me to f...
[1 reply] : You have look as an int - shouldn't it be a string? Find takes iterat... (by TheIdeasMan)
I'm stuck on this assignment
 
Ok here is the taskings: The objective of the lab is to take the UML Class diagram and enhance last week's Employee class by making the following changes: C...
[3 replies] Last: Make numEmployee a static member variable, increment it in the constru... (by TheIdeasMan)
by Niven
OpenGl Texture with SDL
 
I heard that SDL was more user-friendly than OpenGl for loading images so I was wondering if there was a way to use SDL to load an image and then have OpenGl co...
[1 reply] : bump (by Niven)
Blackjack ERRORS!
 
can someone please help me? I am stuck just trying to make the deck. My partner and I have been working on this for about two weeks now and I have decided to pr...
[8 replies] Last: Oops, i'm sorry, i made a mistake. That's what I get for trying to rep... (by Thumper)
Error - crosses initialization?
 
I am not understanding these errors: p3.cpp:228: error: jump to case label p3.cpp:218: error: crosses initialization of `std::string FindWord' p3.cpp:22...
[2 replies] Last: Thank you :) (by badkaykay)
Switch Statement Question
 
I am trying to use this switch statement and I am not sure if I can use it this way? int NumWords = wholeList.getNumWords(); int num; char choice; ...
[6 replies] Last: Ok - thanks again! (by badkaykay)
by xargos
Relational ops
 
Hi, C) If it is true that x != y and it is also true that x != z, does that mean that z != y is true? I thought not: for example x=3,y=4,z=4. But the followi...
[3 replies] Last: Hi, Vlad: you're right about the last examples. Raezzor: It all mak... (by xargos)
as simple as it needs to be and not any simplier
 
Hi, I'm working on extra credit. The thing is the extra credit is different from my assignments in that it is way more general of a description of the program ...
[no replies]
File output crash
 
I am currently making a genetic algorithm, and once I got that working I started creating a program to optimize the variables (like mutation rate and population...
[2 replies] Last: That was it, thank you! (by lfnunley)
Integer to Roman Numerals
 
Hi. I've made a program to convert an integer to roman numeral. It runs fine for everything until I get to numbers 8 through 1. I'm not sure why the program doe...
[6 replies] Last: Cool You could contract your code by making use of arrays. An array o... (by andywestken)
c++ not working
 
Here is the instructions Write a c++ program that takes six test scores as input and stores them in an array. It drops the lowest score, and computes the aver...
[13 replies] Last: @nenakay But that doesn't compile does it? You cannot declare functi... (by TheIdeasMan)
November 2012 Pages: 1... 2930313233... 75
  Archived months: [oct2012] [dec2012]

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