Beginners - March 2012 (Page 58)

by codrgi
filter a string?
 
how in c++ am i able to filter a string? my small app allows someone to enter in some text, im looking to filter out unneeded letters/characters, characters suc...
[6 replies] Last: final is of type std::string which does not work for strcpy. Also, how... (by LB)
by zadiko
compiler always fails..
 
im using Microsoft visuals express 2010.and no matter that i try i always get a unable to start program or errors in build.. honestly i just started today s...
[5 replies] Last: yea thats what i was doing.. least i think so.. gonna try again in a l... (by zadiko)
Returning an array
 
Hi everyone! I'm new to pointers and they are stumping me. I have this program where I have to write a function to resize an array and copy the contents of the ...
[4 replies] Last: Ok it worked! Thanks so much!! (by lokelani)
Recursion
 
a
[15 replies] Last: That solution does work I assure you. I am working this right now! Yo... (by darms21)
Need help matching grouping symbols logic failure.
 
Fixed my own code
[4 replies] Last: ... (by Subzero030201)
by Oswld
Undefined Reference to
 
Hello, I am having trouble when I compile my program. When i try to create an object from a type i defined in a class i made, this case student, it gives me the...
[5 replies] Last: hi .. would you please tell me what was the problem i'm having the sam... (by mustafakishk)
Compiler Errors related to CLI
 
I keep getting this error when I try to build for .NET 4 with \clr MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced ...
[2 replies] Last: Thanks, but I already figured it out. I just didn't see a button to de... (by snipslog)
modifiable lvalue
 
so, i have the following code int isEmptySquare ; /*as a global variable*/ void drawBoard(){ if(!initialized){ isEmptySquare ={0,0,0,0,0,0,0,0,0,0,0,...
[7 replies] Last: but, how? constructor():matrix({0,0,1,0},{1,2,1,1}){} ? (by killermelga)
vector that holds nested class
 
Trying to define a vector that holds an inner class. class A { private: class B { ... }; public: ...
[5 replies] Last: Did you change all "M" to "T"? I don't think you should be getting the... (by LB)
by Ch1156
Please help explaining this code
 
I have some code here that someone else on this site wrote for me, and i was wondering some things about it. CODE: #include <iostream> #include <strin...
[5 replies] Last: You could just input.replace(pos, wordToFind.size(), newWord); ... (by ne555)
Desperately need to get this done.
 
can anyone please help me! I really need to get this done D': so I can pass, comments below instruction #include <iostream> using namespace std; void main()...
[13 replies] Last: you should put it in a while loop taht ends when player has won or los... (by Sc2slash)
help with if/else...
 
#include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main() { double speed, time; bool distance, choice; ...
[6 replies] Last: Thanks! (by closed account zT7X92yv)
CLI compatable console::write() ?
 
When I read the data into the array it is fine, but when I write it to the console it becomes a bunch of numbers. I think it has something to do with the consol...
[no replies]
Using qsort()
 
I'm currently trying to sort an array of type cable, which is a class. class Cable { public: int city1,city2, cost; }; How would i sort this array us...
[13 replies] Last: Oh, I can't believe i didn't change that. Thanks, Peter87! (by rocketman)
SFML in Visual C++ 2010 Express
 
I use Microsoft Visual C++ 2010 Express edition and was trying to add SFML. However when I follow the tutorial on the site (http://www.sfml-dev.org/tutorials/1....
[no replies]
by cokane
Sorting int's
 
I am trying to write a code that will sort three integers from lowest to highest but my code isn't producing the desired results. The code only cout's the numbe...
[4 replies] Last: Changing it to a 2 did the trick, now it works great. (by cokane)
program using if else if
 
hello can you please help me and wright this prog using if else if write a program that prompts to enter three integers and grades. all the integers acco...
[5 replies] Last: Think about it logically. If you start on the low end ( number < 50) ... (by Texan40)
by AARGH
nested class / struct that contains same-type pointer
 
i am struggling to grasp something technical. if a struct or class has a nested pointer to it's same type, then that pointer also points to another identicle c...
[3 replies] Last: yes it is regarding a singly linked list. it's my first introduction ... (by AARGH)
bubble sort problem
 
#include<iostream> using namespace std; int main() { int pancake ; int swap = 0; int temp; for (int i = 0;i < 5;i++) { cout...
[8 replies] Last: Thank you for your reply.Can you write the code for me?as my dad is in... (by MinwooJu)
Simple parameter change not working
 
I'm using function(b){for(var c=1;c<7;c++) in an "effects.js" script, for a slideshow that has 6 images, so c=1 starts w/the image labeled "1" in the slidesho...
[2 replies] Last: This is using all three languages, isn't it? There's no number padding... (by Donelle7)
March 2012 Pages: 1... 5657585960... 71
  Archived months: [feb2012] [apr2012]

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