Beginners - July 2011 (Page 21)

counting vowel in a string
 
int vowelcount (char ,int,int) { int vow_cnt=0; for(int i=0;i<strlen ;i++) { if(name == 'a' || name == 'e'||name == 'i'||name == 'o'||name == 'u') { vow...
[3 replies] Last: here is another way, a simple function: #include<iostream> #include... (by muratagenc)
by Baso
getline with pointer
 
I Want to know what is the wrong in this code, or which function could I use to get string referred by pointer. #include<iostream> #include<string> using...
[2 replies] Last: Thanks Webjose I used istream::getline(), and it works . Thanks. (by Baso)
Error using sentinel with an Array
 
Hello, When I fill the array my program works, but if I use the sentinel to end the loop (in this case -1) the output gets messed. Can anyone see what I'm do...
[2 replies] Last: I'm still not seeing what I'm doing wrong. Why are my outputs coming o... (by Cutegun)
Console freeze bug at different points every time
 
[no replies]
why is not reading
 
#include <iostream> using namespace std; void printarray (int arg , int length) //printarray will print the numbers in the array { for (int n=0; n<...
[2 replies] Last: Also, on line 38 it is spelled wrong which will stop the program. inst... (by SteveISTBullit)
New Guy Needs Help
 
Hi, im super new to this but its slowly making more and more sense. Anyway im following along in a book teaching C++ and it helps you write a simple program. Im...
[5 replies] Last: The only things that actually needed to be done to make this program r... (by SteveISTBullit)
Making a char array with an int in it
 
So I'm making a bunch of histograms and I need to set their titles in a for loop. What I need is to say "Fiber #i", with i being the number. Basically my code...
[1 reply] : The recommended approach in C++ would involve using a string stream. s... (by closed account DSLq5Di1)
Inputing multiple entries in a 2D array on one line
 
SteveISTBullit (1) Jul 21, 2011 at 1:24am I am creating a program that allow the dimensions and values of matrices to be input and then added and subtracted. ...
[no replies]
by fram
Passing an Array between 2 functions
 
Hi! So the purpose of my program is to prompt the user for an input file which contains on column of values and stores them in an array. Once stored in the a...
[no replies]
i need help
 
i'm a beginner. just start programming. just have difficulties in some of the codes. can someone make me a program that reads an integer value n and a charac...
[4 replies] Last: This is what I got, it has a continue (YAY!), may be wrong though. ... (by creekist)
Email parser problem
 
Hello. I'm having problems making a program read a text file and skip emails that consist of two consecutive periods in the local and domain parts of the email(...
[1 reply] : It's rather difficult to follow the code. There is no indentation. T... (by PanGalactic)
by mikeCC
String Problem Question
 
Hello, I am taking a C++ course and was given this problem to work out: Write and test a C++ function named isvalidReal() that checks for a valid double pre...
[4 replies] Last: I got it working, thank you! (by mikeCC)
Difference between .exe.embed.manifest and .exe?
 
I am trying to create a .exe file using visual studio 2008. I was under the impression that you simply click 'Build' then 'Build project_name' and the .exe fil...
[2 replies] Last: Think I figured it out. I was getting the following warning when comp... (by drunken meerkat)
by cp666
weird bug in switch statement
 
pasted from source file // lib ------------------------------------------------------------------------------------------------------- # include <stdio.h> ...
[2 replies] Last: You might want to check for new lines (ascii 10) as well (by shacktar)
turning .cpp to an executable exe file for windows and an executable file in linux
 
after you build your file (using Code::Blocks or Netbeans) how do you turn it into an executable exe file and an executable file for linux?
[5 replies] Last: using many archive files and based on depency Are you perhaps thinki... (by Athar)
unresolved external symbol
 
I had two, but I dont see what is wrong with this one. error LNK2019: unresolved external symbol "public: void __thiscall Date::printDate(void)" (?printDate@...
[1 reply] : Date::printDate() is not defined. (by closed account DSLq5Di1)
Rounding Problem
 
why does cout<<(111.1*1.111)<<endl; print 123.432 when the output should be 123.4321 using visual studio 2010?
[6 replies] Last: The default will truncate them, when no flags are set (e.g., cout.setf... (by Audie)
Loading Resource
 
I'm having this issue with a project I'm doing and I'm unsure on how to do it. When the program is finished, the files and libraries will be loaded from anot...
[1 reply] : Laurent on the SFML forums is usually very active and helpfull, so are... (by vlad61)
Problem with sort
 
I cant seem to figure out why my sort isnt working, its fine until it actually swops an element then its comparing the wrong elements, any suggestions? ...
[1 reply] : If line 10 is correct, then what is the point of line 8? (by jsmith)
loop problem (1,2)
 
#include <iostream> #include <string> using namespace std; int main(){ string answer; for(;;) { //question 1 cout << "question 1" << endl << endl; cou...
[22 replies] Last: thanks everyone (by metulburr)
July 2011 Pages: 1... 1920212223... 54
  Archived months: [jun2011] [aug2011]

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