Beginners - October 2011 (Page 21)

Link List With Templates
 
hi All I Have been Searching the Internet For A while Now And could Not Find A Good Answer. My Question Is Can We Make A Link List Of Which`s node Only Co...
[8 replies] Last: Thank You Guys i was Finally Able To Do It This Way #include <iostr... (by waqifti)
how do I read a set # of bytes
 
say like 8 bytes in binary and after the work is done to it, and then read the next 8 bytes to do work to?
[1 reply] : With read(): http://www.cplusplus.com/reference/iostream/istream/read/ (by Athar)
by Zortis
Arrays, strings.
 
There's several questions here: First of all, char Arrayname ; Arrayname = 'abc'; That doesn't work for obvious reasons, char only holds one character. Wha...
[1 reply] : Ok, let me tackle this one question at a time: In C++ a string is an ... (by rjcup3)
by orxshi
What??
 
My code works without an error and gives what I want but at the end when I press enter after cin.ignore()it gives the error below: Unhandled exception at 0x6...
[2 replies] Last: Have you tried system ("Pause")? lol, I couldn't resist. DON'T DO IT!... (by Danny Toledo)
Assigning pointers to a new memory location
 
for(int x = 0; x < 2; x++) { int* xx = new int; xx = &x; cout << "Location of xx: " << &xx << endl; } What I'm trying to do, is every time I run through...
[4 replies] Last: Thanks. I figured there was a more elegant way to do it, but I was so... (by scott757)
by hoxa
Chess board constructor fail
 
Hi guys, I've made a chessboard but my constructor fails to create objects of my derived class, it sais it's abstract because I got virtual = 0 functions. Bu...
[3 replies] Last: Well I've double checked the code again and I don't find a pure virtua... (by hoxa)
Input a string in an array by asking the user?
 
the topic title pretty much sums it up how do i ask the user to write a name and put it inside a array as an string? might sound pretty easy but i really cant t...
[2 replies] Last: worked thanks for the help. that was easy.. lol tho i know what cin wa... (by Pip3mAn)
by matros
Ending a while loop with changing variables
 
Hello, I have created a program that takes a wordlist and outputs it into a .sql database with the md5 of the word in question. I have a problem with being able...
[2 replies] Last: Thanks a bunch. That worked out great! A few small things I may need t... (by matros)
How to insert a "word" at a different line than the one being referenced to.
 
Hi, I have an input file which contains 3 sentences: Jane likes chicken. Alex likes chicken too. both like chicken. At the beginning of the 3rd sentence ...
[no replies]
problem with while loops
 
hi im relatively new to c++ coding but wrote a program that is supposed to ask the user for a number between 0 and 500. The program generates a random number as...
[3 replies] Last: Hi guys , i m a beginner in c++ , i was trying to create a simple prog... (by shysan21)
by Rainie
characters in a string using "Case"
 
I'm having a difficult time with an exercise in my c++ book. I'm asked to identify how many times the letters 'a', 'e', 'i' appear in a input-ed string. And it ...
[4 replies] Last: Thanks for your help, it seems that I lack the c++ knowledge to do thi... (by Rainie)
by Rainie
Problem with "for" and "rand()"
 
I'm trying to generate 10 numbers between 56 and 34, however when I execute the 10 numbers generated are outside the range for some reason, I can't find the err...
[3 replies] Last: int low = //low range int high = //high range int range = (high - ... (by ThangDo)
plz help me :(
 
its okay
[9 replies] Last: Moschops sur yEah .... Can U help Me (by Maher059)
Need some help!
 
I have two programs to write and haven't the slightest idea how to do either of them! Any help would be greatly appreciated! 1. Write a program that when a us...
[1 reply] : Homework...? Okay, the instructions lay it out pretty well (tell us ... (by Danny Toledo)
by Xanios
spawn error, cl.exe
 
Using C++ 6.0. Can build and compile but have error linking. The error is as stated on the tile. The black screen didn't come out. Tried code block, dev c, visu...
[2 replies] Last: I not sure.. im asking for my friend. Does it make a difference if com... (by Xanios)
HowTo edit CODE::BLOCKS Install Directory?
 
How do I edit the CODE:BLOCKS Installation Directory? I've been searching this online for answers with NO results! Help please if you know.
[10 replies] Last: Glad to help :) (by Danny Toledo)
Build Error while overloading cout
 
I have a program that is building a 3x3 matrix as a two dimensional array, and I am overloading the cout operator to display the matrix appropriately. For exam...
[1 reply] : i am not 100% sure on this because I don't have the time at the moment... (by WilliamW1979)
gets_s is not working NEED HELP
 
ok so I have the current program and everything is fine up until the program gets to the get_s(month) part. for some reason it skips over the get_s part and...
[2 replies] Last: well its a homework assignment and that is what we were asked to use. ... (by Americo)
by codrgi
memory problem???
 
char output_char ; memset(output_char,NULL,3500); //global_var is a short ; memcpy(output_char, (char *)global_var, global_var_length); i am using me...
[1 reply] : What's the value of global_var_length? 3050 or 3050*sizeof(short)? The... (by helios)
by vizard
Problem
 
Why does this program only print the first entered value and the push_back value? #include <iostream> #include <vector> using namespace std; int main ...
[no replies]
October 2011 Pages: 1... 1920212223... 59
  Archived months: [sep2011] [nov2011]

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