General C++ Programming - March 2012 (Page 28)

by chaka
Error in contruction of a string
 
hello everyone, Im a beginner and developping an application in c++. I have this part in my code: class CSmtp { public: CSmtp(); virtual ~CSmtp(); ...
[1 reply] : Try: #include <string> (by Galik)
Create sorted linked list
 
Anyone tell me what is meaning of following definition? Write a program to create a sorted singly linked list. is it when we create node at that time node w...
[2 replies] Last: k thanks can you give me logic for that? i have tried but can't perfor... (by CSharpque)
Drawing a graphical timer
 
I'd like to create a timer using C++ and then using a draw library I have, draw a box with a standalone timer. Any ideas?
[3 replies] Last: ask Google QT is one open source GUI library, compatable for both Un... (by therockon7throw)
question~~~help
 
I am a green hand for C++. The following is the C++ code I wrote just now. I did not know why I was warned as "string subscript out of range". Can anybody help...
[8 replies] Last: viliml, thank you, you are of great help~~~ (by susanvilla)
please correct the mistakes in my coding
 
Que Vodafone mobile company wants software to maintain the account of its Prepaid Customers. Create a class PREPAID having the following attributes 1. Name...
[2 replies] Last: giving following errors Compiling VODAFONE.CPP: Error VODAFONE.C... (by ashayjain)
correct my mistakes and please make this program executable
 
Que Generate software for a garment shop at Treasure Island where a monsoon offer is going on.the offer states as below 1. On the purchase of one item, bil...
[2 replies] Last: the program is giving following errors Compiling TI.CPP: Error TI.... (by ashayjain)
Store Substring
 
Hi Experts,, Im very new for C programming, i have variables : char mesej = "Thank You Experts"; char prefix ; char infix ; char suffix ; I wa...
[3 replies] Last: Thank you so much all,, :) (by ranuchi)
by bmw
Display HTML content
 
I am making a simple browser, that parses and displays the HTML code on a form. I don't want to use any browser controls or anything because some are crap and I...
[2 replies] Last: you mean they draw everything, like a picture??? (by bmw)
running into max int wall while calculating a large sum
 
I am trying to create a program that calculates the sum of all the prime numbers under 2,000,000, and although my program is written correctly, it returns the w...
[2 replies] Last: Hm, a lot of people are trying to solve this problem. I might have to ... (by Need4Sleep)
HELP WITH CONIO! PLEASE
 
Hi, everyone! New here. I am working on a C++ project and I am trying to add some color to my console. I also want to use the clear screen function. Even though...
[1 reply] : When i use conio.h i simply add it into my project and include it insi... (by Need4Sleep)
vector by reference
 
I'm probably doing this wrong, I don't typically use vectors and I am starting to jump on the band wagon but I have no idea how to pass them by reference this i...
[9 replies] Last: Wow never mind I made a STUPID mistake but thank you for your help (by wbeasley)
by mike87
C++
 
Can anyone suggest me how to generate a random number on C++ visual studio?
[2 replies] Last: To be less rude than the poster above, What problems do you have with ... (by Need4Sleep)
by bmw
Undefined reference to function
 
I am getting an Undefined reference to function and I can't figure out why. The error is: main.cpp|288|undefined reference to `HTML::getHeadAndBody(std::stri...
[6 replies] Last: Thanks everyone it is solved :D (by bmw)
String Verification (Checks if string has certain characters or not)
 
So, I'm trying to make a program to convert numbers between bases and I'm stuck on number verification, where it checks the string for only the digits 0-9 and/o...
[1 reply] : if ( x != '0' || '2' ) evaluates to if ( (x!='0') || '2)' In th... (by cire)
Could someone helped me with my code? (Linked List)
 
I needed to write code that would alphabetize a linked list of structures, as well as define an insert and delete method for the list. What I currently have won...
[no replies]
How to add characters to an array
 
So I am currently working on a program that needs to add 'ly' to the end of an array of characters if it does not have it. Except I do not know how to write the...
[4 replies] Last: Sure, why not? You don't even need to use this, I just was thinking h... (by IceThatJaw)
Problem with string comparison
 
This is just a snippet of the code but I can't figure out why it is comparing the 2 strings in the vector. The code compiles it just skips the whole if statemen...
[4 replies] Last: If nameslong is equal to or greater than pullednames.size() you're goi... (by cire)
output equations into tables
 
below is my current code. What I need to do now is to print columns where I1 is in the first column and I2 in the second and both need to have a range of corres...
[1 reply] : I have another massive block of code that semi does what I want but it... (by johanjvanr)
PLEASE HELP W/ CODE (ERRORS)
 
This is for a C++ intro class lab: Here are the instructions: Create a Spell Catalog for a RPG. It should greet the user, & inform them that you ca...
[1 reply] : Please read: http://www.cplusplus.com/articles/z13hAqkS/ and http://... (by cire)
How to code those instructions
 
kkkk
[2 replies] Last: i dont have a teacher thats why i asked in this forum for some help th... (by redfox9)
March 2012 Pages: 1... 2627282930... 49
  Archived months: [feb2012] [apr2012]

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