Beginners - July 2014 (Page 30)

Fixing Output
 
I need to format the date like mm/dd/yyyy by adding the / character. Any Ideas? struct Info { char First ; char Last ; char ID ; char Date ; ...
[3 replies] Last: If you only need to add the slashes for output, you could do something... (by Yay295)
Why is the time complexity of this quicksort so bad?
 
For a homework assignment I had to use a certain singly linked list implementation and create a quicksort for it. The main program imports a list from a file. T...
[1 reply] : There's a lot of places that could be slowing it down, the only way to... (by Lachlan Easton)
Can not call a function in main?
 
Why I cannot call the inputByRows function?? #include <iostream> #include <fstream> #include <cassert> using namespace std; const int NUMBER_OF_COLU...
[2 replies] Last: Thank you so much, Yay295!!~ It works well!!~ (by heisadobe)
Increasing/Decreasing Variable
 
Ok so I made a class. The class contains code to draw a 3d car. I'm supposed to make it so there are cars going in both directions on a street. I called the car...
[3 replies] Last: //global variables Car objects(0.0, 0.0, 0.0, 100.0, 50.0, 0.0); Ca... (by Webdawg66)
Selection Sort Error
 
Write your question here. Hey everyone I have a selection sort program but it only outputs what the user enters. // Sort.cpp : Defines the entry point for ...
[4 replies] Last: At line 34 you set min equal to start. You then check if they are not ... (by Yay295)
Problems with names with 2 or more parts.
 
I want to get the name of the street of a user who may have 1, 2 or 3 part names but I get only the first part in my output. #include <iostream> using...
[2 replies] Last: Ah.. I thought it would work with cin and cout alone.. :-D Thank you 4... (by Javaspell)
please how to write ?
 
firstly write a program to accept the number of telephone calls made by a customer and the print out the rate in cents.
[7 replies] Last: //Telephone bill #include<stdio.h> int main() { int n; float k=n,t... (by DAISY12)
Clarification needed
 
What is the meaning of the words (term) "falling through" in C++? Please try to list some conditions that would cause this to happen.
[2 replies] Last: So in reality it is actually dropping down to the next level. I guess ... (by papagym177)
if else string & vector
 
vector<Manager> Managers; string name; cout << "\tEnter new manager name to add: "; cin >> name; for(int i=0; Managers.size(); i++){ if(name == M...
[3 replies] Last: Oh I edited my previous post. Thanks for letting me know. Thought Mana... (by closed account EwCjE3v7)
undefined reference to `WinMain@16'
 
Je ne sais pas comment regler le probleme de compilation HELP avec code::Block Voici le code; #include <iostream> #include <cstdlib> #include <stdlib.h...
[1 reply] : http://stackoverflow.com/questions/5259714/undefined-reference-to-winm... (by mutexe)
Missing text
 
More basic practicing codes I'm afraid. I've made a little thing to double a number designated by the user but the actual text that should be showing (apart fr...
[5 replies] Last: You might also have done this, to make use of the x declared in main()... (by Chervil)
by Manga
sfml game sprites
 
So when I make a game with sfml, I have my sprite sheets in the .png format. But this kind of bothers me since, once my game is done, I have these exposed sprit...
[7 replies] Last: Thanks for the links. (by Manga)
bash to c
 
Can someone help me with this. How would I create this bash script in c? cat file.txt | grep bla > out.txt
[10 replies] Last: @ OP: I'm a Windows guy so I'm sorry if I misunderstand but you're sea... (by Computergeek01)
Help with integer array
 
Hi, I'm trying to make it so every time the user types an input, it stores that input in the proper variable, and moves on to the next one in the array. It's ki...
[2 replies] Last: Oohooohggooo You are a god sent my friend. Thank you. I'll consider t... (by turtlesavage)
Code::Blocks does't compile
 
Hello I use Linux and Code::Blocks, but when I try to compile, nothing happens! This is what I get: -------------- Build: Release in Test (compiler: GNU...
[6 replies] Last: Hmm then g++ is installed is installed in the correct place. I'm not r... (by ResidentBiscuit)
char + int => int / Problem with cout
 
Hey Guys, I'm pretty new to C++. Earlyer did a bit python so I'm not that precise as I should be in cpp I guess. Following code always gives me the Output...
[6 replies] Last: Don't forget to mark as solved! Have fun programming (by turtlesavage)
Calling from separate part of program
 
Hi. I'm working on a very code (but I'm very new to this). For a specific .cc file I am trying to verify that the program is updating specific variables by in...
[4 replies] Last: Please do explain further, start with why it is you think that the dir... (by Computergeek01)
Asigning "x" a value
 
I've just started trying to learn C++ and going through some tutorials I tried to write a few lines to assign a value to the variable x. It builds with no erro...
[3 replies] Last: Thank you very much! (by SomeCodingNoob)
by zdzero
printf/wprintf and wchar
 
I have PIMAGE_RESOURCE_DIR_STRING_U, let's call it pResDirStrU. I want to print it's NameString field which is a wchar. I tried printf("Name: %s", pResDi...
[5 replies] Last: or you can add the required 0 (by coder777)
by chipp
cout << std::string
 
i wanna ask something: #include <iostream> std::string get_string() { return std::string("My String"); } int main () { std::string str1 = get_string(); ...
[7 replies] Last: @justinelandichoruiz Certain implementations may include <string> in... (by AbstractionAnon)
July 2014 Pages: 1... 2829303132... 43
  Archived months: [jun2014] [aug2014]

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