General C++ Programming - November 2015 (Page 6)

School project
 
Me and my friend is going to make an examination project in programming 1 (c++). So we decided to make a program that makes different sounds (beep) depending on...
[1 reply] : Standard C/C++ doesn't provide enough functionality for this. So you h... (by coder777)
blatant missing entry for std::string::operator==, please fix
 
On http://www.cplusplus.com/, somehow, I could not find the documentation entry for std::string::operator ==, which is obviously present. And the operator at l...
[2 replies] Last: Aren't all the comparison operators just wrapped versions of the strin... (by Gaminic)
clock() timing inconsistencies
 
I'm running some timing experiments on several algorithms. In short, it reads data, performs an initialisation phase, then cycles over K different optimization ...
[1 reply] : After a few more tests, it seems it's not the value of K that changes ... (by Gaminic)
Problem with Ackermann-Funktion
 
Hey guys, my program is stuck in the endless loop, and i can't seem to find a problem. It works for A(1,2) but for (4,3) it gives endless loop. Here's the code...
[6 replies] Last: What do you mean MikeyBoy ? You mean that it should ask a user to re... (by whyunomad)
by jem19
Snippet (for loop, while loop, do while loop)
 
How can I make a program using this instruction? Snippet for : a program that prints all numbers between 0-10. using : ...
[1 reply] : Check http://www.cplusplus.com/doc/tutorial/control/ for an introducti... (by Gaminic)
I am at a loss as to why this doesn't work
 
Yes, this is an assignment for school. I have been working on this for a couple weeks now and I have spent time looking at this forum and other resources and c...
[6 replies] Last: Thank you very much for the reference material link. I was able to us... (by ChrisMoore2)
Need to insert a loop to the main menu!
 
I need help inserting a loop that will take me back to the main menu within each option. I also need a quit option in the main menu. //This program has...
[no replies]
C++ Madlib Project
 
I have worked on this code for awhile now and it seems to be alright, however I am having a problem with it reading the file. It opens the program (yay!) but wh...
[4 replies] Last: just for my curiosity's sake, what's in the file that is trying to be ... (by jasonwynn10)
Strings and what they mean
 
I need help in understanding like these types of strings and what they do. strlen() gets() fgets() puts() fputs() strcpy() strncpy() strcat() strncat...
[1 reply] : really -_- two accounts and two posts?! http://www.cplusplus.com/fo... (by jasonwynn10)
Strings and What they mean
 
I need help in understanding like these types of strings and what they do. strlen() gets() fgets() puts() fputs() strcpy() strncpy() strcat() strncat...
[1 reply] : really -_- two accounts and two posts?! http://www.cplusplus.com/fo... (by jasonwynn10)
Binary File Input
 
I am writing a program that will input customer information. I built a function setCustomer() that will get all this information. My program will not complie th...
[1 reply] : getline only works for reading strings of characters. total is an arra... (by Peter87)
Coding a Game, Need Some Help
 
So I programmed this game on TI Basic and I wanted to be able to transfer it over to C++. I am not saying like, connect the TI to the computer, I will rewrite t...
[5 replies] Last: Alright, thank you. I feel kind of stupid, but I guess it makes sense.... (by hippopocalypse)
Reading list from input file,place in array, print the index of the name
 
Need some direction on this one if anyone can help me out. Write a C++ program that reads the input file information as a name list. Compare the entered nam...
[3 replies] Last: OK then you are ready to go. Just declare an array like this: #de... (by Thomas1965)
solved
 
solved
[2 replies] Last: Also, on BINGO cards: The 'B' column only has number 1 - 15, The... (by doug4)
by Mr T
Reading values out of the Windows Registry
 
Anybody know how to write a C++ program that reads values from the windows registry? Specifically environment variables. I've found that reads environment varia...
[5 replies] Last: > Does that mean that calls like GetEnvironmentVariable are effectivel... (by JLBorges)
2 doubles
 
Hi, I have 361 two double integers stored as a list in a .txt file. When i run the programme the first double integer joins the second double integer on the sam...
[3 replies] Last: First of all, variables of type double are real number (with decimal... (by doug4)
by bsc123
breaking out of loop during void
 
so I have a void that I am putting in a loop. Part of that void has a break to break out of the loop but there is no loop actually in the void, rather I will pu...
[2 replies] Last: so I have a void that I am putting in a loop. What do you mean by th... (by doug4)
errors
 
I keep getting these two errors- -40: error: a function-definition is not allowed here before '{' token. -65: error: expected '}' at the end of input. this...
[2 replies] Last: These are the syntax errors I get: #include <iostream> using names... (by Thomas1965)
by kalki
How to solve memory leak problem? By new and delete operator
 
I have two classes. B *ss=new B; class A: { /*Functions prototype*/ Function1(); Function2(); }; /*Function declaration of class A in file 1 Function1(...
[10 replies] Last: I made some modification to code. Oh, well that makes everything so ... (by MikeyBoy)
Adding Arguments to my program
 
Hello everyone I am new to c++ programming and I wrote a program in VS 2015 that asks the user for a file name and if it exists it reads the the floating point ...
[3 replies] Last: At the point where you want to check whether a filename has been speci... (by MikeyBoy)
November 2015 Pages: 1... 45678... 26
  Archived months: [oct2015] [dec2015]

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