Beginners - November 2015 (Page 11)

by remone
From IOstream into a vector
 
Im trying to write a program which reads information (a student number and the GPA of the student) from a file, displays the information. also Compares the GPA...
[9 replies] Last: it works well, i did change that, before i posted this :D (by remone)
Using BST for concordance program
 
The problem is that I want it to ignore punctuation when adding strings to the BST. But it seems to take the letter(s) after the punctuation and consider it as ...
[1 reply] : If you treat punctuation the exact same way as you do whitespace, then... (by cire)
c++ homework help
 
uppose that the input is 100 20 –8 50 20. What is the output of the following C++ code? int sum = 0; int num; int j; for (j = 1; j <= 4; j++) { cin >>...
[1 reply] : Why not run it as a program and see what happens? (by closed account 48T7M4Gy)
by AGNEX
Matrix Multiplication Function
 
I am having a bit a trouble why when I wanna use heap allocation with pointer my function doesn't work. But it does when I use notation for the array. Works...
[no replies]
File reading function throwing error
 
My code has a struct type like this: struct entityOne { int id_entityTwo; int id_entityThree; string description; bool isActive; }; Then I...
[3 replies] Last: Darn, I just realized it was the bool field! I fixed it by changing g... (by anarelle)
Need help with this arrays moving into functions
 
So im having some serious problems here. I'm trying to so far debug the program before moving on and im having trouble passing an array to a function (in purcha...
[4 replies] Last: ah im sorry i just realized that was the wrong one -_- //%%%%%%%%%... (by RJP0803)
Input elements in an array
 
How do I prompt a user to input the elements in a 10x10 array? So far, this is what I have: #include <iostream> using namespace std; int main() { int N = 0...
[2 replies] Last: I will assume he meant an nxn array. You will need a nested for loop t... (by OmegaZero69)
Need help reading fstream and convert it into int and sort it
 
So I'm having trouble reading the file and converting it into an array. I thought if i was declaring the random number and saving it into the array and the file...
[2 replies] Last: Hmmmm Cause basically my code need to randomize an input file read i... (by closed account GybDjE8b)
by Arquon
Class : unresolved external symbol error.
 
Hello, I am receiving unresolved external symbol error while working with 3 seperate files : main.cpp, class.h, and class.cpp. Main: #include <iostream> #inc...
[3 replies] Last: Oh, yes, im using CodeBlocks IDE and my Grum.cpp wasnt part of the pro... (by Arquon)
by dzenis
Need help with for loop
 
so I am trying to print out arr in reverse order with a simple for loop, I tried with the code below, but after it prints it out in reverse it continues to pri...
[3 replies] Last: Basically it is printing out infinite zero because your for loop canno... (by closed account GybDjE8b)
How to initialize an array of records for 52 playing cards?
 
Hello, I'm trying to initialize a array of 52 playing cards and I'm not really sure how to do it and what the right syntax is. I was going to use a for loop and...
[1 reply] : http://www.cplusplus.com/forum/beginner/62103/ (by closed account 48T7M4Gy)
Asking about the usage of srand()
 
For genarete random number, we use rand().. But theres also a function that is recommanded to use to initialize randon number srand().. Then what is that srand...
[1 reply] : rand() returns a pseudo random number. If you call rand() without see... (by AbstractionAnon)
Help with comparing strings and substrings?
 
Hello, I am trying to write a code in which the user enters a normal number like 1 or 4 and the program searches a text file for the corresponding the number. T...
[4 replies] Last: Here's something I wrote for you quickly, but I hope this gives you a ... (by Mr Impact)
by ohad
sup ?
 
i want to make "bbbnnnngg" into "3b4n2g", but this code dosnt working... #include "stdafx.h" #include <iostream> #include <stdlib.h> using namespace s...
[2 replies] Last: so what should i write instead? sorry.. im not that good with pointers... (by ohad)
Pointer
 
What is different between &ptr and ptr that both are Hex? I know ptr is memory address. what about &ptr? int main(){ int *ptr; ptr = new int; *ptr = 9...
[1 reply] : There are four two main concepts you have to understand clearly 1. Nor... (by abtahi tajwar)
pointers to vectors
 
hey guys am trying out something new but i need some srs help i have two code below the first compiles and run bt de second also runs bt crashes...so my questio...
[4 replies] Last: thanx i got it (by rofhiwangae)
Organizing Data Project
 
Is there a way to give Variables Subvariables? e.g. dataobject.animals.horse.width ? I was thinking about inheriting classes e.g. horse_class is inherited by...
[2 replies] Last: A non-static member object of (the class of) the variable could be cal... (by JLBorges)
2 Dimentional array Problem >:(
 
Hey, I am doing an array assignment and i understand how to use arrays, but my professor wants us to add 2 2-d arrays together. Here's what he gave us as our as...
[1 reply] : There are a number of places in the code where the constant values RO... (by Chervil)
std::cout formatting
 
Hi, I was searching for a way to make whole words jump to the other line when using std::cout, but couldn't find anything useful. This is what my std::cout line...
[3 replies] Last: @Peter87 Thanks for the answer! @loushizan Is there a way of doing t... (by DDomjosa)
by Dmytro
undefined reference to `__imp_callui ' I can not my knowledge
 
Good evening! I compile a plugin for IDA. The error occurs like this:    In function `vmsg (char const *, char *) ':    [Linker error] C: /IDA/idasdk6...
[6 replies] Last: Registration for the Forum: Too much spam, too little content. Find a... (by Dmytro)
November 2015 Pages: 1... 910111213... 53
  Archived months: [oct2015] [dec2015]

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