Beginners - September 2010 (Page 11)

istream variable assign
 
I probably sound like a noob, and, infact, I am. Please forgive me if this is an easily found answer. I tried for an hour so far. I just don't know what to "sea...
[7 replies] Last: If your requirement is to save to multiple files based on the file nam... (by naivnomore)
by TomRed
A string problem
 
I found a practice problem on these forums and was trying to write a program for it when I couldn't get it to work correctly. The problem is as follows: ...
[3 replies] Last: Better a silly mistake that's easily corrected than a hard-to-find bug... (by Zhuge)
I think its a looping problem
 
this program takes in 10 students or less but when you enter less then 10 it seem that the loop keeps going and gets random junk from memory can anyone help me ...
[1 reply] : You array is a constant size 10, so it will always have 10 students, e... (by Zhuge)
display undeclared
 
#include <iostream> # include <stdio.h> #include <conio.h> # include <windows.h> using namespace std; int main () { int sec = 0; int min = 0; int ...
[2 replies] Last: He means you should add this to the beginning of your program: short ... (by wtf)
takes only one input
 
main() { int i; char c; for (i=0;i<5;i++) { scanf("%d",&c); printf("%d",c); } } Why the program scans only 1 time if you give an alphabet as an input??
[2 replies] Last: srry, but i didn't get the reason till now... (by Aurelio)
c++ system() function
 
Hello.i am back with a new "issue".i searched the internet about it but not weary much.(or maybe i did not searched correctly). So the thing is i want to make...
[5 replies] Last: ok..ty.i will read more about it and it's behavior in different situat... (by Mihay07)
by wtf
Coeblocks Crash
 
I am on a library computer, windows 7 and codeblocks has frozen, for well over hour and I can't cloe it. I was in the middle of compiling a program after corr...
[1 reply] : That sounds odd. Maybe Windows 7 has an incompetent task manager? Mayb... (by Albatross)
i do not know if this it a TRUE statement
 
Consider the following declarations: int score = 80; char answer = ‘N’; int n = 8; char ch = ‘a’; ( (ch >= ‘A’) && (ch <= ‘Z’) )
[8 replies] Last: Here's an ASCII table: http://www.asciitable.com/ The red Chr colu... (by moorecm)
by Deluge
Convert char* to wchar_t*
 
I've been at this one for a while now, and have tried a few solutions. I am trying to convert a char string to a wide char string. #include <iostream> usi...
[2 replies] Last: Thanks, I won't worry about it for now, as long as it is being convert... (by Deluge)
by dlugo
Freeing memory after allocating memory?
 
Hello! Hey all! I've just recently learned how to use classes. To learn how to use 'classes' I've created a program that reads numbers from a file and stor...
[4 replies] Last: I get rid of it when an object is deleted, or the end of my program. A... (by Thumper)
Trying to convert VB.NET to C++ Exportable DLL Function
 
I hate to resort to this, but I have spent the last few days poring through website after website, trying to figure out how to do the smallest things in C++. I ...
[3 replies] Last: Ok. I got the code compiled with no errors / warnings. I guess now I'l... (by RCM LittleC)
The Game of Nim
 
hey all im currently writing this program for class and i need some pointers im not sure what direction to go. im a beginning programmer and i just need some gu...
[6 replies] Last: You may want to take a look at Teach Yourself C++ in 21 Days . While ... (by helios)
by Barca
Erase text in a line before a certain character
 
Hi, I just started using C++ and I've been trying to write a program to erase all texts in a line before the character ">". there is multiple lines and the in...
[4 replies] Last: I just started using C++ and I've been trying to write a program to e... (by sohguanh)
Output format question
 
As a minor part of my program, I am trying to output dates (of the year). If given: 2/3/2010 I want the format to be: 02/03/10 12/30/1940 ---> 12/30/40 ...
[7 replies] Last: Thanks kempo, I got the leading 0's to be printed using setfill. Bu... (by meeztered)
Source Code for QB Rater
 
Source Code for QB Rater I made in my spare time if your interested. It's in C but will compile on C++ compilers. //Peter Wagner #include <stdio.h> ...
[no replies]
Storing variables within a loop
 
Sorry for the topic title; I couldn't really think of anything better. My question is this: I need to use a loop to input integers from the user and store th...
[6 replies] Last: You will find all of the information in that link, I'll explain in wor... (by Thumper)
gotoxy() for Visual C++
 
Hi. I'm writing a console application in Visual C++ and I need to change my cursor position, which I don't think is supported by any standard library. Can some...
[3 replies] Last: I've always used this function for changing the cursor position in the... (by Thumper)
by wasabi
operator= issue
 
Before asking the question, I think it better to show the relevant code snippets. //MyCanvas.cpp #include "Qt.h" /*...*/ void MyCanvas::ChangeView_Pan(QM...
[14 replies] Last: Actually, I figured it out. I still don't understand the error message... (by wasabi)
Debugging Input into a vector
 
I'm fairly new to c++, so I apologize in advance if the answer is obvious. Basically, I'm writing a program that will find the mode of a series of numbers, a...
[8 replies] Last: Alright, well I appreciate it anyway. A friend of mine helped me rewr... (by Chrome1)
Loop problem (1,2)
 
I find it hard to make a loop code. Our instructor made us print out the following numbers using loop: 1,2,4,7,11,16,32,39,47,56,66 Any tips on making a l...
[26 replies] Last: The exact reproduction of this loop: int n = 1; for(int i = 0; i ... (by filipe)
September 2010 Pages: 1... 910111213... 32
  Archived months: [aug2010] [oct2010]

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