Beginners - November 2015 (Page 7)

How to print
 
Hii. Can I send my present output screen for print. I have made a billing program so if I can send it to print then it will be perfect.. thankyou
[2 replies] Last: Alternatively you can try this: FILE *stdprn; stdprn = fopen("prn","... (by Thomas1965)
by sep11
Error message pops up, not sure what I'm doing wrong
 
I'm not quite sure what's not working, but when I go to debug this program (I'm using Visual Studio Express for Windows) I get an error message that says "unabl...
[12 replies] Last: I you are are allowed to use functions I would do it like this: #inc... (by Thomas1965)
by Borneq
How compute windows size with and without border?
 
I am working under Windows 8.1; I test window size with border and without border. Horizontal difference is 16, vertical 39. 39 = cyCaption+16; Frame has 8 on ...
[no replies]
Why use #define MODULE in main()?
 
Why? Why also to use it in any other class-organized code, i.e. to define as MODULE a class compilation unit? I find it has been, or am I wrong? Thanks
[no replies]
by rdar
Regex confusion, regex_search() returning false when it seems like it should return true
 
Apologizes if this is blindingly easy or already in the forums, but I decided to ask about it because I have been searching/googling all day without any success...
[5 replies] Last: Oh wow, ok. thanks!!! I just totally assumed that if it was compiling ... (by rdar)
Primary parameters before 'bool'
 
Hey guys! So I did this codepad.org/87zCHfZx and it is giving an error totally out of my mind! Sorry if the code is really cluttered! My device has a character ...
[11 replies] Last: So will bool x; if (something == something && x) //Will it work sa... (by TheLoneWolf)
Please explain...
 
Write your question here. #include<iostream.h> #include<conio.h> #include<stdio.h> void main() { char pincode ; cout<<"\n Enter pincode"; cin.getline(...
[2 replies] Last: Please explain what is the use of this line.... cin.getline(pincode,... (by r 4 raja)
Problem with program!
 
I am beginner at programming and i need help with this piece of code. I was trying to make program that will input 3 numbers and output them from slightest to g...
[2 replies] Last: Oh yep it worked thanks for help! (by Bakenhuman)
Two identical programs produce different results
 
I have a simple question to ask. I have written two similar programs in FORTRAN90 and C. Both sources are built within CYGWIN environment. They are very simple:...
[2 replies] Last: Thanks for replying. I figured out the answer. The FORTRAN code must b... (by samolet4e)
Problem with pathfinding
 
Hey guys! I have to write a program which checks if a cat can reach every blank tile of a garden. The garden could look sth.like this: ###### # # # ## # ##...
[16 replies] Last: It works! You're the best! Thank you very much :D (by Dever1954)
Help finding error
 
I'm getting an error in this section of code here. "expected ; before cout" In particular, on line 4 in this section of code, just didn't post my whole code her...
[10 replies] Last: Well, what do you want it to do? If you want it to repeat until a cer... (by MikeyBoy)
Isolating the bug.
 
Can someone please isolate the problem? It says "expected primary parameters before 'else'. Thanks! if (choice == "1") {if (weapon== true) {if (chance ...
[2 replies] Last: You mean write clean code, right? K! Will surely work on that! (by TheLoneWolf)
external and local name lenght
 
Hi, I'm having exercise where I have to check name lengths of external and local names. What is the longest local name you can use in a C++ program on your s...
[2 replies] Last: Tnx for your answer man, much appreciated :) (by etrusks)
help
 
Write your question here. Write a c++ program that initially takes an integer value from the user as the loop’s limit. It means that the loop will execute th...
[1 reply] : http://www.cplusplus.com/forum/beginner/179638/ Yawn. Another duplica... (by closed account 48T7M4Gy)
Scope of variables
 
Hello everyone I'm a newbie to c++ programming. I was given an assignment to create a address book with 4 functions.(adding new contact, delete contact, edit re...
[2 replies] Last: The problem is that you read from the file ["contact.txt"] each time b... (by coder777)
Typing e (to double) breaks up program!
 
In a exercise from a book, it asked me to take in a double and a unit, convert everything to meter, and as I enter values, print "smallest so far" or "largest s...
[2 replies] Last: The simplest solution is to simply request a space between your numbe... (by ephraimr)
Ofstream not writing to file
 
EDIT: I fixed it. I shouldn't program so late at night. I used "&& instead of "||" for the previous while loop. I am trying to turn a list of elements into ...
[no replies]
Brackets in the function parts...
 
So we are learning functions and strings. I have lots of questions, but one that is bugging me and I can't find really is what does the variables (not sure if v...
[8 replies] Last: Hi Startering This thread has been hijacked a bit so it might be a go... (by closed account 48T7M4Gy)
by Torex
Reverse diagonal in two-dimensional array
 
Hi guys, I can't solve this problem. Task : I'm given a 2d array and my goal is to make a program that will sum every element above reverse diagonal. Basel...
[5 replies] Last: @Torex During the addition of the columns, you check if its a 0 or mo... (by whitenite1)
Problems with Stacks
 
Hi I could use some help. Everything seems to work only for the first value. But it doesn't display the other values correctly until I pop a value. Just a hint ...
[2 replies] Last: Wow thank you. (by Cosmical)
November 2015 Pages: 1... 56789... 53
  Archived months: [oct2015] [dec2015]

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