Beginners - March 2014 (Page 63)

Loop problem
 
I'm doing some review for class but I ran into a problem on the last for loop. It is supposed to find the difference between the sales quarters. Quarter 1 to Qu...
[no replies]
Multiple Longest Common Substring?
 
Hi all, I don't understand how to approach an overlap assignment (basically longest common substring?). The program will have a set of three strings(keys). I...
[3 replies] Last: #include <iostream> #include <string> using namespace std; int lon... (by iwantricexd)
Show Hide Button WIN32 API Window
 
Hello. I`m trying to do a window with some buttons and checkboxes. So, my problem is simple, i think, i'm beginner, so i want to know how to hide a checkbox w...
[2 replies] Last: i solved it. ty (by robbyyoz)
Trying to finish up a program, need help!
 
I have been working away at this program, and I need some assistance. I am getting lost with the arrays when it comes to assigning the seats, and checking to se...
[no replies]
Need Help With Short And Long
 
I am a beginner trying to learn C++ i am learning it from a book can someone explain what long and short and signed and unsigned dose i need a detailed and sh...
[11 replies] Last: [quote=SorinAlex]No long long is maximum 8 bytes even on 64 bits syste... (by LB)
Problems with switch statements
 
My switch statement goes straight to default. Can anyone help. char Topic1 ; cin>>Topic1; switch(*Topic1) { case('Trigonometry'):...
[1 reply] : Well, because you are trying to compare single char to implementation ... (by MiiNiPaa)
Program Flaws with Loops
 
This program should terminate if a negative number is entered. If a character is entered, program should ask for reinput. This isn't exactly functioning as ...
[5 replies] Last: @Yanson Yes, that works! Thank you so much. (by sportstool)
Program problem
 
Well, I'm trying to make this program but its giving me a hard time. Can anyone please make this so that i could understand it. Then I will make it from scratch...
[6 replies] Last: Do cin >> y[x-1]; . This is because array index starts at 0. And ends... (by Stormboy)
ARRAY HELP
 
xsss
[3 replies] Last: Your OP pretty clearly states the name of the variable that stores the... (by MikeyBoy)
Output is not displaying proper value
 
My code is working but, the output on the text file is not displaying proper value. What's wrong with my code? #include <fstream> #include <iostream> #i...
[2 replies] Last: @micros24 It seems that you are not calculating Celsius to Fahrenheit... (by whitenite1)
Best C++ Books
 
I dont know which book to start with few i have in mind are Accelerated C++ .... .... Well i hear accelerated C++ is not for complete beginners and exe...
[3 replies] Last: jumping into c++ is pretty good (by SorinAlex)
by Chubby
Help with string
 
I think i got it wrong and here is question: Write a program that reads a string from the user containing a date in the form mm/dd/yyyy. It should print the da...
[4 replies] Last: Use C++ strings. They'll make your life easier. And use regex to valid... (by Stormboy)
Creating a open file function.
 
I am trying to create a function which will open a file, read the numbers in a file, place those numbers in an array, and then return those numbers. So far I ha...
[1 reply] : For example you can return container with values. Bonus: it is can hol... (by MiiNiPaa)
by varx
Confused by Fcn Sig
 
I was looking at some code in regards to a singleton and I came across the following: S(S const&); // Don't Implement void operator=(S const&)...
[no replies]
Is it good/bad practice to initialize your vars in your protoypes???
 
So I've been taught (from "C++ Programming/ From Program Analysis to Design" book) to initialize my private variables in the constructor in the definition of a...
[2 replies] Last: Sure. This is the class prototype and it compiles just fine. Line 16 i... (by dtaqee88)
Starting function inside while loop
 
Hi, I would like to know if I start a function inside a while loop will this loop be ever finished/closed if that function actually never ends? I wanted to make...
[5 replies] Last: Thanks for your advice. Actually I did something really similar to wha... (by Furjoza)
by leoNM
Exporting data to *.txt
 
Good Night I'm a beginner in programing for numerical methods (CFD) I'm trying to export a bunch of data to notepad. The simplification of the problem would b...
[2 replies] Last: Thank you !! (by leoNM)
Most efficient way to make a board
 
I'm making a board for a dungeon crawler game I am making, and he way I have done it is extremely inefficient and time wasting, so I was wondering if there is a...
[4 replies] Last: Thank you! (by Jamerack)
by tdk93
Manipulating array out of bounds, can't seem to understand implications
 
#include <iostream> int main() { int array = {0}; array = 100; std::cout << array ; } How does this work? Aren't we supposed to no...
[2 replies] Last: You have a home. Your neighbour has a home. If they come and poo on ... (by keskiverto)
about pointer & arrays
 
Im trying a program that asks the user to enter his 1st name to store it in an array of char that has 20 size. then declaring another array of the same type ...
[3 replies] Last: char * foo; *foo // dereference a pointer // is equivalent to foo //... (by keskiverto)
March 2014 Pages: 1... 6162636465... 79
  Archived months: [feb2014] [apr2014]

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