Beginners - June 2009 (Page 2)

need assistance figuring out the why my output is wrong....
 
ok, first off im very new to c++. this is only my second actual program ive writen. this is not all of it, but the beginings. im trying to build a bit of it ...
[4 replies] Last: When posting code, click the '#' on the right hand side under 'Format'... (by Tevsky)
Hello .... some general questions
 
I am new in C++ and I don't know anything about it so I want to ask some questions and I hope someone answer me please the qeustions : 1- The most populer c...
[7 replies] Last: @ heliois you dont wanna know (by jloundy)
Encounter 'FAST IO DISALLOWED' when rename under Windows
 
Hi. In my code I fopen a file to write something into it, then I fclose it and try to rename it, but failed. What I get from procmon.exe is FAST IO DISALLOWED....
[no replies]
Sorting in Multidimensional Arrays
 
I have a program in which there is a two-dimensional array. Let's say it is array . In array to array , I store the Names of different students.Then in arr...
[2 replies] Last: Thanks a lot! (by madmaxsantana)
Safe alternative to 'cin'?
 
So I've been trying to get into Embedded Systems programming, specifically using VxWorks and Windriver 3.0. Now, these two aren't necessarily friendly toward th...
[12 replies] Last: Hey everyone, Sorry I was away for the weekend and was without Inte... (by datta016)
by Pether
Guides on how to use Regex in C++
 
I have come to the next part of my program, now i will have to be able to read info from textfiles and so on. And i have had it pointed to me that i should u...
[10 replies] Last: Hmm, can i use find to search for a string, then use getline to read t... (by Pether)
Open, Edit, Write textfile
 
Hello, I already did some programming with C++ by implementing different formulas in dll files and so I want to use C++ for other operations. Now we have to ...
[1 reply] : You need to first include fstream & string header files.. then you nee... (by CManowar)
Output format Printf and Cout!
 
#include <cstdio> #include <iostream> #include <iomanip> #include <cstdlib> using namespace std ; typedef struct{ char name ; char...
[1 reply] : Ok.I found a solution. for( int i = 0 ; i < size ; i++ ) ... (by Dufresne)
by levone
random confusing error?
 
description of programs purpose: i wanted to make a simple encryption program that you can drag a file onto the exe and it encrypts it and saves it with the ...
[5 replies] Last: oh i see... now that i think about it. i did do a check and the siz... (by levone)
c++ biodata
 
can somebody help me making a simple biodata including name,age,gender,address,school using c++(iostream.h) the output should be... BIO-DATA Name:Joha...
[2 replies] Last: http://cplusplus.com/forum/articles/1295/ http://lmgtfy.com/?q=c%2B... (by QWERTYman)
error C2668: 'sqrt' : ambiguous call to overloaded function
 
I am new to c++ and I keep getting the c2668 error. My assignment for the class is to change the program so that it compiles but not removing any statements,...
[7 replies] Last: that is awesome..thank you so much. that makes so much more sense tha... (by bella09)
by audit
converting a vector of characters to a string
 
I wrote this function to take a integer and convert it into a string that represents a Roman numeral. I am having trouble converting creating the string. This i...
[2 replies] Last: Thank you jsmith. (by audit)
file output.
 
What am i doing wrong here? The file distances.txt stays empty even when i get output by the cout. int main () { int i,j; float l; ofstream myfi...
[2 replies] Last: Thanks. I erased the line you indicated and it worked. (by tsilis3)
How can I measure how many milliseconds have elapsed?
 
I want to, for example, know how many milliseconds have elapsed while the user is inputing something. I tried clock(), but it always results in 0.
[9 replies] Last: I see and thank you. time(0) works, but not as accurate as I want. N... (by lilydjwg)
When I mut write <iostream.h> and when I must write <iostream>
 
I want know when I mut write <iostream.h> and when I must write <iostream> and what's the difference please
[12 replies] Last: I will take this moment to state my absolute hatred for using .... (by helios)
Separate files cannot see definitions
 
Hello. I have a problem with c ( not c++ ) Lets say I have a header system.h #define PC And other file load.h #include "system.h" #ifdef PC b...
[1 reply] : PC should be defined in load.h after including system.h unless there's... (by helios)
Syntax error : 'if'...
 
line 150. I don't know what's wrong with my if statement. I was following along somewhat with this video but didn't follow it too strictly. Would appreciate if ...
[7 replies] Last: Btw, would you consider using functions (so that a block won't get lik... (by wmheric)
Ascii char set
 
Hi, when I output the ascii chars 178 tp 218 in my console using this: for(int i = 179; i < 218; ++i ) { std::cout<< i <<" "<< static_cast<char>(i...
[3 replies] Last: Oh yeah... heh... you need to be using the Lucida Console font... ... (by Duthomhas)
Menu and finding largest number
 
Hi. I'm trying to learn c++, but I'm still pretty noobish. I need to create a program that displays menu options and displays the largest number, andthe smalles...
[3 replies] Last: The two of you are both going at it the right way, but neither of you ... (by jsmith)
string.get(char) (1,2)
 
I am trying to take a string and grab each character from it so i can observe it. Doesn't seem to be working. Is there another way to accomplish what i am try...
[22 replies] Last: Hey, I wish you the best of luck learning the language. And I'm happy ... (by AngelGithara23)
June 2009 Pages: 1234... 18
  Archived months: [may2009] [jul2009]

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